36 #ifndef vtkGenericOpenGLRenderWindow_h
37 #define vtkGenericOpenGLRenderWindow_h
40 #include "vtkRenderingOpenGL2Module.h"
59 void Frame()
override;
82 void SetFrontLeftBuffer(
unsigned int);
83 void SetFrontRightBuffer(
unsigned int);
84 void SetBackLeftBuffer(
unsigned int);
85 void SetBackRightBuffer(
unsigned int);
108 void HideCursor() override;
109 void ShowCursor() override;
111 void WindowRemap() override;
113 void SetNextWindowId(
void*) override;
114 void SetNextWindowInfo(const
char*) override;
115 void CreateAWindow() override;
116 void DestroyWindow() override;
125 void SetSupportsOpenGL(
int newValue);
126 void SetIsCurrent(
bool newValue);
136 void Render() override;
141 float GetMaximumHardwareLineWidth() override;
148 vtkSetClampMacro(ForceMaximumHardwareLineWidth,
float, 0,
VTK_FLOAT_MAX);
149 vtkGetMacro(ForceMaximumHardwareLineWidth,
float);
158 vtkSetMacro(ReadyForRendering,
bool);
159 vtkGetMacro(ReadyForRendering,
bool);
165 vtkSetVector2Macro(ScreenSize,
int);
170 void SetCurrentCursor(
int cShape) override;
180 "Deprecated in 9.1 because no one knows what it's for and nothing uses it")
181 bool IsDrawable() override;
186 void OpenGLInit() override;
195 const
vtkRecti& rect,
int front,
int glFormat,
int glType,
void*
data,
int right) override;
198 int x1,
int y1,
int x2,
int y2,
unsigned char* data,
int front,
int right) override;
201 int SetRGBACharPixelData(
202 int x1,
int y1,
int x2,
int y2,
unsigned char* data,
int front,
int blend,
int right) override;
204 int blend = 0,
int right = 0) override;
207 int SupportsOpenGLStatus;
209 float ForceMaximumHardwareLineWidth;
210 bool ReadyForRendering;
#define VTK_DEPRECATED_IN_9_1_0(reason)
void * GetGenericDisplayId() override
Dummy stubs for vtkWindow API.
void * GetGenericContext() override
Dummy stubs for vtkWindow API.
void SetDisplayId(void *) override
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 PushState()
no-op (for API compat with OpenGL1).
void SetWindowInfo(const char *) override
Dummy stubs for vtkWindow API.
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.
void SetWindowId(void *) override
Dummy stubs for vtkWindow API.
platform independent render window
a simple class to control print indentation
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.
virtual void MakeCurrent()
Make the window current.
#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...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void PopState()
no-op (for API compat with OpenGL1).
void SetParentInfo(const char *) override
Dummy stubs for vtkWindow API.
void * GetGenericDrawable() override
Dummy stubs for vtkWindow API.
virtual vtkTypeBool IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.