Alphabetical Class Index   Compound Members   File List  

HCtrlView.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: ca33d8cf0d0a28b7c8e03f21cde055689bff206b $
13 //
14 
15 #ifndef _HCTRLVIEW_H
16 #define _HCTRLVIEW_H
17 
18 #include "HBaseView.h"
19 #include "HUtilityShadow.h"
20 
21 
23 typedef struct {
24  unsigned char r;
25  unsigned char g;
26  unsigned char b;
27 } RGB;
28 
29 
30 
31 
33 
37 class HCtrlView : public HBaseView
38 {
39 
40 public:
45  HCtrlView (HBaseModel * model);
49  HCtrlView(HBaseModel *model,
50  const char * alias,
51  const char * driver_type,
52  const char * instance_name,
53  void * window_handle,
54  void * colormap);
55 
56  ~HCtrlView()
57  {
58  }
59 
60 
64  void Init (void);
65 
69  void CreateViewHeirarchy (void);
70 
78  void ReconfigureView (HWND hWnd, HPALETTE hPalette, char *drivertype);
82  void DeleteDriver (void);
83 
84 
85 
86 
89  void FitWorld();
92  void FlushFromMessage(const char *in_data, unsigned int data_length);
93 
94 
97  void DetachScene();
100  void AttachScene(void *h, char *drivertype);
101 
106  void GetWindowSize(int &xmax, int &ymax);
109  void CreateProgressWindow();
112  void DeleteProgressWindow();
116  void SetProgressWindow(int num);
117 
121  void DoSmoothTransition(bool prepare);
125  bool SceneDetached() { return m_bSceneDetached; }
126 
129  void FlushScene();
137  void SetHasCamera(bool hascamera) { m_hasCamera = hascamera; };
141  bool GetHasCamera() { return m_hasCamera;};
142 
146  bool OperatorStarted();
150 // void SetShadowMode(HShadowMode shadowMode);
151 
152 private:
153  void ComputeShadowPlane(void);
154  void DeleteRealDriver (void);
155  void DeleteNullDriver (void);
156  bool m_bRealDriver;
157  bool m_bSceneDetached;
158  HC_KEY m_progresskey;
159  bool m_bBoundingBox;
160  bool m_hasCamera;
161  ShadowPlaneType m_shadowPlane;
162 
163 };
164 
165 
166 
167 
168 
169 
170 
171 
172 
173 #endif _HCTRLVIEW_H
void SetHasCamera(bool hascamera)
Definition: HCtrlView.h:137
void AttachScene(void *h, char *drivertype)
bool GetHasCamera()
Definition: HCtrlView.h:141
void DetachScene()
void DeleteDriver(void)
Color Type.
Definition: HCtrlView.h:23
void CreateProgressWindow()
void DeleteProgressWindow()
void CreateViewHeirarchy(void)
void FlushFromMessage(const char *in_data, unsigned int data_length)
unsigned char r
Definition: HCtrlView.h:24
void DoSmoothTransition(bool prepare)
ShadowPlaneType
void FlushScene()
unsigned char b
Definition: HCtrlView.h:26
void GetWindowSize(int &xmax, int &ymax)
A HOOPS/ActiveX specific implmentation of the HOOPS/MVO HBaseView class.
Definition: HCtrlView.h:37
void FitWorld()
bool SceneDetached()
Definition: HCtrlView.h:125
HCtrlView(HBaseModel *model)
bool OperatorStarted()
void SetProgressWindow(int num)
unsigned char g
Definition: HCtrlView.h:25
void ReconfigureView(HWND hWnd, HPALETTE hPalette, char *drivertype)
void Init(void)