Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpCreateBoolean.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 
13 // HOpCreateBoolean.h : interface of the HOpCreateBoolean class
14 // Exposes the boolean functionality of the partviewer
15 
16 #ifndef _HOPCREATEBOOLEAN_H
17 #define _HOPCREATEBOOLEAN_H
18 
19 #ifdef H_PACK_8
20 #pragma pack(push)
21 #pragma pack(8)
22 #endif
23 
24 #include "HTools.h"
25 #include "HBaseOperator.h"
26 
27 #define BOOLEAN_TYPE_NONE 0
28 #define BOOLEAN_TYPE_INTERSECT 1
29 #define BOOLEAN_TYPE_SUBTRACT 2
30 #define BOOLEAN_TYPE_UNION 3
31 
33 
51 class MVO_API HOpCreateBoolean : public HBaseOperator
52 {
53 
54 public:
64  HOpCreateBoolean (HBaseView* view, int nBooleanType, int DoRepeat=0, int DoCapture=1);
65  virtual ~HOpCreateBoolean ();
66 
70  virtual const char * GetName();
71 
78  virtual int OnLButtonDown(HEventInfo &hevent);
79 
85  virtual HBaseOperator * Clone();
86 
87 private:
88  //the type of Boolean operation we're going to be performing
89  int m_BooleanType;
90 
91  //The keys of the two shells involved. This is necessary because the selection list
92  //stores the key of the containing segment, making it difficult to retrieve the shell again.
93  HC_KEY m_FirstSel, m_SecondSel;
94 
95  //This method perform selection handling. This is a slightly modified version of what is in HOpSelectAperture.
96  void HandleSelection(HEventInfo &event);
97 };
98 
99 #ifdef H_PACK_8
100 #pragma pack(pop)
101 #endif
102 
103 #endif
104 
105 
106 
107 
virtual const char * GetName()
#define HC_KEY
The HOpCreateBoolean class allows to perform the binary operations intersect, subtract and union on t...
Definition: HOpCreateBoolean.h:51
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 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)