Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpCreateSphere Class Reference

The HOpCreateSphere class provides support for constructing a sphere and inserting it into the model. More...

#include <HOpCreateSphere.h>

Inheritance diagram for HOpCreateSphere:

HOpConstructSphere HBaseOperator

List of all members.

Public Member Functions

virtual HBaseOperatorClone ()
virtual const char * GetName ()
 HOpCreateSphere (HBaseView *view, int DoRepeat=0, int DoCapture=1)
virtual int OnLButtonUp (HEventInfo &hevent)


Detailed Description

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:

  1. Left Button Down: Registers the center point of the sphere.
  2. Left Button Down and Drag: Rubberbands the sphere to the desired circumference.
  3. Left Button Up: Circumference is finalized, clears the scene and inserts a sphere into the HOOPS data base. The operation ends.
More Detailed Description: see event methods.

Constructor & Destructor Documentation

HOpCreateSphere::HOpCreateSphere ( HBaseView view,
int  DoRepeat = 0,
int  DoCapture = 1 
)

Constructs an HOpCreateSphere 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.


Member Function Documentation

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.

Returns:
A pointer to the newly created HOpCreateSphere object.

Reimplemented from HOpConstructSphere.

virtual const char* HOpCreateSphere::GetName (  )  [virtual]

Returns:
A pointer to a character string denoting the name of the operator which is 'Create Sphere'.

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.

Parameters:
hevent An HEventInfo object containing information about the current event.
Returns:
An HOperatorReturn indicating the status of the event.

Reimplemented from HOpConstructSphere.


The documentation for this class was generated from the following file: