Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

HOpConstructCylinder.h
1 // Copyright (c) Tech Soft 3D
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 // HOpConstructCylinder.h : interface of the HOpConstructCylinder class
11 // Constructs a cylinder using left mouse down and drag
12 
13 #ifndef _HOPConstructCYLINDER_H
14 #define _HOPConstructCYLINDER_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 
25 
40 class MVO_API HOpConstructCylinder : public HBaseOperator
41 {
42 private:
43  void GenerateLinesThroughCircle( HPoint const &center, float radius );
44 
45 protected:
46  float m_height;
59  void ConstructWireframeCylinder(HPoint center, float radius, float height);
60 
61 public:
69  HOpConstructCylinder (HBaseView* view, int DoRepeat=0, int DoCapture=1);
70  virtual ~HOpConstructCylinder();
71 
72 
76  virtual const char * GetName();
77 
86  virtual int OnLButtonDown(HEventInfo &hevent);
87 
94  virtual int OnNoButtonDownAndMove(HEventInfo &hevent);
95 
103  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
104 
111  virtual int OnLButtonUp(HEventInfo &hevent);
112 
118  virtual HBaseOperator * Clone();
119 };
120 
121 #ifdef H_PACK_8
122 #pragma pack(pop)
123 #endif
124 
125 #endif
126 
127 
128 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
virtual int OnLButtonUp(HEventInfo &hevent)
float m_RadiusLength
Definition: HOpConstructCylinder.h:47
virtual int OnNoButtonDownAndMove(HEventInfo &hevent)
float m_height
Definition: HOpConstructCylinder.h:46
class HPoint HVector
The HVector class is the data type of a three-dimensional vector.
Definition: HGlobals.h:326
HVector m_WorldRadiusVector
Definition: HOpConstructCylinder.h:48
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
The HOpConstructCylinder class provides support for constructing a cylinder and inserting it into the...
Definition: HOpConstructCylinder.h:40
virtual int OnLButtonDown(HEventInfo &hevent)