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$ 00013 // 00014 00015 // HOpConstructCuboid.h : interface of the HOpCreateCuboid class 00016 // Creates a cuboid using left mouse down and drag 00017 00018 #ifndef _HOPCONSTRUCTCUBOID_H 00019 #define _HOPCONSTRUCTCUBOID_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 00044 class MVO_API HOpConstructCuboid : public HBaseOperator 00045 { 00046 protected: 00047 HPoint m_ptEdge; 00048 HPoint m_ptPointList[8]; 00049 int m_FaceList[30]; 00051 public: 00059 HOpConstructCuboid (HBaseView* view, int DoRepeat=0, int DoCapture=1); 00060 virtual ~HOpConstructCuboid(); 00061 00065 virtual const char * GetName(); 00066 00075 virtual int OnLButtonDown(HEventInfo &hevent); 00076 00083 virtual int OnNoButtonDownAndMove(HEventInfo &hevent); 00084 00091 virtual int OnLButtonDownAndMove(HEventInfo &hevent); 00092 00098 virtual int OnLButtonUp(HEventInfo &hevent); 00099 00107 virtual void CreateCuboid(HPoint const & last); 00108 00115 virtual void CreateSquare(HPoint const & first, HPoint const & last); 00116 00122 HBaseOperator * Clone(); 00123 }; 00124 00125 #ifdef H_PACK_8 00126 #pragma pack(pop) 00127 #endif 00128 00129 #endif 00130 00131 00132