The HOpCreateCuboid class creates a rectangular cube. More...
#include <HOpCreateCuboid.h>
Public Member Functions | |
virtual HBaseOperator * | Clone () |
virtual const char * | GetName () |
HOpCreateCuboid (HBaseView *view, int DoRepeat=0, int DoCapture=1) | |
virtual int | OnLButtonDown (HEventInfo &hevent) |
The HOpCreateCuboid class creates a rectangular cube.
HOpCreateCuboid maps the event information to the HOOPS Routine HC_Insert_Shell. This provides the basic functionality for creating a three-dimensional, six-sided cuboid or rectangular box. The cuboid that is generated includes two square faces with the same length and width while the depth is variable. The operation consists of the following steps:
More Detailed Description: see event methods.
HOpCreateCuboid::HOpCreateCuboid | ( | HBaseView * | view, |
int | DoRepeat = 0 , |
||
int | DoCapture = 1 |
||
) |
Constructs an HOpCreateCuboid 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* HOpCreateCuboid::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 HOpConstructCuboid.
virtual const char* HOpCreateCuboid::GetName | ( | ) | [virtual] |
Reimplemented from HOpConstructCuboid.
virtual int HOpCreateCuboid::OnLButtonDown | ( | HEventInfo & | hevent | ) | [virtual] |
OnLButtonDown records the first mouse position and initiates the cuboid-drawing mechanism. It tests for the case that the mechanism has already been started such as OnLButtonDown having been called once already. In this case, OnLButtonDown finalizes the cuboid's depth, inserts the cuboid into the HOOPS database, updates the display, and ends the operation.
hevent | An HEventInfo object containing information about the current event. |
Reimplemented from HOpConstructCuboid.