The HOpNavCube class provides an interactive navigation cube for rapid viewpoint changes. More...
#include <HOpNavCube.h>
Public Member Functions | |
virtual HBaseOperator * | Clone () |
virtual const char * | GetName () |
HOpNavCube (HBaseView *view, int DoRepeat=0, int DoCapture=1) | |
virtual int | OnLButtonDown (HEventInfo &hevent) |
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.
HOpNavCube::HOpNavCube | ( | HBaseView * | view, |
int | DoRepeat = 0 , |
||
int | DoCapture = 1 |
||
) |
Constructs an HOpNavCube object.
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 HBaseOperator* HOpNavCube::Clone | ( | ) | [virtual] |
Creates a new operator which is a copy of the current operator. The user is responsible for deleting the newly created operator.
Reimplemented from HBaseOperator.
virtual const char* HOpNavCube::GetName | ( | ) | [virtual] |
Reimplemented from HBaseOperator.
virtual int HOpNavCube::OnLButtonDown | ( | HEventInfo & | hevent | ) | [virtual] |
OnLButtonDown selects an arrow from one side of the cube and changes the viewpoint to the desired position.
hevent | An HEventInfo object containing information about the current event. |
Reimplemented from HBaseOperator.