27 #ifndef vtkGenericOpenGLRenderWindow_h
28 #define vtkGenericOpenGLRenderWindow_h
31 #include "vtkRenderingOpenGL2Module.h"
100 void HideCursor() override;
101 void ShowCursor() override;
103 void WindowRemap() override;
105 void SetNextWindowId(
void*) override;
106 void SetNextWindowInfo(const
char*) override;
107 void CreateAWindow() override;
108 void DestroyWindow() override;
117 void SetSupportsOpenGL(
int newValue);
118 void SetIsCurrent(
bool newValue);
128 void Render() override;
133 float GetMaximumHardwareLineWidth() override;
141 vtkGetMacro(ForceMaximumHardwareLineWidth,
float);
150 vtkSetMacro(ReadyForRendering,
bool);
151 vtkGetMacro(ReadyForRendering,
bool);
157 vtkSetVector2Macro(ScreenSize,
int);
162 void SetCurrentCursor(
int cShape) override;
171 VTK_LEGACY(
bool IsDrawable() override);
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;
186 int SetRGBACharPixelData(
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;
192 int SupportsOpenGLStatus;
194 float ForceMaximumHardwareLineWidth;
195 bool ReadyForRendering;
platform independent render window
void Finalize() override
Cleans up graphics resources allocated in the context for this VTK scene.
void * GetGenericDisplayId() override
void SetWindowId(void *) override
does nothing
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int * GetScreenSize() override
Get the current size of the screen in pixels.
~vtkGenericOpenGLRenderWindow() override
vtkTypeBool IsDirect() override
Returns if the context is direct.
void SetParentInfo(const char *) override
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
void Frame() override
flush the pending drawing operations Class user may to watch for WindowFrameEvent and act on it
void SetParentId(void *) override
void SetWindowInfo(const char *) override
void SetBackRightBuffer(unsigned int)
vtkGenericOpenGLRenderWindow()
void MakeCurrent() override
Makes the context current.
int SupportsOpenGL() override
Returns if OpenGL is supported.
void PopState()
no-op (for API compat with OpenGL1).
void SetFrontRightBuffer(unsigned int)
void * GetGenericDrawable() override
void * GetGenericContext() override
void * GetGenericParentId() override
void SetFrontLeftBuffer(unsigned int)
set the drawing buffers to use
void SetDefaultFrameBufferId(unsigned int)
void SetBackLeftBuffer(unsigned int)
void PushState()
no-op (for API compat with OpenGL1).
bool IsCurrent() override
Returns if the context is current.
void * GetGenericWindowId() override
static vtkGenericOpenGLRenderWindow * New()
a simple class to control print indentation
dynamic, self-adjusting array of unsigned char
#define VTK_SIZEHINT(...)