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 // HOpConstructPolyline.h : interface of the HOpConstructPolyline 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 _HOPCONSTRUCTPOLYLINE_H 00020 #define _HOPCONSTRUCTPOLYLINE_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 00030 00032 00045 class MVO_API HOpConstructPolyline : public HBaseOperator 00046 { 00047 public: 00055 HOpConstructPolyline(HBaseView* view, int DoRepeat=0, int DoCapture=1); 00056 virtual ~HOpConstructPolyline(); 00057 00063 virtual HBaseOperator * Clone(); 00064 00068 virtual const char * GetName(); 00069 00070 HC_KEY m_PolylineKey; 00081 virtual int OnNoButtonDownAndMove(HEventInfo &hevent); 00082 00089 virtual int OnLButtonDown(HEventInfo &hevent); 00090 00096 virtual int OnLButtonDblClk(HEventInfo &hevent); 00097 00098 protected: 00099 00102 HPoint m_ptLast; 00103 HPoint* m_pPolyline; 00104 int m_PolylineCount; 00105 }; 00106 00107 #ifdef H_PACK_8 00108 #pragma pack(pop) 00109 #endif 00110 00111 #endif 00112 00113 00114