#include <HQWidget.h>
Public Member Functions | |
HQWidget (QWidget *parent=0, QString const &name="", Qt::WFlags f=0, int aa=0) | |
HBaseView * | GetHoopsView () |
HBaseModel * | GetHoopsModel () |
Static Public Member Functions | |
static bool | GetKeyState (unsigned int key, int &flags) |
static const char * | ChooseDriver () |
Protected Member Functions | |
void * | GetColorMap () |
void * | GetWindowId () |
void * | GetClipOverride () |
virtual void | Init () |
virtual QPaintEngine * | paintEngine () const |
virtual void | OnLeftButtonDown (QMouseEvent *e=0) |
virtual void | OnLeftButtonUp (QMouseEvent *e=0) |
virtual void | OnLeftButtonDblClk (QMouseEvent *e=0) |
virtual void | OnMidButtonDown (QMouseEvent *e=0) |
virtual void | OnMidButtonUp (QMouseEvent *e=0) |
virtual void | OnMidButtonDblClk (QMouseEvent *e=0) |
virtual void | OnRightButtonDown (QMouseEvent *e=0) |
virtual void | OnRightButtonUp (QMouseEvent *e=0) |
virtual void | OnRightButtonDblClk (QMouseEvent *e=0) |
virtual void | wheelEvent (QWheelEvent *e=0) |
virtual void | paintEvent (QPaintEvent *e) |
virtual void | resizeEvent (QResizeEvent *e) |
virtual void | focusInEvent (QFocusEvent *e) |
virtual void | focusOutEvent (QFocusEvent *e) |
virtual void | keyPressEvent (QKeyEvent *e) |
virtual void | keyReleaseEvent (QKeyEvent *e) |
virtual void | mousePressEvent (QMouseEvent *mev) |
virtual void | mouseDoubleClickEvent (QMouseEvent *mev) |
virtual void | mouseReleaseEvent (QMouseEvent *mev) |
virtual void | mouseMoveEvent (QMouseEvent *mev) |
void | AdjustAxisWindow () |
bool | eventFilter (QObject *obj, QEvent *ev) |
Protected Attributes | |
HBaseView * | m_pHView |
HBaseModel * | m_pHBaseModel |
bool | ignore_update |
HQWidget creates and manages the connection of a HOOPS/3dGS driver instance to a QWidget object. The custom widget:
HBaseView* HQWidget::GetHoopsView | ( | void | ) | [inline] |
HBaseModel* HQWidget::GetHoopsModel | ( | void | ) | [inline] |
References m_pHBaseModel.
void* HQWidget::GetColorMap | ( | ) | [protected] |
void* HQWidget::GetWindowId | ( | ) | [protected] |
void* HQWidget::GetClipOverride | ( | ) | [protected] |
virtual void HQWidget::Init | ( | ) | [protected, virtual] |
Performs HOOPS/QT specific initialization
virtual QPaintEngine* HQWidget::paintEngine | ( | ) | const [protected, virtual] |
return null
virtual void HQWidget::OnLeftButtonDown | ( | QMouseEvent * | e = 0 |
) | [protected, virtual] |
Dispatches the OnLeftButtonDown event to all event listeners that are registered for the OnLeftButtonDown event type. The GUI specific flags are mapped to HOOPS/MVO abstracted flags
virtual void HQWidget::OnLeftButtonUp | ( | QMouseEvent * | e = 0 |
) | [protected, virtual] |
Dispatches the OnLeftButtonUp event to all event listeners that are registered for the OnLeftButtonUp event type. The GUI specific flags are mapped to HOOPS/MVO abstracted flags
virtual void HQWidget::OnLeftButtonDblClk | ( | QMouseEvent * | e = 0 |
) | [protected, virtual] |
Dispatches the OnLeftButtonDblClk event to all event listeners that are registered for the OnLeftButtonDblClk event type. The GUI specific flags are mapped to HOOPS/MVO abstracted flags
virtual void HQWidget::OnMidButtonDown | ( | QMouseEvent * | e = 0 |
) | [protected, virtual] |
Dispatches the OnMidButtonDown event to all event listeners that are registered for the OnMidButtonDown event type. The GUI specific flags are mapped to HOOPS/MVO abstracted flags
virtual void HQWidget::OnMidButtonUp | ( | QMouseEvent * | e = 0 |
) | [protected, virtual] |
Dispatches the OnMidButtonUp event to all event listeners that are registered for the OnMidButtonUp event type. The GUI specific flags are mapped to HOOPS/MVO abstracted flags
virtual void HQWidget::OnMidButtonDblClk | ( | QMouseEvent * | e = 0 |
) | [protected, virtual] |
Dispatches the OnMidButtonDblClk event to all event listeners that are registered for the OnMidButtonDblClk event type. The GUI specific flags are mapped to HOOPS/MVO abstracted flags
virtual void HQWidget::OnRightButtonDown | ( | QMouseEvent * | e = 0 |
) | [protected, virtual] |
Dispatches the OnRightButtonDown event to all event listeners that are registered for the OnRightButtonDown event type. The GUI specific flags are mapped to HOOPS/MVO abstracted flags
virtual void HQWidget::OnRightButtonUp | ( | QMouseEvent * | e = 0 |
) | [protected, virtual] |
Dispatches the OnRightButtonUp event to all event listeners that are registered for the OnRightButtonUp event type. The GUI specific flags are mapped to HOOPS/MVO abstracted flags
virtual void HQWidget::OnRightButtonDblClk | ( | QMouseEvent * | e = 0 |
) | [protected, virtual] |
Dispatches the OnRightButtonDblClk event to all event listeners that are registered for the OnRightButtonDblClk event type. The GUI specific flags are mapped to HOOPS/MVO abstracted flags
virtual void HQWidget::wheelEvent | ( | QWheelEvent * | e = 0 |
) | [protected, virtual] |
Dispatches the OnRightButtonDblClk event to all event listeners that are registered for the OnMouseWheel event type. The GUI specific flags are mapped to HOOPS/MVO abstracted flags
virtual void HQWidget::paintEvent | ( | QPaintEvent * | e | ) | [protected, virtual] |
Overloaded to automatically perform a HOOPS/3dGS update
virtual void HQWidget::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual] |
Overloaded to automatically perform a HOOPS/3dGS update
virtual void HQWidget::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Calls the OnKeyDown method of the view's current HOOPS/MVO HBaseOperator object. The GUI specific flags are mapped to HOOPS/MVO abstracted flags
virtual void HQWidget::keyReleaseEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Calls the OnKeyUp method of the view's current HOOPS/MVO HBaseOperator object. The GUI specific flags are mapped to HOOPS/MVO abstracted flags
virtual void HQWidget::mousePressEvent | ( | QMouseEvent * | mev | ) | [protected, virtual] |
Looks at the state of the left/mid/right mouse buttons and calls the appropriate On[type]ButtonDown method of the widget
virtual void HQWidget::mouseDoubleClickEvent | ( | QMouseEvent * | mev | ) | [protected, virtual] |
Looks at the state of the left/mid/right mouse buttons and calls the appropriate On[type]ButtonDblClk method of the widget
virtual void HQWidget::mouseReleaseEvent | ( | QMouseEvent * | mev | ) | [protected, virtual] |
Looks at the state of the left/mid/right mouse buttons and calls the appropriate On[type]ButtonUp method of the widget
virtual void HQWidget::mouseMoveEvent | ( | QMouseEvent * | mev | ) | [protected, virtual] |
Dispatches the OnMouseMove event to all event listeners that are registered for the OnMouseMove event type. The GUI specific flags are mapped to HOOPS/MVO abstracted flags
void HQWidget::AdjustAxisWindow | ( | ) | [protected] |
Adjusts the relative size of the Axis window so that it always has the same size if the outer window is resized
bool HQWidget::eventFilter | ( | QObject * | obj, | |
QEvent * | ev | |||
) | [protected] |
Used to stop events from getting passed to the object
HBaseView* HQWidget::m_pHView [protected] |
Pointer to the HBaseView object associated with this widget
Referenced by GetHoopsView().
HBaseModel* HQWidget::m_pHBaseModel [protected] |
Pointer to the HBaseModel object associated with this widget
Referenced by GetHoopsModel().