Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpObjectRotate.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: 875c7a54867bef7718eada64de4101b74704f58d $
13 //
14 
15 // HOpObjectRotate.h : interface of the HOpObjectRotate class
16 // rotate items in the selection list of the associated view
17 
18 #ifndef _HOPOBJECTROTATE_H
19 #define _HOPOBJECTROTATE_H
20 
21 #ifdef H_PACK_8
22 #pragma pack(push)
23 #pragma pack(8)
24 #endif
25 
26 #include "HTools.h"
27 #include "HBaseOperator.h"
28 
29 
31 
43 class MVO_API HOpObjectRotate : public HBaseOperator
44 {
45 public:
52  HOpObjectRotate (HBaseView* view, int DoRepeat=0, int DoCapture=1);
53  virtual ~HOpObjectRotate();
54 
58  virtual const char * GetName();
59 
66  virtual int OnLButtonDown (HEventInfo &hevent);
67 
74  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
75 
81  virtual int OnLButtonUp (HEventInfo &hevent);
82 
88  virtual int OnLButtonDblClk (HEventInfo &hevent);
89 
94  virtual HBaseOperator * Clone();
95 
96 protected:
100  float m_radius;
104 private:
105  void RotateSegmentLocally (HC_KEY key, HPoint *rotate_object, float theta);
106 };
107 
108 
109 #ifdef H_PACK_8
110 #pragma pack(pop)
111 #endif
112 
113 #endif
114 
115 
116 
117 
118 
119 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
virtual int OnLButtonUp(HEventInfo &hevent)
HPoint m_ptCentroid
Definition: HOpObjectRotate.h:97
HPoint m_ptCentroidWorld
Definition: HOpObjectRotate.h:98
bool m_bInitialMatrix
Definition: HOpObjectRotate.h:102
bool m_bTemporarySelection
Definition: HOpObjectRotate.h:101
virtual HBaseOperator * Clone()
The HBaseOperator class serves as a base for classes which handle user input and operate on the scene...
Definition: HBaseOperator.h:65
float m_radius
Definition: HOpObjectRotate.h:100
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 HOpObjectRotate class rotates a selected object.
Definition: HOpObjectRotate.h:43
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214
virtual int OnLButtonDown(HEventInfo &hevent)
HPoint m_ptCentroidViewpoint
Definition: HOpObjectRotate.h:99