HQWidget Class Reference

#include <HQWidget.h>

List of all members.

Public Member Functions

 HQWidget (QWidget *parent=0, QString const &name="", Qt::WFlags f=0, int aa=0)
HBaseViewGetHoopsView ()
HBaseModelGetHoopsModel ()

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

HBaseViewm_pHView
HBaseModelm_pHBaseModel
bool ignore_update

Detailed Description

The HQWidget class provides a HOOPS-specific implementation of the QWidget object. It serves as a base HOOPS/Qt widget class and should be sub-classed to create an application specific derivation.

HQWidget creates and manages the connection of a HOOPS/3dGS driver instance to a QWidget object. The custom widget:

  • optimally configures associated windowing system resources, such as X11 Visuals & colormaps or MS Windows color palettes
  • ensures correct handling of "Paint/Expose" and "Resize" events
  • overrides the QWidget's Mouse and Key events and pass the events to the appropriate HOOPS/MVO View's current Operator methods

Member Function Documentation

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

void* HQWidget::GetClipOverride ( ) [protected]
Returns:
A pointer to the clip override structure; currently only applies to OS/X
void* HQWidget::GetColorMap ( ) [protected]
Returns:
A pointer to the colormap associated with the widget
HBaseModel* HQWidget::GetHoopsModel ( ) [inline]
Returns:
A pointer to the HOOPS/MVO HBaseModel object associated with the widget

References m_pHBaseModel.

HBaseView* HQWidget::GetHoopsView ( ) [inline]
Returns:
A pointer to the HOOPS/MVO HBaseView object associated with the widget

References m_pHView.

void* HQWidget::GetWindowId ( ) [protected]
Returns:
A pointer to the window id associated with the widget
virtual void HQWidget::Init ( ) [protected, virtual]

Performs HOOPS/QT specific initialization

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::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::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

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::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::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::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::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::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::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::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 QPaintEngine* HQWidget::paintEngine ( ) const [protected, virtual]

return null

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::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


Member Data Documentation

Pointer to the HBaseModel object associated with this widget

Referenced by GetHoopsModel().

Pointer to the HBaseView object associated with this widget

Referenced by GetHoopsView().


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