33 #ifndef vtkGenericOpenGLRenderWindow_h 34 #define vtkGenericOpenGLRenderWindow_h 36 #include "vtkRenderingOpenGL2Module.h" 57 void Frame()
override;
80 void SetFrontBuffer(
unsigned int);
81 void SetFrontLeftBuffer(
unsigned int);
82 void SetFrontRightBuffer(
unsigned int);
83 void SetBackBuffer(
unsigned int);
84 void SetBackLeftBuffer(
unsigned int);
85 void SetBackRightBuffer(
unsigned int);
106 void Start()
override;
123 void SetIsDirect(
int newValue);
124 void SetSupportsOpenGL(
int newValue);
125 void SetIsCurrent(
bool newValue);
147 vtkSetClampMacro(ForceMaximumHardwareLineWidth,
float, 0,
VTK_FLOAT_MAX);
148 vtkGetMacro(ForceMaximumHardwareLineWidth,
float);
157 vtkSetMacro(ReadyForRendering,
bool);
158 vtkGetMacro(ReadyForRendering,
bool);
163 vtkSetVector2Macro(ScreenSize,
int);
virtual void Finalize()=0
Finalize the rendering process.
virtual void WindowRemap()=0
Remap the rendering window.
virtual void HideCursor()=0
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.
static vtkRenderWindow * New()
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on...
virtual int * GetScreenSize()=0
Get the current size of the screen in pixels.
void PushState()
no-op (for API compat with OpenGL1).
void * GetGenericContext() override=0
Dummy stubs for vtkWindow API.
virtual void SetCurrentCursor(int)
Change the shape of the cursor.
void SetWindowInfo(const char *) override=0
Dummy stubs for vtkWindow API.
void * GetGenericParentId() override=0
Dummy stubs for vtkWindow API.
virtual int GetEventPending()=0
Check to see if a mouse button has been pressed.
bool CurrentStatus
Set this to true to indicate that the context is now ready.
void * GetGenericDisplayId() override=0
Dummy stubs for vtkWindow API.
virtual int IsDirect()
Is this render window using hardware acceleration? 0-false, 1-true.
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 bool IsCurrent()=0
Tells if this window is the current graphics context for the calling thread.
void SetWindowId(void *) override=0
Dummy stubs for vtkWindow API.
platform independent render window
void SetDisplayId(void *) override=0
Dummy stubs for vtkWindow API.
a simple class to control print indentation
virtual void DestroyWindow()=0
Destroy a not-off-screen window.
int SupportsOpenGL() override
Does this render window support OpenGL? 0-false, 1-true.
void SetParentInfo(const char *) override=0
Dummy stubs for vtkWindow API.
virtual void SetNextWindowId(void *)=0
Dummy stubs for vtkWindow API.
#define VTK_SIZEHINT(...)
virtual void Frame()=0
A termination method performed at the end of the rendering process to do things like swapping buffers...
void SetParentId(void *) override=0
Dummy stubs for vtkWindow API.
virtual void SetFullScreen(vtkTypeBool)=0
Turn on/off rendering full screen window size.
void * GetGenericDrawable() override=0
Dummy stubs for vtkWindow API.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetNextWindowInfo(const char *)=0
Dummy stubs for vtkWindow API.
virtual float GetMaximumHardwareLineWidth()
Return the largest line width supported by the hardware.
virtual void Start()=0
Initialize the rendering process.
void PopState()
no-op (for API compat with OpenGL1).
void * GetGenericWindowId() override=0
Dummy stubs for vtkWindow API.
virtual void CreateAWindow()=0
Create a not-off-screen window.
virtual void SetIsPicking(vtkTypeBool)
void MakeCurrent() override=0
Attempt to make this window the current graphics context for the calling thread.
virtual void ShowCursor()=0
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to di...
bool ReadyForRendering
Set this to true to indicate that the context is now ready.
int DirectStatus
Set this to true to indicate that the context is now ready.