Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpMarkupFreehand.h
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 //  HOpMarkupFreehand.h : interface of the HOpMarkupFreehand 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 _HOpMarkupFreehand_H
00019 #define _HOpMarkupFreehand_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 HOpMarkupFreehand : public HBaseOperator
00041 {
00042 public:
00043 
00051     HOpMarkupFreehand(HBaseView* view, int DoRepeat=0, int DoCapture=1);
00052 
00062     static void CreateMarkupFreehand(HBaseView *pView, const char *segment, unsigned int PolyLineLength, HPoint *pPolyline, bool emit_message);
00063 
00064     virtual HBaseOperator * Clone();  
00068     virtual const char * GetName();  
00069     
00070     HC_KEY  m_lPolyline;        
00071 
00077     virtual int OnLButtonDownAndMove(HEventInfo &hevent);
00078 
00085     virtual int OnLButtonDown(HEventInfo &hevent);
00086 
00093     virtual int OnLButtonUp(HEventInfo &hevent);
00094 
00095 protected:
00096     HPoint  m_ptLast; 
00097 };
00098 
00099 #ifdef H_PACK_8
00100 #pragma pack(pop)
00101 #endif
00102 
00103 #endif
00104 
00105 
00106 
00107 
00108