Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpMoveHandle.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 // HOpMoveHandle.h : interface of the HOpMoveHandle class
00011 // selection/movement of geometry handles
00012 
00013 #ifndef _HOpMoveHandle_H
00014 #define _HOpMoveHandle_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 #include "HUtilityGeomHandle.h"
00024 
00026 
00036 class  MVO_API HOpMoveHandle : public HBaseOperator
00037 {
00038 public:
00047       HOpMoveHandle (HBaseView* view, bool allowSelect = true, int DoRepeat=0, int DoCapture=1);
00048     virtual ~HOpMoveHandle();
00049 
00050 
00054     virtual const char * GetName();  
00055 
00062     virtual int OnLButtonDown (HEventInfo &hevent);
00063 
00070     virtual int OnLButtonDownAndMove(HEventInfo &hevent);
00071 
00077     virtual int OnNoButtonDownAndMove(HEventInfo &hevent);
00078 
00084     virtual int OnLButtonUp (HEventInfo &hevent);
00085  
00086 
00088     HC_KEY FindHandle(HEventInfo &hevent);
00089 
00097     HC_KEY FindObject(HEventInfo &hevent, HC_KEY key, bool exclude = false);
00098 
00103     void SetupObject(HC_KEY key);
00104 
00106     void Reset();   
00107     
00113     virtual HBaseOperator * Clone(); 
00114 
00115 protected:
00116  
00117     HC_KEY m_pHandleKey;    
00118     HC_KEY m_pObjectKey;    
00119     bool m_bAllowSelect;    
00120 
00121 private:
00122     HPoint m_windowspaceDelta;
00123 
00124 };
00125 
00126 
00127 #ifdef H_PACK_8
00128 #pragma pack(pop)
00129 #endif
00130 
00131 #endif
00132 
00133 
00134