Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

HOpConstructCone.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 // HOpConstructCone.h : interface of the HOpConstructCone class
11 // Constructs a cone using left mouse down and drag
12 
13 #ifndef _HOPConstructCONE_H
14 #define _HOPConstructCONE_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 
38 class MVO_API HOpConstructCone : public HBaseOperator
39 {
40 
41 private:
42  void GenerateLinesThroughCircle( HPoint const &center, float radius );
43 
44 protected:
45  float m_height;
58  void ConstructWireframeCone(HPoint center, float radius, float height);
59 
60 public:
68  HOpConstructCone (HBaseView* view, int DoRepeat=0, int DoCapture=1);
69  virtual ~HOpConstructCone();
70 
71 
75  virtual const char * GetName();
76 
85  virtual int OnLButtonDown(HEventInfo &hevent);
86 
93  virtual int OnNoButtonDownAndMove(HEventInfo &hevent);
94 
102  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
103 
110  virtual int OnLButtonUp(HEventInfo &hevent);
111 
117  virtual HBaseOperator * Clone();
118 };
119 
120 #ifdef H_PACK_8
121 #pragma pack(pop)
122 #endif
123 
124 #endif
125 
126 
127 
128 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
virtual int OnLButtonUp(HEventInfo &hevent)
float m_height
Definition: HOpConstructCone.h:45
float m_RadiusLength
Definition: HOpConstructCone.h:46
virtual int OnNoButtonDownAndMove(HEventInfo &hevent)
The HOpConstructCone class provides support for constructing a cone and inserting it into the model...
Definition: HOpConstructCone.h:38
class HPoint HVector
The HVector class is the data type of a three-dimensional vector.
Definition: HGlobals.h:326
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)
HVector m_WorldRadiusVector
Definition: HOpConstructCone.h:47