Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpConstructSphere.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: 015bd0939129f9454cd9a041c07c52b99d78e452 $
13 //
14 
15 // HOpConstructSphere.h : interface of the HOpConstructSphere class
16 // Constructs a sphere using left mouse down and drag
17 
18 #ifndef _HOPCONSTRUCTSPHERE_H
19 #define _HOPCONSTRUCTSPHERE_H
20 
21 #ifdef H_PACK_8
22 #pragma pack(push)
23 #pragma pack(8)
24 #endif
25 
26 #include "HTools.h"
27 #include "HBaseOperator.h"
28 
29 
31 
42 class MVO_API HOpConstructSphere : public HBaseOperator
43 {
44 private:
45  void GenerateLinesThroughSphere();
46 
47 protected:
48  float m_radius;
57  void ConstructWireframeSphere (HPoint const & center, float radius);
58 
59 public:
67  HOpConstructSphere (HBaseView* view, int DoRepeat=0, int DoCapture=1);
68  virtual ~HOpConstructSphere ();
69 
73  virtual const char * GetName();
74 
75 
81  virtual int OnLButtonDown(HEventInfo &hevent);
82 
91  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
92 
98  virtual int OnLButtonUp(HEventInfo &hevent);
99 
105  virtual HBaseOperator * Clone();
106 };
107 
108 #ifdef H_PACK_8
109 #pragma pack(pop)
110 #endif
111 
112 #endif
113 
114 
115 
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:42
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
Definition: HOpConstructSphere.h:48