#include <HOpSelectPolygon.h>
Public Member Functions | |
virtual HBaseOperator * | Clone () |
virtual const char * | GetName () |
HOpSelectPolygon (HBaseView *view, int DoRepeat=0, int DoCapture=1) | |
virtual int | OnLButtonDblClk (HEventInfo &hevent) |
virtual int | OnLButtonDown (HEventInfo &hevent) |
HOpSelectPolygon employs all of the drawing functionality of HOpConstructPolyline to define a temporary, overlayed polygonal selection area, and then maps the polygon information to the HOOPS routine HC_Compute_Selection_By_Polygon. The operation consists of the following steps:
HOpSelectPolygon::HOpSelectPolygon | ( | HBaseView * | view, | |
int | DoRepeat = 0 , |
|||
int | DoCapture = 1 | |||
) |
Constructs an HOpSelectPolygon 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* HOpSelectPolygon::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 HOpConstructPolyline.
virtual const char* HOpSelectPolygon::GetName | ( | ) | [virtual] |
Reimplemented from HOpConstructPolyline.
virtual int HOpSelectPolygon::OnLButtonDblClk | ( | HEventInfo & | hevent | ) | [virtual] |
returns a pointer to a copy of the operator
OnLButtonDblClk passes the polyline array from HOpConstructPolyline::OnLButtonDblClk into the HOOPS routine HC_Insert_Polygon and inserts the polygon into the scene. The polyline information is also passed to Compute_Selection_By_Polygon. Currently selected items are highlighted, and items previously highlighted are de-selected.
hevent | An HEventInfo object containing information about the current event. |
Reimplemented from HOpConstructPolyline.
virtual int HOpSelectPolygon::OnLButtonDown | ( | HEventInfo & | hevent | ) | [virtual] |
OnLButtonDown initiates the polygon selection mechanism.
hevent | An HEventInfo object containing information about the current event. |
Reimplemented from HOpConstructPolyline.