Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpConstructCircle.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: 18a373f02cfbea9bae90a46df1cffdf1db48c0e5 $
00013 //
00014 
00015 // HOpConstructCircle.h : interface of the HOpConstruction class
00016 // draws a 2D box in view port based on pointer first position and last position
00017 // Derived classes access the Points for the Circle in HBaseOperator members
00018 // m_ptFirst and m_ptLast; Points are stored in window space.
00019 
00020 
00021 #ifndef _HOPCONSTRUCTCIRCLE_H
00022 #define _HOPCONSTRUCTCIRCLE_H
00023 
00024 #ifdef H_PACK_8
00025 #pragma pack(push)
00026 #pragma pack(8)
00027 #endif
00028 
00029 #include "HTools.h"
00030 #include "HBaseOperator.h"
00031 
00033 
00044 class MVO_API HOpConstructCircle : public HBaseOperator
00045 {
00046 public:
00055     HOpConstructCircle(HBaseView* view, int DoRepeat=0, int DoCapture=1, bool UseCenterMarker=true);
00056     virtual ~HOpConstructCircle();
00057 
00061     virtual const char * GetName();  
00062 
00068     virtual int OnLButtonDown(HEventInfo &hevent);
00069 
00077     virtual int OnLButtonDownAndMove(HEventInfo &hevent);
00078 
00084     virtual int OnLButtonUp(HEventInfo &hevent); 
00085 
00091     virtual HBaseOperator * Clone(); 
00092  
00093     
00094 protected:
00095 
00096     float   m_radius;       
00097     HPoint  m_ptCircle[2];  
00098 
00099 private:
00100     bool    m_bUseCenterMarker; // Indicates whether a center marker should be drawn.
00101 
00102 };
00103 
00104 #ifdef H_PACK_8
00105 #pragma pack(pop)
00106 #endif
00107 
00108 #endif
00109 
00110 
00111 
00112 
00113 
00114