HOpMarkupPostIt
Functions
char const * |
|
int |
Detailed Description
-
class HOpMarkupPostIt : public HOpMarkupAnnotate
The HOpMarkupPostIt class inserts and manipulates annotation into the current scene.
HOpMarkupPostIt 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:
Left Button Down: new annotation created/annotation selected
Left Button Down and Drag: dragging
Left Button Up: operation ended
Public Functions
-
HOpMarkupPostIt(HBaseView *view, int DoRepeat = 0, int DoCapture = 1)
Constructs an HOpMarkupPostIt object.
- Parameters
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 char const *GetName()
- Returns
A pointer to a character string denoting the name of the operator, ‘HOpMarkupPostIt’
-
virtual int OnLButtonDown(HEventInfo &hevent)
OnLButtonDown either selects an existing annotation or inserts a new annotation into the current markup layer at the current mouse position.
- Parameters
hevent – An HEventInfo object containing information about the current event.
- Returns
An HOperatorReturn indicating the status of the event.