HOpConstructSphere.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 // HOpConstructSphere.h : interface of the HOpConstructSphere class
11 // Constructs a sphere using left mouse down and drag
12 
13 #ifndef _HOPCONSTRUCTSPHERE_H
14 #define _HOPCONSTRUCTSPHERE_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 
37 class MVO_API HOpConstructSphere : public HBaseOperator
38 {
39 private:
40  void GenerateLinesThroughSphere();
41 
42 protected:
43  float m_radius;
52  void ConstructWireframeSphere (HPoint const & center, float radius);
53 
54 public:
62  HOpConstructSphere (HBaseView* view, int DoRepeat=0, int DoCapture=1);
63  virtual ~HOpConstructSphere ();
64 
68  virtual const char * GetName();
69 
70 
76  virtual int OnLButtonDown(HEventInfo &hevent);
77 
86  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
87 
93  virtual int OnLButtonUp(HEventInfo &hevent);
94 
100  virtual HBaseOperator * Clone();
101 };
102 
103 #ifdef H_PACK_8
104 #pragma pack(pop)
105 #endif
106 
107 #endif
108 
109 
110 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
virtual int OnLButtonUp(HEventInfo &hevent)
The HOpConstructSphere class provides support for constructing a sphere and inserting it into the mod...
Definition: HOpConstructSphere.h:37
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
Definition: HOpConstructSphere.h:43