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 // HOpConstructCone.h : interface of the HOpConstructCone class 00011 // Constructs a cone using left mouse down and drag 00012 00013 #ifndef _HOPConstructCONE_H 00014 #define _HOPConstructCONE_H 00015 00016 #ifdef H_PACK_8 00017 #pragma pack(push) 00018 #pragma pack(8) 00019 #endif 00020 00021 #include "HTools.h" 00022 #include "HBaseOperator.h" 00023 00025 00038 class MVO_API HOpConstructCone : public HBaseOperator 00039 { 00040 00041 private: 00042 void GenerateLinesThroughCircle( HPoint const ¢er, float radius ); 00043 00044 protected: 00045 float m_height; 00046 float m_RadiusLength; 00047 HVector m_WorldRadiusVector; 00058 void ConstructWireframeCone(HPoint center, float radius, float height); 00059 00060 public: 00068 HOpConstructCone (HBaseView* view, int DoRepeat=0, int DoCapture=1); 00069 virtual ~HOpConstructCone(); 00070 00071 00075 virtual const char * GetName(); 00076 00085 virtual int OnLButtonDown(HEventInfo &hevent); 00086 00093 virtual int OnNoButtonDownAndMove(HEventInfo &hevent); 00094 00102 virtual int OnLButtonDownAndMove(HEventInfo &hevent); 00103 00110 virtual int OnLButtonUp(HEventInfo &hevent); 00111 00117 virtual HBaseOperator * Clone(); 00118 }; 00119 00120 #ifdef H_PACK_8 00121 #pragma pack(pop) 00122 #endif 00123 00124 #endif 00125 00126 00127 00128