Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpCameraZoom.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 // HPanCamera.h : interface of the HPanCamera class
00016 // zooms the camera of current view in realtime
00017 
00018 #ifndef _HOPCAMERAZOOM_H
00019 #define _HOPCAMERAZOOM_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 
00041 class MVO_API HOpCameraZoom : public HBaseOperator
00042 {
00043 public:
00051      HOpCameraZoom (HBaseView* view, int DoRepeat=0, int DoCapture=1);
00052     virtual ~HOpCameraZoom();
00053 
00057     virtual const char * GetName();  
00058 
00065     virtual int OnLButtonDown (HEventInfo &hevent);
00066 
00075     virtual int OnLButtonDownAndMove(HEventInfo &hevent);
00076 
00082     virtual int OnLButtonUp (HEventInfo &hevent);
00083 
00090     void SetLightFollowsCamera(bool follow){m_LightFollowsCamera = follow;};
00091 
00093     bool GetLightFollowsCamera(){return m_LightFollowsCamera;};
00099     virtual HBaseOperator * Clone();
00100 
00101 private:
00102     bool    m_LightFollowsCamera;   
00103     HPoint  m_ptDist, m_ptCamera;
00104     float   m_Width, m_Height, m_fLength;
00105 };
00106 
00107 
00108 #ifdef H_PACK_8
00109 #pragma pack(pop)
00110 #endif
00111 
00112 #endif
00113 
00114 
00115