Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpObjectTranslate.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 // $Id: ca33efba434da31b6dd29e3d786753598a26e352 $
13 //
14 
15 // HOpObjectTranslate.h : interface of the HOpObjectTranslate class
16 // translate items in the selection list of the associated view
17 //
18 // currently supports translation of item if it is a segment
19 
20 #ifndef _HOPOBJECTTRANSLATE_H
21 #define _HOPOBJECTTRANSLATE_H
22 
23 #ifdef H_PACK_8
24 #pragma pack(push)
25 #pragma pack(8)
26 #endif
27 
28 #include "HTools.h"
29 #include "HBaseOperator.h"
30 
31 class HKeyList;
32 
34 
46 class MVO_API HOpObjectTranslate : public HBaseOperator
47 {
48 
49 public:
56  HOpObjectTranslate (HBaseView* view, int DoRepeat=0, int DoCapture=1);
57  virtual ~HOpObjectTranslate();
58 
62  virtual const char * GetName();
63 
69  virtual int OnLButtonDown (HEventInfo &hevent);
70 
77  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
78 
84  virtual int OnLButtonUp (HEventInfo &hevent);
85 
91  virtual int OnLButtonDblClk (HEventInfo &hevent);
92 
93 
101  virtual HBaseOperator * Clone();
102 
106  virtual void UpdateKeyList(void * data);
107 
108 protected:
111  void Init();
112 
115  void Cleanup();
116 
129  int GetMatrix(HEventInfo &hevent, int key_count, HC_KEY const *full_path_keys, float *matrix_out);
130 
136  int UpdateMousePos(HEventInfo &hevent);
137 
140  HKeyList * m_KeyList;
141  HPoint m_ptLast;
142 private:
143  unsigned long m_cookie[2];
144 };
145 
146 
147 #ifdef H_PACK_8
148 #pragma pack(pop)
149 #endif
150 
151 #endif
152 
153 
154 
155 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
HPoint m_ptRecentVP
Definition: HOpObjectTranslate.h:95
virtual int OnLButtonUp(HEventInfo &hevent)
bool m_bTemporarySelection
Definition: HOpObjectTranslate.h:138
HPoint m_ptRecent
Definition: HOpObjectTranslate.h:94
HKeyList * m_KeyList
Definition: HOpObjectTranslate.h:140
virtual HBaseOperator * Clone()
bool m_bInitialMatrix
Definition: HOpObjectTranslate.h:139
The HBaseOperator class serves as a base for classes which handle user input and operate on the scene...
Definition: HBaseOperator.h:65
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:126
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:337
virtual int OnLButtonDblClk(HEventInfo &hevent)
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214
virtual int OnLButtonDown(HEventInfo &hevent)
The HOpObjectTranslate class translates a selected object.
Definition: HOpObjectTranslate.h:46