HOpMarkupPostIt

Functions

HOpMarkupPostIt

char const *

GetName

int

OnLButtonDown

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:

  1. Left Button Down: new annotation created/annotation selected

  2. Left Button Down and Drag: dragging

  3. Left Button Up: operation ended

More Detailed Description: see event methods

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.