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: d237580407e1e9522784ba3712401e61e8ae4608 $ 00013 // 00014 00015 // HOpConstructPolyline.h : interface of the HOpConstructPolyline 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 _HOPCONSTRUCTPOLYLINE_H 00025 #define _HOPCONSTRUCTPOLYLINE_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 00035 00037 00050 class MVO_API HOpConstructPolyline : public HBaseOperator 00051 { 00052 public: 00060 HOpConstructPolyline(HBaseView* view, int DoRepeat=0, int DoCapture=1); 00061 virtual ~HOpConstructPolyline(); 00062 00068 virtual HBaseOperator * Clone(); 00069 00073 virtual const char * GetName(); 00074 00075 HC_KEY m_PolylineKey; 00086 virtual int OnNoButtonDownAndMove(HEventInfo &hevent); 00087 00094 virtual int OnLButtonDown(HEventInfo &hevent); 00095 00101 virtual int OnLButtonDblClk(HEventInfo &hevent); 00102 00103 protected: 00104 00107 HPoint m_ptLast; 00108 HPoint* m_pPolyline; 00109 int m_PolylineCount; 00110 }; 00111 00112 #ifdef H_PACK_8 00113 #pragma pack(pop) 00114 #endif 00115 00116 #endif 00117 00118 00119