HOpConstructCuboid.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 // HOpConstructCuboid.h : interface of the HOpCreateCuboid class
11 // Creates a cuboid using left mouse down and drag
12 
13 #ifndef _HOPCONSTRUCTCUBOID_H
14 #define _HOPCONSTRUCTCUBOID_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 
39 class MVO_API HOpConstructCuboid : public HBaseOperator
40 {
41 protected:
43  HPoint m_ptPointList[8];
44  int m_FaceList[30];
46 public:
54  HOpConstructCuboid (HBaseView* view, int DoRepeat=0, int DoCapture=1);
55  virtual ~HOpConstructCuboid();
56 
60  virtual const char * GetName();
61 
70  virtual int OnLButtonDown(HEventInfo &hevent);
71 
78  virtual int OnNoButtonDownAndMove(HEventInfo &hevent);
79 
86  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
87 
93  virtual int OnLButtonUp(HEventInfo &hevent);
94 
102  virtual void CreateCuboid(HPoint const & last);
103 
110  virtual void CreateSquare(HPoint const & first, HPoint const & last);
111 
117  HBaseOperator * Clone();
118 };
119 
120 #ifdef H_PACK_8
121 #pragma pack(pop)
122 #endif
123 
124 #endif
125 
126 
127 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
The HOpConstructCuboid class creates a rectangular cube.
Definition: HOpConstructCuboid.h:39
virtual int OnLButtonUp(HEventInfo &hevent)
HPoint m_ptEdge
Definition: HOpConstructCuboid.h:42
virtual int OnNoButtonDownAndMove(HEventInfo &hevent)
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)