Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpCameraZoomBox.h
1 //
2 // Copyright (c) 2000 by Tech Soft 3D, LLC.
3 // The information contained herein is confidential and proprietary to
4 // Tech Soft 3D, LLC., and considered a trade secret as defined under
5 // civil and criminal statutes. Tech Soft 3D shall pursue its civil
6 // and criminal remedies in the event of unauthorized use or misappropriation
7 // of its trade secrets. Use of this information by anyone other than
8 // authorized employees of Tech Soft 3D, LLC. is granted only under a
9 // written non-disclosure agreement, expressly prescribing the scope and
10 // manner of such use.
11 //
12 // $Id: 1c255da758def6d2dfb12b639a3d05032d49d838 $
13 //
14 
15 // HOpCameraZoomBox.h : interface of the HOpCameraZoomBox class
16 // zooms the camera based on user-defined screen-space window
17 
18 #ifndef _HOPCAMERAZOOMBOX_H
19 #define _HOPCAMERAZOOMBOX_H
20 
21 #ifdef H_PACK_8
22 #pragma pack(push)
23 #pragma pack(8)
24 #endif
25 
26 #include "HTools.h"
27 #include "HOpConstructRectangle.h"
28 
30 
43 {
44 public:
52  HOpCameraZoomBox (HBaseView* view, int DoRepeat=0, int DoCapture=1);
53  virtual ~HOpCameraZoomBox();
54 
56  virtual const char * GetName();
57 
64  virtual int OnLButtonUp(HEventInfo &hevent);
65 
71  virtual int OnLButtonDblClk(HEventInfo &hevent);
72 
79  void SetLightFollowsCamera(bool follow){m_LightFollowsCamera = follow;};
80 
82  bool GetLightFollowsCamera(){return m_LightFollowsCamera;};
83 
89  virtual HBaseOperator * Clone();
90 
91 
92 protected:
93  bool ComputeReasonableTarget(HPoint & new_tar, HPoint const & min, HPoint const & max, HPoint const & tar_orig);
94  void ComputeNewField(float & width, float & height,
95  HPoint min, HPoint max,
96  HPoint const & new_tar
97  );
98 
99  bool m_LightFollowsCamera;
100 };
101 
102 #ifdef H_PACK_8
103 #pragma pack(pop)
104 #endif
105 
106 #endif
107 
108 
109 
The HOpCameraZoomBox class zooms the camera to a selected area.
Definition: HOpCameraZoomBox.h:42
bool GetLightFollowsCamera()
Definition: HOpCameraZoomBox.h:82
virtual HBaseOperator * Clone()
virtual int OnLButtonUp(HEventInfo &hevent)
void SetLightFollowsCamera(bool follow)
Definition: HOpCameraZoomBox.h:79
The HBaseOperator class serves as a base for classes which handle user input and operate on the scene...
Definition: HBaseOperator.h:65
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:126
virtual const char * GetName()
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:337
virtual int OnLButtonDblClk(HEventInfo &hevent)
The HOpConstructRectangle class draws a rectangle.
Definition: HOpConstructRectangle.h:44
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214