Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpConstructCircle.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: 18a373f02cfbea9bae90a46df1cffdf1db48c0e5 $
13 //
14 
15 // HOpConstructCircle.h : interface of the HOpConstruction class
16 // draws a 2D box in view port based on pointer first position and last position
17 // Derived classes access the Points for the Circle in HBaseOperator members
18 // m_ptFirst and m_ptLast; Points are stored in window space.
19 
20 
21 #ifndef _HOPCONSTRUCTCIRCLE_H
22 #define _HOPCONSTRUCTCIRCLE_H
23 
24 #ifdef H_PACK_8
25 #pragma pack(push)
26 #pragma pack(8)
27 #endif
28 
29 #include "HTools.h"
30 #include "HBaseOperator.h"
31 
33 
44 class MVO_API HOpConstructCircle : public HBaseOperator
45 {
46 public:
55  HOpConstructCircle(HBaseView* view, int DoRepeat=0, int DoCapture=1, bool UseCenterMarker=true);
56  virtual ~HOpConstructCircle();
57 
61  virtual const char * GetName();
62 
68  virtual int OnLButtonDown(HEventInfo &hevent);
69 
77  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
78 
84  virtual int OnLButtonUp(HEventInfo &hevent);
85 
91  virtual HBaseOperator * Clone();
92 
93 
94 protected:
95 
96  float m_radius;
97  HPoint m_ptCircle[2];
98 
99 private:
100  bool m_bUseCenterMarker; // Indicates whether a center marker should be drawn.
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)
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
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
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214
virtual int OnLButtonDown(HEventInfo &hevent)
float m_radius
The radius of the circle.
Definition: HOpConstructCircle.h:96
The HOpConstructCircle class draws a circle.
Definition: HOpConstructCircle.h:44