The HOpCreateSphere class provides support for constructing a sphere and inserting it into the model. More...
#include <HOpCreateSphere.h>
Public Member Functions | |
virtual HBaseOperator * | Clone () |
virtual const char * | GetName () |
HOpCreateSphere (HBaseView *view, int DoRepeat=0, int DoCapture=1) | |
virtual int | OnLButtonUp (HEventInfo &hevent) |
The HOpCreateSphere class provides support for constructing a sphere and inserting it into the model.
HOpCreateSphere uses event information to draw a sphere. This class provides the basic functionality for drawing a three-dimensional, tesselated sphere. The operation consists of the following steps:
More Detailed Description: see event methods.
HOpCreateSphere::HOpCreateSphere | ( | HBaseView * | view, |
int | DoRepeat = 0 , |
||
int | DoCapture = 1 |
||
) |
Constructs an HOpCreateSphere 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* HOpCreateSphere::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 HOpConstructSphere.
virtual const char* HOpCreateSphere::GetName | ( | ) | [virtual] |
Reimplemented from HOpConstructSphere.
virtual int HOpCreateSphere::OnLButtonUp | ( | HEventInfo & | hevent | ) | [virtual] |
OnLButtonUp finalizes the size of the sphere and inserts that sphere into the HOOPS database as a shell. Note that most of the work in this function is done by a call to the public function HUtilityGeometryCreation::CreateSphere.
hevent | An HEventInfo object containing information about the current event. |
Reimplemented from HOpConstructSphere.