Alphabetical Class Index   Compound Members   File List  

HCtrlView.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 #ifndef _HCTRLVIEW_H
11 #define _HCTRLVIEW_H
12 
13 #include "HBaseView.h"
14 #include "HUtilityShadow.h"
15 
16 
18 typedef struct {
19  unsigned char r;
20  unsigned char g;
21  unsigned char b;
22 } RGB;
23 
24 
25 
26 
28 
32 class HCtrlView : public HBaseView
33 {
34 
35 public:
40  HCtrlView (HBaseModel * model);
44  HCtrlView(HBaseModel *model,
45  const char * alias,
46  const char * driver_type,
47  const char * instance_name,
48  void * window_handle,
49  void * colormap);
50 
51  ~HCtrlView()
52  {
53  }
54 
55 
59  void Init (void);
60 
64  void CreateViewHeirarchy (void);
65 
73  void ReconfigureView (HWND hWnd, HPALETTE hPalette, char *drivertype);
77  void DeleteDriver (void);
78 
79 
80 
81 
84  void FitWorld();
87  void FlushFromMessage(const char *in_data, unsigned int data_length);
88 
89 
92  void DetachScene();
95  void AttachScene(void *h, char *drivertype);
96 
101  void GetWindowSize(int &xmax, int &ymax);
104  void CreateProgressWindow();
107  void DeleteProgressWindow();
111  void SetProgressWindow(int num);
112 
116  void DoSmoothTransition(bool prepare);
120  bool SceneDetached() { return m_bSceneDetached; }
121 
124  void FlushScene();
132  void SetHasCamera(bool hascamera) { m_hasCamera = hascamera; };
136  bool GetHasCamera() { return m_hasCamera;};
137 
141  bool OperatorStarted();
145 // void SetShadowMode(HShadowMode shadowMode);
146 
147 private:
148  void ComputeShadowPlane(void);
149  void DeleteRealDriver (void);
150  void DeleteNullDriver (void);
151  bool m_bRealDriver;
152  bool m_bSceneDetached;
153  HC_KEY m_progresskey;
154  bool m_bBoundingBox;
155  bool m_hasCamera;
156  ShadowPlaneType m_shadowPlane;
157 
158 };
159 
160 
161 
162 
163 
164 
165 
166 
167 
168 #endif _HCTRLVIEW_H
void SetHasCamera(bool hascamera)
Definition: HCtrlView.h:132
void AttachScene(void *h, char *drivertype)
bool GetHasCamera()
Definition: HCtrlView.h:136
void DetachScene()
void DeleteDriver(void)
Color Type.
Definition: HCtrlView.h:18
void CreateProgressWindow()
void DeleteProgressWindow()
void CreateViewHeirarchy(void)
void FlushFromMessage(const char *in_data, unsigned int data_length)
unsigned char r
Definition: HCtrlView.h:19
void DoSmoothTransition(bool prepare)
ShadowPlaneType
void FlushScene()
unsigned char b
Definition: HCtrlView.h:21
void GetWindowSize(int &xmax, int &ymax)
A HOOPS/ActiveX specific implmentation of the HOOPS/MVO HBaseView class.
Definition: HCtrlView.h:32
void FitWorld()
bool SceneDetached()
Definition: HCtrlView.h:120
HCtrlView(HBaseModel *model)
bool OperatorStarted()
void SetProgressWindow(int num)
unsigned char g
Definition: HCtrlView.h:20
void ReconfigureView(HWND hWnd, HPALETTE hPalette, char *drivertype)
void Init(void)