Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpConstructCircle.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 // HOpConstructCircle.h : interface of the HOpConstruction class
00011 // draws a 2D box in view port based on pointer first position and last position
00012 // Derived classes access the Points for the Circle in HBaseOperator members
00013 // m_ptFirst and m_ptLast; Points are stored in window space.
00014 
00015 
00016 #ifndef _HOPCONSTRUCTCIRCLE_H
00017 #define _HOPCONSTRUCTCIRCLE_H
00018 
00019 #ifdef H_PACK_8
00020 #pragma pack(push)
00021 #pragma pack(8)
00022 #endif
00023 
00024 #include "HTools.h"
00025 #include "HBaseOperator.h"
00026 
00028 
00039 class MVO_API HOpConstructCircle : public HBaseOperator
00040 {
00041 public:
00050     HOpConstructCircle(HBaseView* view, int DoRepeat=0, int DoCapture=1, bool UseCenterMarker=true);
00051     virtual ~HOpConstructCircle();
00052 
00056     virtual const char * GetName();  
00057 
00063     virtual int OnLButtonDown(HEventInfo &hevent);
00064 
00072     virtual int OnLButtonDownAndMove(HEventInfo &hevent);
00073 
00079     virtual int OnLButtonUp(HEventInfo &hevent); 
00080 
00086     virtual HBaseOperator * Clone(); 
00087  
00088     
00089 protected:
00090 
00091     float   m_radius;       
00092     HPoint  m_ptCircle[2];  
00093 
00094 private:
00095     bool    m_bUseCenterMarker; // Indicates whether a center marker should be drawn.
00096 
00097 };
00098 
00099 #ifdef H_PACK_8
00100 #pragma pack(pop)
00101 #endif
00102 
00103 #endif
00104 
00105 
00106 
00107 
00108 
00109