The HOpMarkupRectangle class inserts a 2D rectange into a markup layer. If a markup layer is already active then the operator will use that layer otherwise the operator will create a new, unamed layer. More...
#include <HOpMarkupRectangle.h>
Public Member Functions | |
virtual HBaseOperator * | Clone () |
virtual const char * | GetName () |
HOpMarkupRectangle (HBaseView *view, int DoRepeat=0, int DoCapture=1) | |
virtual int | OnLButtonUp (HEventInfo &hevent) |
The HOpMarkupRectangle class inserts a 2D rectange into a markup layer. If a markup layer is already active then the operator will use that layer otherwise the operator will create a new, unamed layer.
HOpMarkupRectangle implements three mouse event methods defined on the base class and maps the event information to operator routines. This operation consists of the following steps:
More Detailed Description: see event methods
HOpMarkupRectangle::HOpMarkupRectangle | ( | HBaseView * | view, |
int | DoRepeat = 0 , |
||
int | DoCapture = 1 |
||
) |
constructor
virtual HBaseOperator* HOpMarkupRectangle::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 HOpConstructRectangle.
virtual const char* HOpMarkupRectangle::GetName | ( | ) | [virtual] |
Reimplemented from HOpConstructRectangle.
virtual int HOpMarkupRectangle::OnLButtonUp | ( | HEventInfo & | hevent | ) | [virtual] |
OnLButtonUp maps rectangle information from HOpConstructRectangle into the HOOPS routine HC_Compute_Selection_By_Area. This function also deselects any selected items that are not present in the current selection list.
hevent | An HEventInfo object containing information about the current event. |
Reimplemented from HOpConstructRectangle.