HOpNavCube
Functions
char const * |
|
int |
|
Detailed Description
-
class HOpNavCube : public HBaseOperator
The HOpNavCube class provides an interactive navigation cube for rapid viewpoint changes.
HOpNavCube implements one of the mouse event handlers defined on the base class and maps the event to the HOOPS routine HC_Compute_Selection. This provides the basic functionality for calculating and displaying a navigation cube.
Public Functions
-
HOpNavCube(HBaseView *view, int DoRepeat = 0, int DoCapture = 1)
Constructs an HOpNavCube object.
- Parameters
view – A pointer to an HBaseView object.
DoRepeat – An integer denoting whether this is a repeatable operator. This parameter has been deprecated.
DoCapture – An integer denoting whether the mouse state should be captured, which means that all mouse events should be received after a mousedown, even if it leaves the window. This parameter has been deprecated.
-
virtual ~HOpNavCube()
-
virtual char const *GetName()
- Returns
A pointer to a character string denoting the name of the operator which is ‘HOpNavCube’.
-
virtual int OnLButtonDown(HEventInfo &hevent)
OnLButtonDown selects an arrow from one side of the cube and changes the viewpoint to the desired position.
- Parameters
hevent – An HEventInfo object containing information about the current event.
- Returns
An HOperatorReturn indicating the status of the event.
-
virtual HBaseOperator *Clone()
Creates a new operator which is a copy of the current operator. The user is responsible for deleting the newly created operator.
- Returns
A pointer to the newly created HOpNavCube object.
-
HOpNavCube(HBaseView *view, int DoRepeat = 0, int DoCapture = 1)