Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpObjectRotate.h
1 // Copyright (c) 1998-2014 by 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 // HOpObjectRotate.h : interface of the HOpObjectRotate class
11 // rotate items in the selection list of the associated view
12 
13 #ifndef _HOPOBJECTROTATE_H
14 #define _HOPOBJECTROTATE_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 
24 
26 
38 class MVO_API HOpObjectRotate : public HBaseOperator
39 {
40 public:
47  HOpObjectRotate (HBaseView* view, int DoRepeat=0, int DoCapture=1);
48  virtual ~HOpObjectRotate();
49 
53  virtual const char * GetName();
54 
61  virtual int OnLButtonDown (HEventInfo &hevent);
62 
69  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
70 
76  virtual int OnLButtonUp (HEventInfo &hevent);
77 
83  virtual int OnLButtonDblClk (HEventInfo &hevent);
84 
89  virtual HBaseOperator * Clone();
90 
91 protected:
95  float m_radius;
99 private:
100  void RotateSegmentLocally (HC_KEY key, HPoint *rotate_object, float theta);
101 };
102 
103 
104 #ifdef H_PACK_8
105 #pragma pack(pop)
106 #endif
107 
108 #endif
109 
110 
111 
112 
113 
114 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
virtual int OnLButtonUp(HEventInfo &hevent)
HPoint m_ptCentroid
Definition: HOpObjectRotate.h:92
HPoint m_ptCentroidWorld
Definition: HOpObjectRotate.h:93
bool m_bInitialMatrix
Definition: HOpObjectRotate.h:97
bool m_bTemporarySelection
Definition: HOpObjectRotate.h:96
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
float m_radius
Definition: HOpObjectRotate.h:95
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
virtual int OnLButtonDblClk(HEventInfo &hevent)
The HOpObjectRotate class rotates a selected object.
Definition: HOpObjectRotate.h:38
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
virtual int OnLButtonDown(HEventInfo &hevent)
HPoint m_ptCentroidViewpoint
Definition: HOpObjectRotate.h:94