Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpConstructCone.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: 46a63f242417d001901cb898dadae3ac2ac65168 $
00013 //
00014 
00015 // HOpConstructCone.h : interface of the HOpConstructCone class
00016 // Constructs a cone using left mouse down and drag
00017 
00018 #ifndef _HOPConstructCONE_H   
00019 #define _HOPConstructCONE_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 
00043 class MVO_API HOpConstructCone : public HBaseOperator
00044 {
00045 
00046 private:
00047     void GenerateLinesThroughCircle( HPoint const &center, float radius );
00048 
00049 protected:
00050     float   m_height;               
00051     float   m_RadiusLength;         
00052     HVector m_WorldRadiusVector;    
00063     void ConstructWireframeCone(HPoint center, float radius, float height);
00064     
00065 public:
00073     HOpConstructCone (HBaseView* view, int DoRepeat=0, int DoCapture=1);
00074     virtual ~HOpConstructCone();
00075 
00076 
00080     virtual const char * GetName();  
00081 
00090     virtual int OnLButtonDown(HEventInfo &hevent);
00091 
00098     virtual int OnNoButtonDownAndMove(HEventInfo &hevent);
00099 
00107     virtual int OnLButtonDownAndMove(HEventInfo &hevent);
00108 
00115     virtual int OnLButtonUp(HEventInfo &hevent);
00116 
00122     virtual HBaseOperator * Clone();
00123 };
00124 
00125 #ifdef H_PACK_8
00126 #pragma pack(pop)
00127 #endif
00128 
00129 #endif
00130 
00131 
00132 
00133