The HOpCreateCone class provides support for constructing a cone and inserting it into the model. More...
#include <HOpCreateCone.h>
Public Member Functions | |
virtual HBaseOperator * | Clone () |
virtual const char * | GetName () |
HOpCreateCone (HBaseView *view, int DoRepeat=0, int DoCapture=1) | |
virtual int | OnLButtonDown (HEventInfo &hevent) |
The HOpCreateCone class provides support for constructing a cone and inserting it into the model.
HOpCreateCone maps event information to insert a corresponding HOOPS shell into the HOOPS database. This provides the basic functionality for drawing a three-dimensional, tesselated cone with a circular base and a number of triangular, facetted sides with the default being 30. The operation consists of the following steps:
More Detailed Description: see event methods.
HOpCreateCone::HOpCreateCone | ( | HBaseView * | view, |
int | DoRepeat = 0 , |
||
int | DoCapture = 1 |
||
) |
Constructs an HOpCreateCone 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* HOpCreateCone::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 HOpConstructCone.
virtual const char* HOpCreateCone::GetName | ( | ) | [virtual] |
Reimplemented from HOpConstructCone.
virtual int HOpCreateCone::OnLButtonDown | ( | HEventInfo & | hevent | ) | [virtual] |
OnLButtonDown records the first pointer position and initiates the cone-drawing mechanism. The first point is used as the center of the cone's circular base. If the drawing mechanism has already been started such as LButtonDown having been called once already, LButtonDown draws a cone using HUtilityGeometryCreation::CreateCone.
hevent | An HEventInfo object containing information about the current event. |
Reimplemented from HOpConstructCone.