27 #ifndef vtkGenericOpenGLRenderWindow_h 28 #define vtkGenericOpenGLRenderWindow_h 31 #include "vtkRenderingOpenGL2Module.h" 50 void Frame()
override;
73 void SetFrontLeftBuffer(
unsigned int);
74 void SetFrontRightBuffer(
unsigned int);
75 void SetBackLeftBuffer(
unsigned int);
76 void SetBackRightBuffer(
unsigned int);
79 void SetDefaultFrameBufferId(
unsigned int);
80 void SetOwnContext(
int);
117 void SetSupportsOpenGL(
int newValue);
118 void SetIsCurrent(
bool newValue);
140 vtkSetClampMacro(ForceMaximumHardwareLineWidth,
float, 0,
VTK_FLOAT_MAX);
141 vtkGetMacro(ForceMaximumHardwareLineWidth,
float);
150 vtkSetMacro(ReadyForRendering,
bool);
151 vtkGetMacro(ReadyForRendering,
bool);
157 vtkSetVector2Macro(ScreenSize,
int);
180 const vtkRecti& rect,
int front,
int glFormat,
int glType,
void*
data,
int right)
override;
183 int x1,
int y1,
int x2,
int y2,
unsigned char* data,
int front,
int right)
override;
187 int x1,
int y1,
int x2,
int y2,
unsigned char* data,
int front,
int blend,
int right)
override;
189 int blend = 0,
int right = 0)
override;
virtual void SetFullScreen(vtkTypeBool)
Turn on/off rendering full screen window size.
void * GetGenericDisplayId() override
Dummy stubs for vtkWindow API.
void * GetGenericContext() override
Dummy stubs for vtkWindow API.
virtual void WindowRemap()
Remap the rendering window.
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
virtual void HideCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
void Render() override
Handle opengl specific code and calls superclass.
virtual void SetNextWindowId(void *)
Dummy stubs for vtkWindow API.
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on...
void * GetGenericWindowId() override
Dummy stubs for vtkWindow API.
void MakeCurrent() override
Attempt to make this window the current graphics context for the calling thread.
void PushState()
no-op (for API compat with OpenGL1).
void SetWindowInfo(const char *) override
Dummy stubs for vtkWindow API.
virtual void SetCurrentCursor(int)
Change the shape of the cursor.
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
virtual void Finalize()
Finalize the rendering process.
void SetParentId(void *) override
Dummy stubs for vtkWindow API.
bool CurrentStatus
Set this to true to indicate that the context is now ready.
float ForceMaximumHardwareLineWidth
Set this to true to indicate that the context is now ready.
int SupportsOpenGLStatus
Set this to true to indicate that the context is now ready.
virtual void SetNextWindowInfo(const char *)
Dummy stubs for vtkWindow API.
void SetWindowId(void *) override
Dummy stubs for vtkWindow API.
platform independent render window
a simple class to control print indentation
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
virtual void ShowCursor()
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
virtual int * GetScreenSize()
Get the current size of the screen in pixels.
int SupportsOpenGL() override
Does this render window support OpenGL? 0-false, 1-true.
void * GetGenericParentId() override
Dummy stubs for vtkWindow API.
#define VTK_SIZEHINT(...)
dynamic, self-adjusting array of unsigned char
void Frame() override
A termination method performed at the end of the rendering process to do things like swapping buffers...
virtual vtkTypeBool GetEventPending()
Check to see if a mouse button has been pressed.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual float GetMaximumHardwareLineWidth()
Return the largest line width supported by the hardware.
void PopState()
no-op (for API compat with OpenGL1).
int SetRGBACharPixelData(int x, int y, int x2, int y2, unsigned char *data, int front, int blend=0, int right=0) override
Set/Get the pixel data of an image, transmitted as RGBARGBA...
void SetParentInfo(const char *) override
Dummy stubs for vtkWindow API.
virtual void CreateAWindow()=0
Create a not-off-screen window.
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.
virtual int ReadPixels(const vtkRecti &rect, int front, int glFormat, int glType, void *data, int right=0)
virtual vtkTypeBool IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
bool ReadyForRendering
Set this to true to indicate that the context is now ready.
virtual bool IsDrawable()
Test if the window has a valid drawable.
int SetPixelData(int x, int y, int x2, int y2, unsigned char *data, int front, int right) override
Set/Get the pixel data of an image, transmitted as RGBRGB...
int DirectStatus
Set this to true to indicate that the context is now ready.