28 #ifndef vtkOpenGLRenderWindow_h 29 #define vtkOpenGLRenderWindow_h 31 #include "vtkRenderingOpenGLModule.h" 51 static void SetGlobalMaximumNumberOfMultiSamples(
int val);
52 static int GetGlobalMaximumNumberOfMultiSamples();
63 void StereoUpdate() VTK_OVERRIDE;
69 unsigned char *GetPixelData(
int x,
int y,
int x2,
int y2,
int front) VTK_OVERRIDE;
70 int GetPixelData(
int x,
int y,
int x2,
int y2,
int front,
72 int SetPixelData(
int x,
int y,
int x2,
int y2,
unsigned char *
data,
73 int front) VTK_OVERRIDE;
74 int SetPixelData(
int x,
int y,
int x2,
int y2,
82 float *GetRGBAPixelData(
int x,
int y,
int x2,
int y2,
int front) VTK_OVERRIDE;
83 int GetRGBAPixelData(
int x,
int y,
int x2,
int y2,
int front,
85 int SetRGBAPixelData(
int x,
int y,
int x2,
int y2,
float *data,
86 int front,
int blend=0) VTK_OVERRIDE;
87 int SetRGBAPixelData(
int x,
int y,
int x2,
int y2,
vtkFloatArray *data,
88 int front,
int blend=0) VTK_OVERRIDE;
89 void ReleaseRGBAPixelData(
float *data) VTK_OVERRIDE;
90 unsigned char *GetRGBACharPixelData(
int x,
int y,
int x2,
int y2,
91 int front) VTK_OVERRIDE;
92 int GetRGBACharPixelData(
int x,
int y,
int x2,
int y2,
int front,
94 int SetRGBACharPixelData(
int x,
int y,
int x2,
int y2,
95 unsigned char *data,
int front,
96 int blend=0) VTK_OVERRIDE;
97 int SetRGBACharPixelData(
int x,
int y,
int x2,
int y2,
99 int blend=0) VTK_OVERRIDE;
106 float *GetZbufferData(
int x1,
int y1,
int x2,
int y2 ) VTK_OVERRIDE;
107 int GetZbufferData(
int x1,
int y1,
int x2,
int y2,
float* z ) VTK_OVERRIDE;
108 int GetZbufferData(
int x1,
int y1,
int x2,
int y2,
110 int SetZbufferData(
int x1,
int y1,
int x2,
int y2,
float *buffer ) VTK_OVERRIDE;
111 int SetZbufferData(
int x1,
int y1,
int x2,
int y2,
118 void RegisterTextureResource (GLuint
id);
123 int GetDepthBufferSize() VTK_OVERRIDE;
129 int GetColorBufferSizes(
int *rgba) VTK_OVERRIDE;
135 void SetSize(
int a[2]) VTK_OVERRIDE;
136 void SetSize(
int,
int) VTK_OVERRIDE;
142 virtual
void OpenGLInit();
145 virtual
void OpenGLInitState();
148 virtual
void OpenGLInitContext();
157 unsigned int GetBackLeftBuffer();
166 unsigned int GetBackRightBuffer();
175 unsigned int GetFrontLeftBuffer();
184 unsigned int GetFrontRightBuffer();
193 unsigned int GetBackBuffer();
202 unsigned int GetFrontBuffer();
231 void WaitForCompletion() VTK_OVERRIDE;
242 int SetUseOffScreenBuffers(
bool offScreen) VTK_OVERRIDE;
243 bool GetUseOffScreenBuffers() VTK_OVERRIDE;
248 ~vtkOpenGLRenderWindow() VTK_OVERRIDE;
250 long OldMonitorSetting;
253 int GetPixelData(
int x,
int y,
int x2,
int y2,
int front,
unsigned char* data);
254 int GetRGBAPixelData(
int x,
int y,
int x2,
int y2,
int front,
float* data);
255 int GetRGBACharPixelData(
int x,
int y,
int x2,
int y2,
int front,
256 unsigned char* data);
267 int CreateHardwareOffScreenWindow(
int width,
int height);
269 int CreateHardwareOffScreenBuffers(
int width,
int height,
bool bind = false);
270 void BindHardwareOffScreenBuffers();
277 void DestroyHardwareOffScreenWindow();
279 void UnbindHardwareOffScreenBuffers();
280 void DestroyHardwareOffScreenBuffers();
285 int OffScreenUseFrameBuffer;
291 int NumberOfFrameBuffers;
292 unsigned int TextureObjects[4];
293 unsigned int FrameBufferObject;
294 unsigned int DepthRenderBufferObject;
295 int HardwareBufferSize[2];
296 bool HardwareOffScreenBuffersBind;
302 virtual
void CreateAWindow() = 0;
307 virtual
void DestroyWindow() = 0;
314 unsigned int BackLeftBuffer;
315 unsigned int BackRightBuffer;
316 unsigned int FrontLeftBuffer;
317 unsigned int FrontRightBuffer;
318 unsigned int FrontBuffer;
319 unsigned int BackBuffer;
331 vtkOpenGLRenderWindow(const vtkOpenGLRenderWindow&) VTK_DELETE_FUNCTION;
332 void operator=(const vtkOpenGLRenderWindow&) VTK_DELETE_FUNCTION;
337 vtkOpenGLExtensionManager* ExtensionManager;
Wrapper around std::string to keep symbols short.
vtkTypeUInt32 vtkMTimeType
record modification and/or execution time
dynamic, self-adjusting array of float
a simple class to control print indentation
list of point or cell ids
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Interface class for querying and using OpenGL extensions.
dynamic, self-adjusting array of unsigned char
allocate/free texture units.
create a window for renderers to draw into
virtual const char * GetRenderingBackend()
What rendering backend has the user requested.