VTK
|
OpenGL rendering window. More...
#include <vtkEGLRenderWindow.h>
Public Types | |
typedef vtkOpenGLRenderWindow | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkEGLRenderWindow * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Start (void) |
virtual void | Frame (void) |
virtual void | WindowInitialize (void) |
virtual void | Initialize (void) |
virtual void | Finalize (void) |
virtual void | SetFullScreen (int) |
virtual void | WindowRemap (void) |
virtual void | PrefFullScreen (void) |
virtual void | SetStereoCapableWindow (int capable) |
void | MakeCurrent () |
virtual bool | IsCurrent () |
int | SupportsOpenGL () |
int | IsDirect () |
virtual int * | GetScreenSize () |
virtual int * | GetPosition () |
void | SetWindowName (const char *) |
void | Render () |
void | SetOffScreenRendering (int i) |
virtual int | GetEventPending () |
int | GetOwnWindow () |
virtual void | SetSize (int, int) |
virtual void | SetSize (int a[2]) |
virtual void | SetDisplayId (void *) |
virtual void | SetWindowId (void *window) |
virtual void | SetNextWindowId (void *) |
virtual void | SetParentId (void *) |
virtual void * | GetGenericDisplayId () |
virtual void * | GetGenericWindowId () |
virtual void * | GetGenericParentId () |
virtual void * | GetGenericContext () |
virtual void * | GetGenericDrawable () |
virtual void | SetWindowInfo (char *) |
virtual void | SetNextWindowInfo (char *) |
virtual void | SetParentInfo (char *) |
void | SetPosition (int, int) |
void | SetPosition (int a[2]) |
void | HideCursor () |
void | ShowCursor () |
Static Public Member Functions | |
static vtkEGLRenderWindow * | New () |
static int | IsTypeOf (const char *type) |
static vtkEGLRenderWindow * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkEGLRenderWindow () | |
~vtkEGLRenderWindow () | |
void | CreateAWindow () |
void | DestroyWindow () |
void | CreateOffScreenWindow (int width, int height) |
void | DestroyOffScreenWindow () |
void | ResizeOffScreenWindow (int width, int height) |
Protected Attributes | |
ANativeWindow * | Window |
EGLDisplay | Display |
EGLSurface | Surface |
EGLContext | Context |
int | ScreenSize [2] |
int | OwnWindow |
OpenGL rendering window.
vtkEGLRenderWindow is a concrete implementation of the abstract class vtkRenderWindow. vtkOpenGLRenderer interfaces to the OpenGL graphics library. Application programmers should normally use vtkRenderWindow instead of the OpenGL specific version.
Definition at line 34 of file vtkEGLRenderWindow.h.
Reimplemented from vtkOpenGLRenderWindow.
Definition at line 38 of file vtkEGLRenderWindow.h.
vtkEGLRenderWindow::vtkEGLRenderWindow | ( | ) | [protected] |
vtkEGLRenderWindow::~vtkEGLRenderWindow | ( | ) | [protected] |
static vtkEGLRenderWindow* vtkEGLRenderWindow::New | ( | ) | [static] |
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on, positioned at (0,0), double buffering turned on.
Reimplemented from vtkRenderWindow.
static int vtkEGLRenderWindow::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkOpenGLRenderWindow.
virtual int vtkEGLRenderWindow::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkOpenGLRenderWindow.
static vtkEGLRenderWindow* vtkEGLRenderWindow::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkOpenGLRenderWindow.
virtual vtkObjectBase* vtkEGLRenderWindow::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkOpenGLRenderWindow.
Reimplemented from vtkOpenGLRenderWindow.
void vtkEGLRenderWindow::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkOpenGLRenderWindow.
virtual void vtkEGLRenderWindow::Start | ( | void | ) | [virtual] |
Begin the rendering process.
Implements vtkRenderWindow.
virtual void vtkEGLRenderWindow::Frame | ( | void | ) | [virtual] |
End the rendering process and display the image.
Implements vtkRenderWindow.
virtual void vtkEGLRenderWindow::WindowInitialize | ( | void | ) | [virtual] |
Initialize the window for rendering.
virtual void vtkEGLRenderWindow::Initialize | ( | void | ) | [virtual] |
Initialize the rendering window. This will setup all system-specific resources. This method and Finalize() must be symmetric and it should be possible to call them multiple times, even changing WindowId in-between. This is what WindowRemap does.
virtual void vtkEGLRenderWindow::Finalize | ( | void | ) | [virtual] |
"Deinitialize" the rendering window. This will shutdown all system-specific resources. After having called this, it should be possible to destroy a window that was used for a SetWindowId() call without any ill effects.
Implements vtkRenderWindow.
virtual void vtkEGLRenderWindow::SetFullScreen | ( | int | ) | [virtual] |
Change the window to fill the entire screen.
Implements vtkRenderWindow.
virtual void vtkEGLRenderWindow::WindowRemap | ( | void | ) | [virtual] |
Resize the window.
Implements vtkRenderWindow.
virtual void vtkEGLRenderWindow::PrefFullScreen | ( | void | ) | [virtual] |
Set the preferred window size to full screen.
virtual void vtkEGLRenderWindow::SetSize | ( | int | , |
int | |||
) | [virtual] |
Specify the size of the rendering window in pixels.
Reimplemented from vtkWindow.
virtual void vtkEGLRenderWindow::SetSize | ( | int | a[2] | ) | [inline, virtual] |
Specify the size of the rendering window in pixels.
Reimplemented from vtkWindow.
Definition at line 74 of file vtkEGLRenderWindow.h.
virtual void vtkEGLRenderWindow::SetStereoCapableWindow | ( | int | capable | ) | [virtual] |
Prescribe that the window be created in a stereo-capable mode. This method must be called before the window is realized. This method overrides the superclass method since this class can actually check whether the window has been realized yet.
Reimplemented from vtkRenderWindow.
void vtkEGLRenderWindow::MakeCurrent | ( | ) | [virtual] |
Make this window the current OpenGL context.
Implements vtkRenderWindow.
virtual bool vtkEGLRenderWindow::IsCurrent | ( | ) | [virtual] |
Tells if this window is the current OpenGL context for the calling thread.
Implements vtkRenderWindow.
int vtkEGLRenderWindow::SupportsOpenGL | ( | ) | [virtual] |
Does this render window support OpenGL? 0-false, 1-true
Reimplemented from vtkRenderWindow.
int vtkEGLRenderWindow::IsDirect | ( | ) | [inline, virtual] |
Is this render window using hardware acceleration? 0-false, 1-true
Reimplemented from vtkRenderWindow.
Definition at line 94 of file vtkEGLRenderWindow.h.
virtual int* vtkEGLRenderWindow::GetScreenSize | ( | ) | [virtual] |
Get the current size of the screen in pixels.
Implements vtkWindow.
virtual int* vtkEGLRenderWindow::GetPosition | ( | ) | [virtual] |
Get the position in screen coordinates (pixels) of the window.
Reimplemented from vtkWindow.
virtual void vtkEGLRenderWindow::SetDisplayId | ( | void * | ) | [inline, virtual] |
Dummy stubs for vtkWindow API.
Implements vtkRenderWindow.
Definition at line 104 of file vtkEGLRenderWindow.h.
virtual void vtkEGLRenderWindow::SetWindowId | ( | void * | window | ) | [inline, virtual] |
Dummy stubs for vtkWindow API.
Implements vtkRenderWindow.
Definition at line 105 of file vtkEGLRenderWindow.h.
virtual void vtkEGLRenderWindow::SetNextWindowId | ( | void * | ) | [inline, virtual] |
Dummy stubs for vtkWindow API.
Implements vtkRenderWindow.
Definition at line 106 of file vtkEGLRenderWindow.h.
virtual void vtkEGLRenderWindow::SetParentId | ( | void * | ) | [inline, virtual] |
Dummy stubs for vtkWindow API.
Implements vtkRenderWindow.
Definition at line 107 of file vtkEGLRenderWindow.h.
virtual void* vtkEGLRenderWindow::GetGenericDisplayId | ( | ) | [inline, virtual] |
Dummy stubs for vtkWindow API.
Implements vtkRenderWindow.
Definition at line 108 of file vtkEGLRenderWindow.h.
virtual void* vtkEGLRenderWindow::GetGenericWindowId | ( | ) | [inline, virtual] |
Dummy stubs for vtkWindow API.
Implements vtkRenderWindow.
Definition at line 109 of file vtkEGLRenderWindow.h.
virtual void* vtkEGLRenderWindow::GetGenericParentId | ( | ) | [inline, virtual] |
Dummy stubs for vtkWindow API.
Implements vtkRenderWindow.
Definition at line 110 of file vtkEGLRenderWindow.h.
virtual void* vtkEGLRenderWindow::GetGenericContext | ( | ) | [inline, virtual] |
Dummy stubs for vtkWindow API.
Implements vtkRenderWindow.
Definition at line 111 of file vtkEGLRenderWindow.h.
virtual void* vtkEGLRenderWindow::GetGenericDrawable | ( | ) | [inline, virtual] |
Dummy stubs for vtkWindow API.
Implements vtkRenderWindow.
Definition at line 112 of file vtkEGLRenderWindow.h.
virtual void vtkEGLRenderWindow::SetWindowInfo | ( | char * | ) | [virtual] |
Dummy stubs for vtkWindow API.
Implements vtkRenderWindow.
virtual void vtkEGLRenderWindow::SetNextWindowInfo | ( | char * | ) | [inline, virtual] |
Dummy stubs for vtkWindow API.
Implements vtkRenderWindow.
Definition at line 114 of file vtkEGLRenderWindow.h.
virtual void vtkEGLRenderWindow::SetParentInfo | ( | char * | ) | [inline, virtual] |
Dummy stubs for vtkWindow API.
Implements vtkRenderWindow.
Definition at line 115 of file vtkEGLRenderWindow.h.
void vtkEGLRenderWindow::SetWindowName | ( | const char * | ) | [virtual] |
Get name of rendering window
Reimplemented from vtkWindow.
void vtkEGLRenderWindow::SetPosition | ( | int | , |
int | |||
) | [virtual] |
Move the window to a new position on the display.
Reimplemented from vtkWindow.
void vtkEGLRenderWindow::SetPosition | ( | int | a[2] | ) | [inline, virtual] |
Move the window to a new position on the display.
Reimplemented from vtkWindow.
Definition at line 123 of file vtkEGLRenderWindow.h.
void vtkEGLRenderWindow::HideCursor | ( | ) | [virtual] |
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to display a 3D cursor instead.
Implements vtkRenderWindow.
void vtkEGLRenderWindow::ShowCursor | ( | ) | [virtual] |
Hide or Show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to display a 3D cursor instead.
Implements vtkRenderWindow.
void vtkEGLRenderWindow::Render | ( | ) | [virtual] |
This computes the size of the render window before calling the supper classes render
Reimplemented from vtkRenderWindow.
void vtkEGLRenderWindow::SetOffScreenRendering | ( | int | i | ) | [virtual] |
Render without displaying the window.
Reimplemented from vtkWindow.
virtual int vtkEGLRenderWindow::GetEventPending | ( | ) | [inline, virtual] |
Check to see if a mouse button has been pressed. All other events are ignored by this method. Ideally, you want to abort the render on any event which causes the DesiredUpdateRate to switch from a high-quality rate to a more interactive rate.
Implements vtkRenderWindow.
Definition at line 144 of file vtkEGLRenderWindow.h.
int vtkEGLRenderWindow::GetOwnWindow | ( | ) | [inline] |
Definition at line 146 of file vtkEGLRenderWindow.h.
void vtkEGLRenderWindow::CreateAWindow | ( | ) | [protected, virtual] |
Create a not-off-screen window.
Implements vtkOpenGLRenderWindow.
void vtkEGLRenderWindow::DestroyWindow | ( | ) | [protected, virtual] |
Destroy a not-off-screen window.
Implements vtkOpenGLRenderWindow.
void vtkEGLRenderWindow::CreateOffScreenWindow | ( | int | width, |
int | height | ||
) | [protected] |
void vtkEGLRenderWindow::DestroyOffScreenWindow | ( | ) | [protected] |
void vtkEGLRenderWindow::ResizeOffScreenWindow | ( | int | width, |
int | height | ||
) | [protected] |
ANativeWindow* vtkEGLRenderWindow::Window [protected] |
Definition at line 152 of file vtkEGLRenderWindow.h.
EGLDisplay vtkEGLRenderWindow::Display [protected] |
Definition at line 153 of file vtkEGLRenderWindow.h.
EGLSurface vtkEGLRenderWindow::Surface [protected] |
Definition at line 154 of file vtkEGLRenderWindow.h.
EGLContext vtkEGLRenderWindow::Context [protected] |
Definition at line 155 of file vtkEGLRenderWindow.h.
int vtkEGLRenderWindow::ScreenSize[2] [protected] |
Definition at line 156 of file vtkEGLRenderWindow.h.
int vtkEGLRenderWindow::OwnWindow [protected] |
Definition at line 157 of file vtkEGLRenderWindow.h.