Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpCreateCircle Class Reference

The HOpCreateCircle class draws a circle. More...

#include <HOpCreateCircle.h>

List of all members.

Public Member Functions

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

Detailed Description

The HOpCreateCircle class draws a circle.

HOpCreateCircle maps the event information to the HOOPS routine HC_Insert_Circle_By_Radius. This provides the basic functionality for drawing a temporary, overlayed 2-D box outline in the view plane based on first and last pointer positions. Once the operation is finalized, a circle will be inserted into the model. The operation consists of the following steps:

  1. Left Button Down: Identifies the center point of the circle.
  2. Left Button Down and Drag: Rubberband circle to desired dimensions.
  3. Left Button Up: Circle finalized, the polyline primitive used to represent the circle is flushed from the scene and a new one is created in the model.

More Detailed Description: see event methods.


Constructor & Destructor Documentation

HOpCreateCircle::HOpCreateCircle ( HBaseView view,
int  DoRepeat = 0,
int  DoCapture = 1,
bool  UseCenterMarker = true 
)

Constructs an HOpCreateCircle 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.
UseCenterMarkerPass true if you want HOOPS to draw a mark at the center.

Member Function Documentation

virtual HBaseOperator* HOpCreateCircle::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 HOpCreateCircle object.

Reimplemented from HOpConstructCircle.

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

Reimplemented from HOpConstructCircle.

virtual int HOpCreateCircle::OnLButtonUp ( HEventInfo hevent) [virtual]

OnLButtonUp finalizes the size of the circle, cleans up the geometry draw under the construction key and inserts a circle into the current model using HC_Insert_Circle_By_Radius.

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

Reimplemented from HOpConstructCircle.


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