Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpConstructRectangle.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: 779b9b8a124e33124487ac4b6842c2d480b9b05c $
13 //
14 
15 // HOpConstructRectangle.h : interface of the HOpConstruction class
16 // draws a 2D box in view port based on pointer first position and last position
17 // Derived classes access the Points for the rectangle in HBaseOperator members
18 // m_ptFirst and m_ptLast; Points are stored in window space.
19 
20 
21 #ifndef _HOPCONSTRUCTRECTANGLE_H
22 #define _HOPCONSTRUCTRECTANGLE_H
23 
24 #ifdef H_PACK_8
25 #pragma pack(push)
26 #pragma pack(8)
27 #endif
28 
29 #include "HTools.h"
30 #include "HBaseOperator.h"
31 
33 
44 class MVO_API HOpConstructRectangle : public HBaseOperator
45 {
46 public:
55  HOpConstructRectangle(HBaseView* view, int DoRepeat=0, int DoCapture=1, bool UseCenterMarker=true);
56  virtual ~HOpConstructRectangle();
57 
58 
62  virtual const char * GetName();
63 
69  virtual HBaseOperator * Clone();
70 
71 
72 
78  virtual int OnLButtonDown(HEventInfo &hevent);
79 
87  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
88 
94  virtual int OnLButtonUp(HEventInfo &hevent);
100  virtual int OnRButtonUp(HEventInfo &hevent);
101 
102 protected:
103 
105  HPoint m_ptRectangle[2];
106  char m_pSavedVisibility[MVO_BUFFER_SIZE];
107  char m_pSavedColor[MVO_BUFFER_SIZE];
108 
109 private:
110  bool m_bUseCenterMarker;
111 };
112 
113 #ifdef H_PACK_8
114 #pragma pack(pop)
115 #endif
116 
117 #endif
118 
119 
120 
121 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
virtual int OnLButtonUp(HEventInfo &hevent)
bool m_bRectangleExists
Definition: HOpConstructRectangle.h:104
virtual int OnRButtonUp(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 HOpConstructRectangle class draws a rectangle.
Definition: HOpConstructRectangle.h:44
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214
virtual int OnLButtonDown(HEventInfo &hevent)