HOpMarkupMeasure
-
class
HOpMarkupMeasure The
HOpMarkupAnnotateclass inserts/manipulates annotation into the current scene.HOpMarkupAnnotateimplements 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
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: AnHEventInfoobject 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: AnHEventInfoobject 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: AnHEventInfoobject 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: AnHEventInfoobject 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: AnHEventInfoobject 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 anHBaseOperatorobject
-
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
intKeeps track of what background type we’re using.
-
bool
HOpMarkupMeasure::m_bAddToLayer protected
boolKeeps track of where this not is getting inserted and which segments it’s styling.
-
bool
HOpMarkupMeasure::m_bNewNote protected
boolSet if the note is new of it it was selected.
-
bool
HOpMarkupMeasure::m_bTouchedText protected
boolKeeps track of if we need to update the note or not.
-
bool
HOpMarkupMeasure::m_bHideOverlappedText protected
boolKeeps track of the hide overlapped text setting since we explicitly unset it.