 |
VTK
9.0.1
|
Go to the documentation of this file.
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);
88 void SetDefaultFrameBufferId(
unsigned int);
89 void SetOwnContext(
int);
109 void HideCursor() override;
110 void ShowCursor() override;
112 void WindowRemap() override;
114 void SetNextWindowId(
void*) override;
115 void SetNextWindowInfo(const
char*) override;
116 void CreateAWindow() override;
117 void DestroyWindow() override;
126 void SetSupportsOpenGL(
int newValue);
127 void SetIsCurrent(
bool newValue);
137 void Render() override;
142 float GetMaximumHardwareLineWidth() override;
149 vtkSetClampMacro(ForceMaximumHardwareLineWidth,
float, 0,
VTK_FLOAT_MAX);
150 vtkGetMacro(ForceMaximumHardwareLineWidth,
float);
159 vtkSetMacro(ReadyForRendering,
bool);
160 vtkGetMacro(ReadyForRendering,
bool);
166 vtkSetVector2Macro(ScreenSize,
int);
171 void SetCurrentCursor(
int cShape) override;
180 VTK_LEGACY(
bool IsDrawable() override);
189 const
vtkRecti& rect,
int front,
int glFormat,
int glType,
void*
data,
int right) override;
192 int x1,
int y1,
int x2,
int y2,
unsigned char*
data,
int front,
int right) override;
195 int SetRGBACharPixelData(
196 int x1,
int y1,
int x2,
int y2,
unsigned char*
data,
int front,
int blend,
int right) override;
198 int blend = 0,
int right = 0) override;
201 int SupportsOpenGLStatus;
203 float ForceMaximumHardwareLineWidth;
204 bool ReadyForRendering;
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int SupportsOpenGL() override
Does this render window support OpenGL? 0-false, 1-true.
void SetWindowInfo(const char *) override
dynamic, self-adjusting array of unsigned char
platform independent render window
void SetWindowId(void *) override
void * GetGenericParentId() override
void * GetGenericDrawable() override
void * GetGenericDisplayId() override
void SetDisplayId(void *) override
Dummy stubs for vtkWindow API.
#define VTK_SIZEHINT(...)
virtual void Finalize()
Finalize the rendering process.
void MakeCurrent() override
Attempt to make this window the current graphics context for the calling thread.
virtual vtkTypeBool IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
a simple class to control print indentation
void PushState()
no-op (for API compat with OpenGL1).
void SetParentInfo(const char *) override
virtual int * GetScreenSize()
Get the current size of the screen in pixels.
void SetParentId(void *) override
void Frame() override
A termination method performed at the end of the rendering process to do things like swapping buffers...
void PopState()
no-op (for API compat with OpenGL1).
void * GetGenericContext() override
virtual bool IsCurrent()
Tells if this window is the current graphics context for the calling thread.
void * GetGenericWindowId() override
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on,...