HDebugZBuffer.h
1 // Copyright (c) Tech Soft 3D
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 _HDEBUGZBUFFER_H
11 #define _HDEBUGZBUFFER_H
12 
13 #ifdef H_PACK_8
14 #pragma pack(push)
15 #pragma pack(8)
16 #endif
17 
18 #include "HTools.h"
19 #include "hic_types.h"
20 
21 class HBaseView;
22 
23 
29 class MVO_API HDebugZBuffer
30 {
31 protected:
32 
35  int m_width, m_height;
37 
38  float *m_FloatBuffer;
39  unsigned char *m_GreyBuffer;
41 
42 public:
43 
47  HDebugZBuffer( HBaseView *view );
49  virtual ~HDebugZBuffer();
51  void OpenglFinishPicture(HIC_Rendition const *nr, bool swap_buffers );
53  void Update();
54 
57  static void RegisterCallbacks();
59  static void ogl_finish_picture(HIC_Rendition const *nr, bool swap_buffers );
60 };
61 
62 
63 #ifdef H_PACK_8
64 #pragma pack(pop)
65 #endif
66 
67 #endif
68 
69 
70 
float * m_FloatBuffer
scratch space for z values in range [0..1]
Definition: HDebugZBuffer.h:38
char * m_StandaloneSegmentName
path to the standalone window
Definition: HDebugZBuffer.h:36
#define HC_KEY
HC_KEY m_GreyImageKey
key to the Image_By_Ref that represents the visualization
Definition: HDebugZBuffer.h:40
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
int m_height
width and height of the view (and thus the amount of scratch space required)
Definition: HDebugZBuffer.h:35
HC_KEY m_ViewKey
self-explanatory
Definition: HDebugZBuffer.h:33
HC_KEY m_StandaloneKey
key to the driver relevant to the standalone window
Definition: HDebugZBuffer.h:34
unsigned char * m_GreyBuffer
scratch space for output image
Definition: HDebugZBuffer.h:39
Definition: HDebugZBuffer.h:29