#include <HOpSelectPolyline.h>
Public Member Functions | |
virtual HBaseOperator * | Clone () |
virtual const char * | GetName () |
HOpSelectPolyline (HBaseView *view, int DoRepeat=0, int DoCapture=1) | |
virtual int | OnLButtonDblClk (HEventInfo &hevent) |
HOpSelectPolyline employs all of the drawing functionality of HOpConstructPolyline to define a temporary, overlayed polyline, then maps the polyline to the HOOPS routine HC_Compute_Selection_By_Polylin. This provides the basic functionality for selecting a group of objects based on their intersection with a line. The operation consists of the following steps:
HOpSelectPolyline::HOpSelectPolyline | ( | HBaseView * | view, | |
int | DoRepeat = 0 , |
|||
int | DoCapture = 1 | |||
) |
Constructs an HOpSelectPolyline 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* HOpSelectPolyline::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* HOpSelectPolyline::GetName | ( | ) | [virtual] |
Reimplemented from HOpConstructPolyline.
virtual int HOpSelectPolyline::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_Compute_Selection_By_Polyline. 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.