Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpSelectPolygon.h
1 // Copyright (c) 1998-2014 by 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 // HOpSelectPolygon.h : interface of the HOpSelectPolygon class
11 //
12 // Draws a polyline in the view plane based on pointer input
13 // Polyline points are stored in protected member variables and ready after
14 // OnLButtonDblClk method has been called.
15 // Derived Classes should call this::OnLButtonDblClk in their overloaded implementation.
16 // Polyline points are in window space.
17 
18 
19 #ifndef _HOPSELECTPOLYGON_H
20 #define _HOPSELECTPOLYGON_H
21 
22 #ifdef H_PACK_8
23 #pragma pack(push)
24 #pragma pack(8)
25 #endif
26 
27 #include "HTools.h"
28 #include "HBaseOperator.h"
29 #include "HOpConstructPolyline.h"
30 
31 
33 
46 class MVO_API HOpSelectPolygon : public HOpConstructPolyline
47 {
48 public:
56  HOpSelectPolygon(HBaseView* view, int DoRepeat=0, int DoCapture=1);
57  virtual ~HOpSelectPolygon();
58 
62  virtual const char * GetName();
63 
64  virtual HBaseOperator * Clone();
75  virtual int OnLButtonDblClk(HEventInfo &hevent);
76 
82  virtual int OnLButtonDown(HEventInfo &hevent);
83 
84 private:
85  bool m_bFirstTimeThrough; // bool used to determine if we flush out the selection polygon
86 };
87 
88 #ifdef H_PACK_8
89 #pragma pack(pop)
90 #endif
91 
92 #endif
93 
94 
95 
96 
The HOpSelectPolygon class computes a selection list for objects inside a user-defined polygonal area...
Definition: HOpSelectPolygon.h:46
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:60
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
virtual HBaseOperator * Clone()
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
The HOpConstructPolyline class draws a polyline.
Definition: HOpConstructPolyline.h:45
virtual int OnLButtonDown(HEventInfo &hevent)
virtual const char * GetName()