Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

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