Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpMarkupFreehand.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: c7ee2193eed8471f9371b12b6bb9a37e4d62a80d $
00013 //
00014 //  HOpMarkupFreehand.h : interface of the HOpMarkupFreehand class
00015 //
00016 //  Draws a polyline in the view plane based on pointer input
00017 //  Polyline points are stored in protected member variables and ready after 
00018 //  OnLButtonDblClk method has been called. 
00019 //  Derived Classes should call this::OnLButtonDblClk in their overloaded implementation.
00020 //  Polyline points are in window space.
00021 
00022 
00023 #ifndef _HOpMarkupFreehand_H
00024 #define _HOpMarkupFreehand_H
00025 
00026 #ifdef H_PACK_8
00027 #pragma pack(push)
00028 #pragma pack(8)
00029 #endif
00030 
00031 #include "HTools.h"
00032 #include "HBaseOperator.h"
00033 
00035 
00045 class MVO_API HOpMarkupFreehand : public HBaseOperator
00046 {
00047 public:
00048 
00056     HOpMarkupFreehand(HBaseView* view, int DoRepeat=0, int DoCapture=1);
00057 
00067     static void CreateMarkupFreehand(HBaseView *pView, const char *segment, unsigned int PolyLineLength, HPoint *pPolyline, bool emit_message);
00068 
00069     virtual HBaseOperator * Clone();  
00073     virtual const char * GetName();  
00074     
00075     HC_KEY  m_lPolyline;        
00076 
00082     virtual int OnLButtonDownAndMove(HEventInfo &hevent);
00083 
00090     virtual int OnLButtonDown(HEventInfo &hevent);
00091 
00098     virtual int OnLButtonUp(HEventInfo &hevent);
00099 
00100 protected:
00101     HPoint  m_ptLast; 
00102 };
00103 
00104 #ifdef H_PACK_8
00105 #pragma pack(pop)
00106 #endif
00107 
00108 #endif
00109 
00110 
00111 
00112 
00113