Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpCreateCone Class Reference

The HOpCreateCone class provides support for constructing a cone and inserting it into the model. More...

#include <HOpCreateCone.h>

List of all members.

Public Member Functions

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

Detailed Description

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:

  1. Left Button Down: Registers the center point of the cone base.
  2. Left Button Down and Drag: Rubberbands the circle to the desired base circumferences
  3. Left Button Up: The base circumference is finalized.
  4. No Button Down and Drag: Rubberbands the cone to desired height.
  5. Left Button Down: The height is finalized, the operation is ended and a cone is inserted into the scene.

More Detailed Description: see event methods.


Constructor & Destructor Documentation

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

Constructs an HOpCreateCone object.

Parameters:
viewA pointer to an HBaseView object.
DoRepeatAn integer denoting whether this is a repeatable operator. This parameter has been deprecated.
DoCaptureAn 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* 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.

Returns:
A pointer to the newly created HOpCreateCone object.

Reimplemented from HOpConstructCone.

virtual const char* HOpCreateCone::GetName ( ) [virtual]
Returns:
A pointer to a character string denoting the name of the operator which is 'Create Cone'.

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.

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

Reimplemented from HOpConstructCone.


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