HOpMarkupMeasure.h
1 // Copyright (c) Tech Soft 3D, Inc.
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 // HOpMarkupMeasure.h : interface of the HOpMarkupMeasure class
11 // inserts measurement into the current scene
12 
13 #ifndef _HOPMARKUPMEASURE_H
14 #define _HOPMARKUPMEASURE_H
15 
16 #ifdef H_PACK_8
17 #pragma pack(push)
18 #pragma pack(8)
19 #endif
20 
21 #include "HTools.h"
22 #include "HBaseOperator.h"
23 #include "HUtilityAnnotationMeasure.h"
24 
26 
36 class MVO_API HOpMarkupMeasure : public HBaseOperator
37 {
38 public:
39 
42  HOpMarkupMeasure (HBaseView* view, bool AddToLayer = false, int DoRepeat=0, int DoCapture=1);
43 
45  virtual ~HOpMarkupMeasure();
46 
49  virtual const char * GetName();
50 
56  virtual int OnLButtonDown (HEventInfo &hevent);
57 
64  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
65 
71  virtual int OnLButtonUp (HEventInfo &hevent);
72 
78  virtual int OnRButtonDown (HEventInfo &hevent);
79 
85  virtual int OnKeyDown(HEventInfo &hevent);
86 
87  virtual HBaseOperator * Clone();
88 
89 protected:
90 
93  void StartOp();
94 
99  bool EndOp();
100 
103 
106 
109 
112 
115 
118 };
119 
120 
121 
122 #ifdef H_PACK_8
123 #pragma pack(pop)
124 #endif
125 
126 #endif
127 
128 
129 
130 
131 
132 
133 
134 
135 
136 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
virtual int OnLButtonUp(HEventInfo &hevent)
The HOpMarkupAnnotate class inserts/manipulates annotation into the current scene.
Definition: HOpMarkupMeasure.h:36
bool m_bHideOverlappedText
Definition: HOpMarkupMeasure.h:117
bool m_bAddToLayer
Definition: HOpMarkupMeasure.h:108
virtual HBaseOperator * Clone()
The HBaseOperator class serves as a base for classes which handle user input and operate on the scene...
Definition: HBaseOperator.h:60
virtual int OnRButtonDown(HEventInfo &hevent)
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
int m_iBackgroundType
Definition: HOpMarkupMeasure.h:105
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
virtual int OnKeyDown(HEventInfo &hevent)
virtual int OnLButtonDown(HEventInfo &hevent)
The HUtilityAnnotationMeasure class defines and manages annotations.
Definition: HUtilityAnnotationMeasure.h:29
bool m_bTouchedText
Definition: HOpMarkupMeasure.h:114
HUtilityAnnotationMeasure m_Annotation
Definition: HOpMarkupMeasure.h:102
bool m_bNewNote
Definition: HOpMarkupMeasure.h:111