HOpMoveHandle.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 // HOpMoveHandle.h : interface of the HOpMoveHandle class
11 // selection/movement of geometry handles
12 
13 #ifndef _HOpMoveHandle_H
14 #define _HOpMoveHandle_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 "HUtilityGeomHandle.h"
24 
26 
36 class MVO_API HOpMoveHandle : public HBaseOperator
37 {
38 public:
47  HOpMoveHandle (HBaseView* view, bool allowSelect = true, int DoRepeat=0, int DoCapture=1);
48  virtual ~HOpMoveHandle();
49 
50 
54  virtual const char * GetName();
55 
62  virtual int OnLButtonDown (HEventInfo &hevent);
63 
70  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
71 
77  virtual int OnNoButtonDownAndMove(HEventInfo &hevent);
78 
84  virtual int OnLButtonUp (HEventInfo &hevent);
85 
86 
88  HC_KEY FindHandle(HEventInfo &hevent);
89 
97  HC_KEY FindObject(HEventInfo &hevent, HC_KEY key, bool exclude = false);
98 
103  void SetupObject(HC_KEY key);
104 
106  void Reset();
107 
113  virtual HBaseOperator * Clone();
114 
115 protected:
116 
120 
121 private:
122  HPoint m_windowspaceDelta;
123 
124 };
125 
126 
127 #ifdef H_PACK_8
128 #pragma pack(pop)
129 #endif
130 
131 #endif
132 
133 
134 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
HC_KEY m_pHandleKey
The key of the active handle.
Definition: HOpMoveHandle.h:117
virtual int OnLButtonUp(HEventInfo &hevent)
#define HC_KEY
virtual int OnNoButtonDownAndMove(HEventInfo &hevent)
The HOpMoveHandle class selects/moves "handles" and their associated geometry.
Definition: HOpMoveHandle.h:36
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
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:121
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
virtual int OnLButtonDown(HEventInfo &hevent)
HC_KEY m_pObjectKey
The key of the handle object.
Definition: HOpMoveHandle.h:118
bool m_bAllowSelect
If the value is true, this class allows selection of different handle objects. This is disabled for c...
Definition: HOpMoveHandle.h:119