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