Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpMarkupAnnotate.h
1 //
2 // Copyright (c) 2000 by Tech Soft 3D, LLC.
3 // The information contained herein is confidential and proprietary to
4 // Tech Soft 3D, LLC., and considered a trade secret as defined under
5 // civil and criminal statutes. Tech Soft 3D shall pursue its civil
6 // and criminal remedies in the event of unauthorized use or misappropriation
7 // of its trade secrets. Use of this information by anyone other than
8 // authorized employees of Tech Soft 3D, LLC. is granted only under a
9 // written non-disclosure agreement, expressly prescribing the scope and
10 // manner of such use.
11 //
12 
13 // HOpMarkupAnnotate.h : interface of the HOpMarkupAnnotate class
14 // inserts annotation into the current scene
15 
16 #ifndef _HOpMarkupAnnotate_H
17 #define _HOpMarkupAnnotate_H
18 
19 #ifdef H_PACK_8
20 #pragma pack(push)
21 #pragma pack(8)
22 #endif
23 
24 #include "HTools.h"
25 #include "HBaseOperator.h"
26 #include "HUtilityAnnotation.h"
27 
29 
39 class MVO_API HOpMarkupAnnotate : public HBaseOperator
40 {
41 public:
50  HOpMarkupAnnotate (HBaseView* view, bool bAddToLayer = false, int DoRepeat=0, int DoCapture=1, bool create_new_notes = true);
51 
53  virtual ~HOpMarkupAnnotate();
54 
58  virtual const char * GetName();
59 
65  virtual int OnLButtonDown (HEventInfo &hevent);
66 
73  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
74 
80  virtual int OnRButtonDown (HEventInfo &hevent);
81 
87  virtual int OnLButtonUp (HEventInfo &hevent);
88 
95  virtual int OnKeyDown(HEventInfo &hevent);
96 
102  virtual HBaseOperator * Clone();
103 
104 protected:
105 
109  int GetBackgroundType(void) const {
110  return m_iBackgroundType;
111  }
113  void SetBackgroundType(int const type){
114  m_iBackgroundType = type;
115  }
116 
120  HC_KEY GetNoteKey(void) const {
121  return m_pNoteKey;
122  }
124  void SetNoteKey(HC_KEY const key) {
125  m_pNoteKey = key;
126  }
127 
132  return m_Annotation;
133  }
135  void SetAnnotation(HUtilityAnnotation const & rNote){
136  m_Annotation = rNote;
137  }
138 
142  bool GetAddToLayer(void) const {
143  return m_bAddToLayer;
144  }
146  void SetAddToLayer(bool value){
147  m_bAddToLayer = value;
148  }
149 
153  bool GetTouchedText(void) const {
154  return m_bTouchedText;
155  }
157  void SetTouchedText(bool value){
158  m_bTouchedText = value;
159  }
160 
164  bool GetHideOverlappedText(void) const {
165  return m_bHideOverlappedText;
166  }
168  void SetHideOverlappedText(bool onoff){
169  m_bHideOverlappedText = onoff;
170  }
171 
175  bool GetCreateNewNotes(void) const {
176  return m_bCreateNewNotes;
177  };
179  void SetCreateNewNotes(bool yesno) {
180  m_bCreateNewNotes = yesno;
181  };
182 
184  void StartOp(void);
185 
190  bool EndOp(void);
191 
193  void TransmitMarkupSegment();
194 };
195 
196 
197 #ifdef H_PACK_8
198 #pragma pack(pop)
199 #endif
200 
201 #endif
202 
203 
204 
205 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
bool m_bCreateNewNotes
Definition: HOpMarkupAnnotate.h:173
HUtilityAnnotation & GetAnnotation(void)
Definition: HOpMarkupAnnotate.h:131
bool m_bTouchedText
Definition: HOpMarkupAnnotate.h:151
HC_KEY m_pNoteKey
Definition: HOpMarkupAnnotate.h:118
void SetBackgroundType(int const type)
Definition: HOpMarkupAnnotate.h:113
virtual int OnLButtonUp(HEventInfo &hevent)
int GetBackgroundType(void) const
Definition: HOpMarkupAnnotate.h:109
bool m_bAddToLayer
Definition: HOpMarkupAnnotate.h:140
void SetNoteKey(HC_KEY const key)
Definition: HOpMarkupAnnotate.h:124
#define HC_KEY
void SetCreateNewNotes(bool yesno)
Definition: HOpMarkupAnnotate.h:179
HUtilityAnnotation m_Annotation
Definition: HOpMarkupAnnotate.h:129
int m_iBackgroundType
Definition: HOpMarkupAnnotate.h:107
virtual HBaseOperator * Clone()
bool GetTouchedText(void) const
Definition: HOpMarkupAnnotate.h:153
void SetAnnotation(HUtilityAnnotation const &rNote)
Definition: HOpMarkupAnnotate.h:135
The HBaseOperator class serves as a base for classes which handle user input and operate on the scene...
Definition: HBaseOperator.h:65
virtual int OnRButtonDown(HEventInfo &hevent)
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:337
The HUtilityAnnotation class defines and manages annotations.
Definition: HUtilityAnnotation.h:43
bool m_bHideOverlappedText
Definition: HOpMarkupAnnotate.h:162
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214
bool GetCreateNewNotes(void) const
Definition: HOpMarkupAnnotate.h:175
virtual int OnKeyDown(HEventInfo &hevent)
virtual int OnLButtonDown(HEventInfo &hevent)
void SetHideOverlappedText(bool onoff)
Definition: HOpMarkupAnnotate.h:168
HC_KEY GetNoteKey(void) const
Definition: HOpMarkupAnnotate.h:120
bool GetHideOverlappedText(void) const
Definition: HOpMarkupAnnotate.h:164
void SetAddToLayer(bool value)
Definition: HOpMarkupAnnotate.h:146
The HOpMarkupAnnotate class inserts and manipulates annotation into the current scene.
Definition: HOpMarkupAnnotate.h:39
bool GetAddToLayer(void) const
Definition: HOpMarkupAnnotate.h:142
void SetTouchedText(bool value)
Definition: HOpMarkupAnnotate.h:157