Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpSelectPolygon.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: c78cd1cbd61f6bb0640e77b67a9a7c3edba2e5ce $
13 //
14 
15 // HOpSelectPolygon.h : interface of the HOpSelectPolygon class
16 //
17 // Draws a polyline in the view plane based on pointer input
18 // Polyline points are stored in protected member variables and ready after
19 // OnLButtonDblClk method has been called.
20 // Derived Classes should call this::OnLButtonDblClk in their overloaded implementation.
21 // Polyline points are in window space.
22 
23 
24 #ifndef _HOPSELECTPOLYGON_H
25 #define _HOPSELECTPOLYGON_H
26 
27 #ifdef H_PACK_8
28 #pragma pack(push)
29 #pragma pack(8)
30 #endif
31 
32 #include "HTools.h"
33 #include "HBaseOperator.h"
34 #include "HOpConstructPolyline.h"
35 
36 
38 
51 class MVO_API HOpSelectPolygon : public HOpConstructPolyline
52 {
53 public:
61  HOpSelectPolygon(HBaseView* view, int DoRepeat=0, int DoCapture=1);
62  virtual ~HOpSelectPolygon();
63 
67  virtual const char * GetName();
68 
69  virtual HBaseOperator * Clone();
80  virtual int OnLButtonDblClk(HEventInfo &hevent);
81 
87  virtual int OnLButtonDown(HEventInfo &hevent);
88 
89 private:
90  bool m_bFirstTimeThrough; // bool used to determine if we flush out the selection polygon
91 };
92 
93 #ifdef H_PACK_8
94 #pragma pack(pop)
95 #endif
96 
97 #endif
98 
99 
100 
101 
The HOpSelectPolygon class computes a selection list for objects inside a user-defined polygonal area...
Definition: HOpSelectPolygon.h:51
virtual int OnLButtonDblClk(HEventInfo &hevent)
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
virtual HBaseOperator * Clone()
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214
The HOpConstructPolyline class draws a polyline.
Definition: HOpConstructPolyline.h:50
virtual int OnLButtonDown(HEventInfo &hevent)
virtual const char * GetName()