25 #ifndef vtkOpenGLRenderWindow_h 26 #define vtkOpenGLRenderWindow_h 28 #include "vtkRenderingOpenGLModule.h" 48 static void SetGlobalMaximumNumberOfMultiSamples(
int val);
49 static int GetGlobalMaximumNumberOfMultiSamples();
60 void StereoUpdate() VTK_OVERRIDE;
66 unsigned char *GetPixelData(
int x,
int y,
int x2,
int y2,
int front) VTK_OVERRIDE;
67 int GetPixelData(
int x,
int y,
int x2,
int y2,
int front,
69 int SetPixelData(
int x,
int y,
int x2,
int y2,
unsigned char *
data,
70 int front) VTK_OVERRIDE;
71 int SetPixelData(
int x,
int y,
int x2,
int y2,
79 float *GetRGBAPixelData(
int x,
int y,
int x2,
int y2,
int front) VTK_OVERRIDE;
80 int GetRGBAPixelData(
int x,
int y,
int x2,
int y2,
int front,
82 int SetRGBAPixelData(
int x,
int y,
int x2,
int y2,
float *
data,
83 int front,
int blend=0) VTK_OVERRIDE;
85 int front,
int blend=0) VTK_OVERRIDE;
86 void ReleaseRGBAPixelData(
float *
data) VTK_OVERRIDE;
87 unsigned char *GetRGBACharPixelData(
int x,
int y,
int x2,
int y2,
88 int front) VTK_OVERRIDE;
89 int GetRGBACharPixelData(
int x,
int y,
int x2,
int y2,
int front,
91 int SetRGBACharPixelData(
int x,
int y,
int x2,
int y2,
92 unsigned char *
data,
int front,
93 int blend=0) VTK_OVERRIDE;
94 int SetRGBACharPixelData(
int x,
int y,
int x2,
int y2,
96 int blend=0) VTK_OVERRIDE;
103 float *GetZbufferData(
int x1,
int y1,
int x2,
int y2 ) VTK_OVERRIDE;
104 int GetZbufferData(
int x1,
int y1,
int x2,
int y2,
float* z ) VTK_OVERRIDE;
105 int GetZbufferData(
int x1,
int y1,
int x2,
int y2,
107 int SetZbufferData(
int x1,
int y1,
int x2,
int y2,
float *buffer ) VTK_OVERRIDE;
108 int SetZbufferData(
int x1,
int y1,
int x2,
int y2,
115 void RegisterTextureResource (GLuint
id);
120 int GetDepthBufferSize() VTK_OVERRIDE;
126 int GetColorBufferSizes(
int *rgba) VTK_OVERRIDE;
132 void SetSize(
int a[2]) VTK_OVERRIDE;
133 void SetSize(
int,
int) VTK_OVERRIDE;
139 virtual
void OpenGLInit();
142 virtual
void OpenGLInitState();
145 virtual
void OpenGLInitContext();
154 unsigned int GetBackLeftBuffer();
163 unsigned int GetBackRightBuffer();
172 unsigned int GetFrontLeftBuffer();
181 unsigned int GetFrontRightBuffer();
190 unsigned int GetBackBuffer();
199 unsigned int GetFrontBuffer();
228 void WaitForCompletion() VTK_OVERRIDE;
239 int SetUseOffScreenBuffers(
bool offScreen) VTK_OVERRIDE;
240 bool GetUseOffScreenBuffers() VTK_OVERRIDE;
247 long OldMonitorSetting;
250 int GetPixelData(
int x,
int y,
int x2,
int y2,
int front,
unsigned char*
data);
251 int GetRGBAPixelData(
int x,
int y,
int x2,
int y2,
int front,
float*
data);
252 int GetRGBACharPixelData(
int x,
int y,
int x2,
int y2,
int front,
253 unsigned char*
data);
264 int CreateHardwareOffScreenWindow(
int width,
int height);
266 int CreateHardwareOffScreenBuffers(
int width,
int height,
bool bind = false);
267 void BindHardwareOffScreenBuffers();
274 void DestroyHardwareOffScreenWindow();
276 void UnbindHardwareOffScreenBuffers();
277 void DestroyHardwareOffScreenBuffers();
282 int OffScreenUseFrameBuffer;
288 int NumberOfFrameBuffers;
289 unsigned int TextureObjects[4];
290 unsigned int FrameBufferObject;
291 unsigned int DepthRenderBufferObject;
292 int HardwareBufferSize[2];
293 bool HardwareOffScreenBuffersBind;
299 virtual
void CreateAWindow() = 0;
304 virtual
void DestroyWindow() = 0;
311 unsigned int BackLeftBuffer;
312 unsigned int BackRightBuffer;
313 unsigned int FrontLeftBuffer;
314 unsigned int FrontRightBuffer;
315 unsigned int FrontBuffer;
316 unsigned int BackBuffer;
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.