Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpConstructCylinder.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: d255f6626fce43665195e4d60a5483eb48b239dd $
13 //
14 
15 // HOpConstructCylinder.h : interface of the HOpConstructCylinder class
16 // Constructs a cylinder using left mouse down and drag
17 
18 #ifndef _HOPConstructCYLINDER_H
19 #define _HOPConstructCYLINDER_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 
30 
45 class MVO_API HOpConstructCylinder : public HBaseOperator
46 {
47 private:
48  void GenerateLinesThroughCircle( HPoint const &center, float radius );
49 
50 protected:
51  float m_height;
64  void ConstructWireframeCylinder(HPoint center, float radius, float height);
65 
66 public:
74  HOpConstructCylinder (HBaseView* view, int DoRepeat=0, int DoCapture=1);
75  virtual ~HOpConstructCylinder();
76 
77 
81  virtual const char * GetName();
82 
91  virtual int OnLButtonDown(HEventInfo &hevent);
92 
99  virtual int OnNoButtonDownAndMove(HEventInfo &hevent);
100 
108  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
109 
116  virtual int OnLButtonUp(HEventInfo &hevent);
117 
123  virtual HBaseOperator * Clone();
124 };
125 
126 #ifdef H_PACK_8
127 #pragma pack(pop)
128 #endif
129 
130 #endif
131 
132 
133 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
virtual int OnLButtonUp(HEventInfo &hevent)
float m_RadiusLength
Definition: HOpConstructCylinder.h:52
virtual int OnNoButtonDownAndMove(HEventInfo &hevent)
float m_height
Definition: HOpConstructCylinder.h:51
class HPoint HVector
The HVector class is the data type of a three-dimensional vector.
Definition: HGlobals.h:332
HVector m_WorldRadiusVector
Definition: HOpConstructCylinder.h:53
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
The HOpConstructCylinder class provides support for constructing a cylinder and inserting it into the...
Definition: HOpConstructCylinder.h:45
virtual int OnLButtonDown(HEventInfo &hevent)