VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkEGLRenderWindow Class Reference

OpenGL rendering window. More...

#include <vtkEGLRenderWindow.h>

Inheritance diagram for vtkEGLRenderWindow:
Inheritance graph
[legend]
Collaboration diagram for vtkEGLRenderWindow:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkOpenGLRenderWindow Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkEGLRenderWindowNewInstance () 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 intGetScreenSize ()
virtual intGetPosition ()
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 vtkEGLRenderWindowNew ()
static int IsTypeOf (const char *type)
static vtkEGLRenderWindowSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () 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

Detailed Description

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.


Member Typedef Documentation

Reimplemented from vtkOpenGLRenderWindow.

Definition at line 38 of file vtkEGLRenderWindow.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

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.

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.

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.

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::ResizeOffScreenWindow ( int  width,
int  height 
) [protected]

Member Data Documentation

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.

Definition at line 156 of file vtkEGLRenderWindow.h.

Definition at line 157 of file vtkEGLRenderWindow.h.


The documentation for this class was generated from the following file: