00001 // Copyright (c) 1998-2014 by Tech Soft 3D, Inc. 00002 // 00003 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc., 00004 // and considered a trade secret as defined under civil and criminal statutes. 00005 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of 00006 // unauthorized use or misappropriation of its trade secrets. Use of this information 00007 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under 00008 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use. 00009 00010 // HOpSelectPolygon.h : interface of the HOpSelectPolygon class 00011 // 00012 // Draws a polyline in the view plane based on pointer input 00013 // Polyline points are stored in protected member variables and ready after 00014 // OnLButtonDblClk method has been called. 00015 // Derived Classes should call this::OnLButtonDblClk in their overloaded implementation. 00016 // Polyline points are in window space. 00017 00018 00019 #ifndef _HOPSELECTPOLYGON_H 00020 #define _HOPSELECTPOLYGON_H 00021 00022 #ifdef H_PACK_8 00023 #pragma pack(push) 00024 #pragma pack(8) 00025 #endif 00026 00027 #include "HTools.h" 00028 #include "HBaseOperator.h" 00029 #include "HOpConstructPolyline.h" 00030 00031 00033 00046 class MVO_API HOpSelectPolygon : public HOpConstructPolyline 00047 { 00048 public: 00056 HOpSelectPolygon(HBaseView* view, int DoRepeat=0, int DoCapture=1); 00057 virtual ~HOpSelectPolygon(); 00058 00062 virtual const char * GetName(); 00063 00064 virtual HBaseOperator * Clone(); 00075 virtual int OnLButtonDblClk(HEventInfo &hevent); 00076 00082 virtual int OnLButtonDown(HEventInfo &hevent); 00083 00084 private: 00085 bool m_bFirstTimeThrough; // bool used to determine if we flush out the selection polygon 00086 }; 00087 00088 #ifdef H_PACK_8 00089 #pragma pack(pop) 00090 #endif 00091 00092 #endif 00093 00094 00095 00096