Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpMoveHandle.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$
00013 //
00014 
00015 // HOpMoveHandle.h : interface of the HOpMoveHandle class
00016 // selection/movement of geometry handles
00017 
00018 #ifndef _HOpMoveHandle_H
00019 #define _HOpMoveHandle_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 #include "HUtilityGeomHandle.h"
00029 
00031 
00041 class  MVO_API HOpMoveHandle : public HBaseOperator
00042 {
00043 public:
00052       HOpMoveHandle (HBaseView* view, bool allowSelect = true, int DoRepeat=0, int DoCapture=1);
00053     virtual ~HOpMoveHandle();
00054 
00055 
00059     virtual const char * GetName();  
00060 
00067     virtual int OnLButtonDown (HEventInfo &hevent);
00068 
00075     virtual int OnLButtonDownAndMove(HEventInfo &hevent);
00076 
00082     virtual int OnNoButtonDownAndMove(HEventInfo &hevent);
00083 
00089     virtual int OnLButtonUp (HEventInfo &hevent);
00090  
00091 
00093     HC_KEY FindHandle(HEventInfo &hevent);
00094 
00102     HC_KEY FindObject(HEventInfo &hevent, HC_KEY key, bool exclude = false);
00103 
00108     void SetupObject(HC_KEY key);
00109 
00111     void Reset();   
00112     
00118     virtual HBaseOperator * Clone(); 
00119 
00120 protected:
00121  
00122     HC_KEY m_pHandleKey;    
00123     HC_KEY m_pObjectKey;    
00124     bool m_bAllowSelect;    
00125 
00126 private:
00127     HPoint m_windowspaceDelta;
00128 
00129 };
00130 
00131 
00132 #ifdef H_PACK_8
00133 #pragma pack(pop)
00134 #endif
00135 
00136 #endif
00137 
00138 
00139