Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpConstructCircle.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 // HOpConstructCircle.h : interface of the HOpConstruction class
11 // draws a 2D box in view port based on pointer first position and last position
12 // Derived classes access the Points for the Circle in HBaseOperator members
13 // m_ptFirst and m_ptLast; Points are stored in window space.
14 
15 
16 #ifndef _HOPCONSTRUCTCIRCLE_H
17 #define _HOPCONSTRUCTCIRCLE_H
18 
19 #ifdef H_PACK_8
20 #pragma pack(push)
21 #pragma pack(8)
22 #endif
23 
24 #include "HTools.h"
25 #include "HBaseOperator.h"
26 
28 
39 class MVO_API HOpConstructCircle : public HBaseOperator
40 {
41 public:
50  HOpConstructCircle(HBaseView* view, int DoRepeat=0, int DoCapture=1, bool UseCenterMarker=true);
51  virtual ~HOpConstructCircle();
52 
56  virtual const char * GetName();
57 
63  virtual int OnLButtonDown(HEventInfo &hevent);
64 
72  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
73 
79  virtual int OnLButtonUp(HEventInfo &hevent);
80 
86  virtual HBaseOperator * Clone();
87 
88 
89 protected:
90 
91  float m_radius;
92  HPoint m_ptCircle[2];
93 
94 private:
95  bool m_bUseCenterMarker; // Indicates whether a center marker should be drawn.
96 
97 };
98 
99 #ifdef H_PACK_8
100 #pragma pack(pop)
101 #endif
102 
103 #endif
104 
105 
106 
107 
108 
109 
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: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)
float m_radius
The radius of the circle.
Definition: HOpConstructCircle.h:91
The HOpConstructCircle class draws a circle.
Definition: HOpConstructCircle.h:39