HOpMarkupMeasure

class HOpMarkupMeasure

The HOpMarkupAnnotate class inserts/manipulates annotation into the current scene.

HOpMarkupAnnotate 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

Inherits from: HBaseOperator

Methods

HOpMarkupMeasure::HOpMarkupMeasure(HBaseView *view, bool AddToLayer = false, int DoRepeat = 0, int DoCapture = 1)

constructor

virtual HOpMarkupMeasure::~HOpMarkupMeasure()

virtual

destructor

virtual char const *HOpMarkupMeasure::GetName()

virtual

Returns

“HOpMarkupMeasure”
virtual int HOpMarkupMeasure::OnLButtonDown(HEventInfo &hevent)

virtual

OnLButtonDown either selects an existing annotation or inserts a new annotation at the current mouse position

Parameters

hevent: An HEventInfo object containing information about the current event.

Returns

A value indicating the result of the event handling.
virtual int HOpMarkupMeasure::OnLButtonDownAndMove(HEventInfo &hevent)

virtual

OnLButtonDownAndMove computes the translation transform based on the distance between the first and current pointer positions, and translates the annotation accordingly.

Parameters

hevent: An HEventInfo object containing information about the current event.

Returns

A value indicating the result of the event handling.
virtual int HOpMarkupMeasure::OnLButtonUp(HEventInfo &hevent)

virtual

OnLButtonUp finalizes movement of annotation

Parameters

hevent: An HEventInfo object containing information about the current event.

Returns

A value indicating the result of the event handling.
virtual int HOpMarkupMeasure::OnRButtonDown(HEventInfo &hevent)

virtual

OnRButtonDown finalizes movement of annotation

Parameters

hevent: An HEventInfo object containing information about the current event.

Returns

A value indicating the result of the event handling.
virtual int HOpMarkupMeasure::OnKeyDown(HEventInfo &hevent)

virtual

OnKeyDown adds/replaces text of the selected annotation

Parameters

hevent: An HEventInfo object containing information about the current event.

Returns

A value indicating the result of the event handling.
virtual HBaseOperator *HOpMarkupMeasure::Clone()

virtual

Creates a new operator which is associated with the same view as the current operator. The user is responsible for deleting the newly created operator.

Returns

A pointer to an HBaseOperator object
void HOpMarkupMeasure::StartOp()

protected

StartOp sets the operator in an active state

bool HOpMarkupMeasure::EndOp()

protected

EbdOp sets the operator in an inactive state

Returns

true of the op was ended false if EndOp was called when the op was already ended.

Variables

HUtilityAnnotationMeasure HOpMarkupMeasure::m_Annotation

protected

The annotation object

int HOpMarkupMeasure::m_iBackgroundType

protected

int

Keeps track of what background type we’re using.

bool HOpMarkupMeasure::m_bAddToLayer

protected

bool

Keeps track of where this not is getting inserted and which segments it’s styling.

bool HOpMarkupMeasure::m_bNewNote

protected

bool

Set if the note is new of it it was selected.

bool HOpMarkupMeasure::m_bTouchedText

protected

bool

Keeps track of if we need to update the note or not.

bool HOpMarkupMeasure::m_bHideOverlappedText

protected

bool

Keeps track of the hide overlapped text setting since we explicitly unset it.