Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpCameraZoomBox.h
1 // Copyright (c) 1998-2014 by Tech Soft 3D, Inc.
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 // HOpCameraZoomBox.h : interface of the HOpCameraZoomBox class
11 // zooms the camera based on user-defined screen-space window
12 
13 #ifndef _HOPCAMERAZOOMBOX_H
14 #define _HOPCAMERAZOOMBOX_H
15 
16 #ifdef H_PACK_8
17 #pragma pack(push)
18 #pragma pack(8)
19 #endif
20 
21 #include "HTools.h"
22 #include "HOpConstructRectangle.h"
23 
25 
38 {
39 public:
47  HOpCameraZoomBox (HBaseView* view, int DoRepeat=0, int DoCapture=1);
48  virtual ~HOpCameraZoomBox();
49 
51  virtual const char * GetName();
52 
59  virtual int OnLButtonUp(HEventInfo &hevent);
60 
66  virtual int OnLButtonDblClk(HEventInfo &hevent);
67 
74  void SetLightFollowsCamera(bool follow){m_LightFollowsCamera = follow;};
75 
77  bool GetLightFollowsCamera(){return m_LightFollowsCamera;};
78 
84  virtual HBaseOperator * Clone();
85 
86 
87 protected:
88  bool ComputeReasonableTarget(HPoint & new_tar, HPoint const & min, HPoint const & max, HPoint const & tar_orig);
89  void ComputeNewField(float & width, float & height,
90  HPoint min, HPoint max,
91  HPoint const & new_tar
92  );
93 
94  bool m_LightFollowsCamera;
95 };
96 
97 #ifdef H_PACK_8
98 #pragma pack(pop)
99 #endif
100 
101 #endif
102 
103 
104 
The HOpCameraZoomBox class zooms the camera to a selected area.
Definition: HOpCameraZoomBox.h:37
bool GetLightFollowsCamera()
Definition: HOpCameraZoomBox.h:77
virtual HBaseOperator * Clone()
virtual int OnLButtonUp(HEventInfo &hevent)
void SetLightFollowsCamera(bool follow)
Definition: HOpCameraZoomBox.h:74
The HBaseOperator class serves as a base for classes which handle user input and operate on the scene...
Definition: HBaseOperator.h:60
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:121
virtual const char * GetName()
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
virtual int OnLButtonDblClk(HEventInfo &hevent)
The HOpConstructRectangle class draws a rectangle.
Definition: HOpConstructRectangle.h:39
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207