Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

HOpMarkupAnnotate.h
1 // Copyright (c) Tech Soft 3D
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 // HOpMarkupAnnotate.h : interface of the HOpMarkupAnnotate class
11 // inserts annotation into the current scene
12 
13 #ifndef _HOpMarkupAnnotate_H
14 #define _HOpMarkupAnnotate_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 "HUtilityAnnotation.h"
24 
26 
36 class MVO_API HOpMarkupAnnotate : public HBaseOperator
37 {
38 public:
47  HOpMarkupAnnotate (HBaseView* view, bool bAddToLayer = false, int DoRepeat=0, int DoCapture=1, bool create_new_notes = true);
48 
50  virtual ~HOpMarkupAnnotate();
51 
55  virtual const char * GetName();
56 
62  virtual int OnLButtonDown (HEventInfo &hevent);
63 
70  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
71 
77  virtual int OnRButtonDown (HEventInfo &hevent);
78 
84  virtual int OnLButtonUp (HEventInfo &hevent);
85 
92  virtual int OnKeyDown(HEventInfo &hevent);
93 
99  virtual HBaseOperator * Clone();
100 
101 protected:
102 
106  int GetBackgroundType() const {
107  return m_iBackgroundType;
108  }
110  void SetBackgroundType(int const type){
111  m_iBackgroundType = type;
112  }
113 
117  HC_KEY GetNoteKey() const {
118  return m_pNoteKey;
119  }
121  void SetNoteKey(HC_KEY const key) {
122  m_pNoteKey = key;
123  }
124 
129  return m_Annotation;
130  }
132  void SetAnnotation(HUtilityAnnotation const & rNote){
133  m_Annotation = rNote;
134  }
135 
139  bool GetAddToLayer() const {
140  return m_bAddToLayer;
141  }
143  void SetAddToLayer(bool value){
144  m_bAddToLayer = value;
145  }
146 
150  bool GetTouchedText() const {
151  return m_bTouchedText;
152  }
154  void SetTouchedText(bool value){
155  m_bTouchedText = value;
156  }
157 
161  bool GetHideOverlappedText() const {
162  return m_bHideOverlappedText;
163  }
165  void SetHideOverlappedText(bool onoff){
166  m_bHideOverlappedText = onoff;
167  }
168 
172  bool GetCreateNewNotes() const {
173  return m_bCreateNewNotes;
174  };
176  void SetCreateNewNotes(bool yesno) {
177  m_bCreateNewNotes = yesno;
178  };
179 
181  void StartOp();
182 
187  bool EndOp();
188 
190  void TransmitMarkupSegment();
191 };
192 
193 
194 #ifdef H_PACK_8
195 #pragma pack(pop)
196 #endif
197 
198 #endif
199 
200 
201 
202 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
bool m_bCreateNewNotes
Definition: HOpMarkupAnnotate.h:170
bool m_bTouchedText
Definition: HOpMarkupAnnotate.h:148
HC_KEY m_pNoteKey
Definition: HOpMarkupAnnotate.h:115
void SetBackgroundType(int const type)
Definition: HOpMarkupAnnotate.h:110
int GetBackgroundType() const
Definition: HOpMarkupAnnotate.h:106
virtual int OnLButtonUp(HEventInfo &hevent)
bool m_bAddToLayer
Definition: HOpMarkupAnnotate.h:137
void SetNoteKey(HC_KEY const key)
Definition: HOpMarkupAnnotate.h:121
HUtilityAnnotation & GetAnnotation()
Definition: HOpMarkupAnnotate.h:128
bool GetCreateNewNotes() const
Definition: HOpMarkupAnnotate.h:172
#define HC_KEY
void SetCreateNewNotes(bool yesno)
Definition: HOpMarkupAnnotate.h:176
HUtilityAnnotation m_Annotation
Definition: HOpMarkupAnnotate.h:126
int m_iBackgroundType
Definition: HOpMarkupAnnotate.h:104
virtual HBaseOperator * Clone()
void SetAnnotation(HUtilityAnnotation const &rNote)
Definition: HOpMarkupAnnotate.h:132
The HBaseOperator class serves as a base for classes which handle user input and operate on the scene...
Definition: HBaseOperator.h:60
HC_KEY GetNoteKey() const
Definition: HOpMarkupAnnotate.h:117
virtual int OnRButtonDown(HEventInfo &hevent)
bool GetAddToLayer() const
Definition: HOpMarkupAnnotate.h:139
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
bool GetHideOverlappedText() const
Definition: HOpMarkupAnnotate.h:161
The HUtilityAnnotation class defines and manages annotations.
Definition: HUtilityAnnotation.h:40
bool GetTouchedText() const
Definition: HOpMarkupAnnotate.h:150
bool m_bHideOverlappedText
Definition: HOpMarkupAnnotate.h:159
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
virtual int OnKeyDown(HEventInfo &hevent)
virtual int OnLButtonDown(HEventInfo &hevent)
void SetHideOverlappedText(bool onoff)
Definition: HOpMarkupAnnotate.h:165
void SetAddToLayer(bool value)
Definition: HOpMarkupAnnotate.h:143
The HOpMarkupAnnotate class inserts and manipulates annotation into the current scene.
Definition: HOpMarkupAnnotate.h:36
void SetTouchedText(bool value)
Definition: HOpMarkupAnnotate.h:154