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 // HOpMarkupFreehand3D.h : interface of the HOpMarkupFreehand3D 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 #ifndef _HOpMarkupFreehand3D_H 00019 #define _HOpMarkupFreehand3D_H 00020 00021 #ifdef H_PACK_8 00022 #pragma pack(push) 00023 #pragma pack(8) 00024 #endif 00025 00026 #include "HTools.h" 00027 #include "HBaseOperator.h" 00028 00030 00040 class MVO_API HOpMarkupFreehand3D : public HBaseOperator 00041 { 00042 public: 00050 HOpMarkupFreehand3D(HBaseView* view, int DoRepeat=0, int DoCapture=1); 00051 00060 static void CreateMarkupFreehand(HBaseView *pView, const char *segment, unsigned int PolyLineLength, HPoint *pPolyline, bool emit_message); 00061 00062 HBaseOperator * Clone(); 00066 virtual const char * GetName(); 00067 00068 HC_KEY m_lPolyline; 00069 00070 00079 virtual int OnLButtonDownAndMove(HEventInfo &hevent); 00080 00088 virtual int OnLButtonDown(HEventInfo &hevent); 00089 00096 virtual int OnLButtonUp(HEventInfo &hevent); 00097 00098 protected: 00099 00102 bool IsModelGeometry(); 00103 00104 HPoint m_ptLast; 00105 }; 00106 00107 00108 #ifdef H_PACK_8 00109 #pragma pack(pop) 00110 #endif 00111 00112 #endif 00113 00114 00115