Go to the documentation of this file.
28 #ifndef vtkOpenGLRenderWindow_h
29 #define vtkOpenGLRenderWindow_h
31 #include "vtkRenderingOpenGLModule.h"
69 virtual unsigned char *
GetPixelData(
int x,
int y,
int x2,
int y2,
int front);
86 int front,
int blend=0);
88 int front,
int blend=0);
95 unsigned char *
data,
int front,
256 unsigned char*
data);
292 unsigned int TextureObjects[4];
295 int HardwareBufferSize[2];
virtual int SetPixelData(int x, int y, int x2, int y2, unsigned char *data, int front)
Set/Get the pixel data of an image, transmitted as RGBRGBRGB.
virtual vtkMTimeType GetContextCreationTime()
Get the time when the OpenGL context was created.
virtual const char * GetRenderingBackend()
What rendering backend has the user requested.
virtual void OpenGLInit()
Initialize OpenGL for this window.
void DestroyHardwareOffScreenBuffers()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int SetZbufferData(int x1, int y1, int x2, int y2, float *buffer)
int NumberOfFrameBuffers
Variables used by the framebuffer-based offscreen method.
virtual int GetZbufferData(int x1, int y1, int x2, int y2, float *z)
void DestroyHardwareOffScreenWindow()
Destroy an offscreen window based on OpenGL framebuffer extension.
virtual int SetPixelData(int x, int y, int x2, int y2, vtkUnsignedCharArray *data, int front)
dynamic, self-adjusting array of float
virtual int SetRGBAPixelData(int x, int y, int x2, int y2, float *data, int front, int blend=0)
virtual int SetUseOffScreenBuffers(bool offScreen)
Create and bind offscreen rendering buffers without destroying the current OpenGL context.
record modification and/or execution time
void SetTextureUnitManager(vtkTextureUnitManager *textureUnitManager)
Set the texture unit manager.
vtkTextureUnitManager * TextureUnitManager
dynamic, self-adjusting array of unsigned char
void BindHardwareOffScreenBuffers()
int CreateHardwareOffScreenWindow(int width, int height)
Create an offScreen window based on OpenGL framebuffer extension.
unsigned int FrameBufferObject
unsigned int GetBackLeftBuffer()
Return the OpenGL name of the back left buffer.
virtual int SetRGBACharPixelData(int x, int y, int x2, int y2, unsigned char *data, int front, int blend=0)
int OffScreenUseFrameBuffer
Flag telling if a framebuffer-based offscreen is currently in use.
unsigned int FrontRightBuffer
unsigned int GetBackRightBuffer()
Return the OpenGL name of the back right buffer.
virtual int GetZbufferData(int x1, int y1, int x2, int y2, vtkFloatArray *z)
virtual int SetRGBACharPixelData(int x, int y, int x2, int y2, vtkUnsignedCharArray *data, int front, int blend=0)
virtual unsigned char * GetRGBACharPixelData(int x, int y, int x2, int y2, int front)
vtkTypeUInt64 vtkMTimeType
virtual float * GetZbufferData(int x1, int y1, int x2, int y2)
Set/Get the zbuffer data from an image.
vtkTimeStamp ContextCreationTime
int GetRGBAPixelData(int x, int y, int x2, int y2, int front, float *data)
Interface class for querying and using OpenGL extensions.
allocate/free texture units.
virtual void WaitForCompletion()
Block the thread until the actual rendering is finished().
virtual int GetPixelData(int x, int y, int x2, int y2, int front, vtkUnsignedCharArray *data)
bool HardwareOffScreenBuffersBind
virtual unsigned char * GetPixelData(int x, int y, int x2, int y2, int front)
Set/Get the pixel data of an image, transmitted as RGBRGB...
int GetPixelData(int x, int y, int x2, int y2, int front, unsigned char *data)
virtual void OpenGLInitState()
int OwnContext
Flag telling if the context has been created here or was inherited.
virtual void OpenGLInitContext()
a simple class to control print indentation
vtkOpenGLExtensionManager * GetExtensionManager()
Returns the extension manager.
virtual void StereoUpdate()
Update system if needed due to stereo rendering.
unsigned int GetFrontBuffer()
Return the OpenGL name of the front left buffer.
unsigned int FrontLeftBuffer
list of point or cell ids
virtual int SetZbufferData(int x1, int y1, int x2, int y2, vtkFloatArray *buffer)
unsigned int GetBackBuffer()
Return the OpenGL name of the back left buffer.
vtkTextureUnitManager * GetTextureUnitManager()
Returns its texture unit manager object.
void RegisterTextureResource(GLuint id)
Register a texture name with this render window.
unsigned int GetFrontLeftBuffer()
Return the OpenGL name of the front left buffer.
int CreateHardwareOffScreenBuffers(int width, int height, bool bind=false)
unsigned int GetFrontRightBuffer()
Return the OpenGL name of the front right buffer.
virtual float * GetRGBAPixelData(int x, int y, int x2, int y2, int front)
Set/Get the pixel data of an image, transmitted as RGBARGBA...
virtual bool GetUseOffScreenBuffers()
unsigned int BackRightBuffer
vtkOpenGLHardwareSupport * GetHardwareSupport()
Returns an Hardware Support object.
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
static int GetGlobalMaximumNumberOfMultiSamples()
int GetColorBufferSizes(int *rgba)
Get the size of the color buffer.
virtual void SetSize(int, int)
unsigned int BackLeftBuffer
virtual void ReleaseRGBAPixelData(float *data)
int GetDepthBufferSize()
Get the size of the depth buffer.
create a window for renderers to draw into
Wrapper around std::string to keep symbols short.
unsigned int DepthRenderBufferObject
virtual int GetRGBAPixelData(int x, int y, int x2, int y2, int front, vtkFloatArray *data)
void UnbindHardwareOffScreenBuffers()
static void SetGlobalMaximumNumberOfMultiSamples(int val)
Set/Get the maximum number of multisamples.
virtual int SetRGBAPixelData(int x, int y, int x2, int y2, vtkFloatArray *data, int front, int blend=0)
virtual int GetRGBACharPixelData(int x, int y, int x2, int y2, int front, vtkUnsignedCharArray *data)
vtkIdList * TextureResourceIds
virtual void CreateAWindow()=0
Create a not-off-screen window.
int GetRGBACharPixelData(int x, int y, int x2, int y2, int front, unsigned char *data)
virtual void SetSize(int a[2])
Set the size of the window in screen coordinates in pixels.