Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpConstructCuboid.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: 8eef84178c49fc2ceee8a07d37859a7df1924726 $
13 //
14 
15 // HOpConstructCuboid.h : interface of the HOpCreateCuboid class
16 // Creates a cuboid using left mouse down and drag
17 
18 #ifndef _HOPCONSTRUCTCUBOID_H
19 #define _HOPCONSTRUCTCUBOID_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 
44 class MVO_API HOpConstructCuboid : public HBaseOperator
45 {
46 protected:
48  HPoint m_ptPointList[8];
49  int m_FaceList[30];
51 public:
59  HOpConstructCuboid (HBaseView* view, int DoRepeat=0, int DoCapture=1);
60  virtual ~HOpConstructCuboid();
61 
65  virtual const char * GetName();
66 
75  virtual int OnLButtonDown(HEventInfo &hevent);
76 
83  virtual int OnNoButtonDownAndMove(HEventInfo &hevent);
84 
91  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
92 
98  virtual int OnLButtonUp(HEventInfo &hevent);
99 
107  virtual void CreateCuboid(HPoint const & last);
108 
115  virtual void CreateSquare(HPoint const & first, HPoint const & last);
116 
122  HBaseOperator * Clone();
123 };
124 
125 #ifdef H_PACK_8
126 #pragma pack(pop)
127 #endif
128 
129 #endif
130 
131 
132 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
The HOpConstructCuboid class creates a rectangular cube.
Definition: HOpConstructCuboid.h:44
virtual int OnLButtonUp(HEventInfo &hevent)
HPoint m_ptEdge
Definition: HOpConstructCuboid.h:47
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: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)