VAPOR3 3.9.4
Signals | Public Member Functions | Protected Types | Static Protected Member Functions | Protected Attributes | List of all members
GLWidget Class Referenceabstract

#include <GLWidget.h>

Inheritance diagram for GLWidget:

Signals

void startChange (QString)
 
void endChange ()
 

Public Member Functions

 GLWidget (QWidget *parent=0)
 
virtual ~GLWidget ()
 
virtual int paintGL ()=0
 
virtual void move (float dx, float dy=0.0, float dz=0.0)=0
 
virtual void drag (float dx, float dy=0.0, float dz=0.0)=0
 
virtual bool selected ()
 
virtual void deselect ()
 
virtual void select (int handle, Qt::KeyboardModifiers)
 
virtual bool enabled () const
 
virtual void enable (bool flag)
 
virtual void setGeometry (float x0, float x1, float y0, float y1)
 
int id () const
 

Protected Types

enum  { NONE = -1 }
 

Static Protected Member Functions

static unsigned int createId ()
 

Protected Attributes

unsigned int _id
 
int _selected
 
bool _enabled
 
float _minX
 
float _maxX
 
float _minY
 
float _maxY
 

Detailed Description

Definition at line 20 of file GLWidget.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
NONE 

Definition at line 24 of file GLWidget.h.

Constructor & Destructor Documentation

◆ GLWidget()

GLWidget::GLWidget ( QWidget *  parent = 0)

◆ ~GLWidget()

virtual GLWidget::~GLWidget ( )
virtual

Member Function Documentation

◆ createId()

static unsigned int GLWidget::createId ( )
staticprotected

◆ deselect()

virtual void GLWidget::deselect ( )
inlinevirtual

Definition at line 36 of file GLWidget.h.

References _selected, and NONE.

◆ drag()

virtual void GLWidget::drag ( float  dx,
float  dy = 0.0,
float  dz = 0.0 
)
pure virtual

◆ enable()

virtual void GLWidget::enable ( bool  flag)
inlinevirtual

Definition at line 40 of file GLWidget.h.

References _enabled.

◆ enabled()

virtual bool GLWidget::enabled ( ) const
inlinevirtual

Definition at line 39 of file GLWidget.h.

References _enabled.

◆ endChange

void GLWidget::endChange ( )
signal

◆ id()

int GLWidget::id ( ) const
inline

Definition at line 44 of file GLWidget.h.

References _id.

◆ move()

virtual void GLWidget::move ( float  dx,
float  dy = 0.0,
float  dz = 0.0 
)
pure virtual

◆ paintGL()

virtual int GLWidget::paintGL ( )
pure virtual

◆ select()

virtual void GLWidget::select ( int  handle,
Qt::KeyboardModifiers   
)
inlinevirtual

Definition at line 37 of file GLWidget.h.

References _selected.

◆ selected()

virtual bool GLWidget::selected ( )
inlinevirtual

Definition at line 35 of file GLWidget.h.

References _selected, and NONE.

◆ setGeometry()

virtual void GLWidget::setGeometry ( float  x0,
float  x1,
float  y0,
float  y1 
)
virtual

◆ startChange

void GLWidget::startChange ( QString  )
signal

Member Data Documentation

◆ _enabled

bool GLWidget::_enabled
protected

Definition at line 56 of file GLWidget.h.

Referenced by enable(), and enabled().

◆ _id

unsigned int GLWidget::_id
protected

Definition at line 54 of file GLWidget.h.

Referenced by id().

◆ _maxX

float GLWidget::_maxX
protected

Definition at line 59 of file GLWidget.h.

◆ _maxY

float GLWidget::_maxY
protected

Definition at line 61 of file GLWidget.h.

◆ _minX

float GLWidget::_minX
protected

Definition at line 58 of file GLWidget.h.

◆ _minY

float GLWidget::_minY
protected

Definition at line 60 of file GLWidget.h.

◆ _selected

int GLWidget::_selected
protected

Definition at line 55 of file GLWidget.h.

Referenced by deselect(), select(), and selected().


The documentation for this class was generated from the following file: