Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

HOpConstructCircle.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 // 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  void InsertDoublePrecisionCircle();
92 
93  float m_radius;
94  HPoint m_ptCircle[2];
95 
96 private:
97  bool m_bUseCenterMarker; // Indicates whether a center marker should be drawn.
98 
99 };
100 
101 #ifdef H_PACK_8
102 #pragma pack(pop)
103 #endif
104 
105 #endif
106 
107 
108 
109 
110 
111 
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:93
The HOpConstructCircle class draws a circle.
Definition: HOpConstructCircle.h:39