Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

vtkMesaRenderWindow Class Reference

Mesa rendering window. More...

#include <vtkMesaRenderWindow.h>

Inheritance diagram for vtkMesaRenderWindow:

Inheritance graph
[legend]
Collaboration diagram for vtkMesaRenderWindow:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Start (void)
virtual void Frame (void)
virtual void WindowConfigure (void)
virtual void WindowInitialize (void)
virtual void Initialize (void)
virtual void SetFullScreen (int)
virtual void WindowRemap (void)
virtual void PrefFullScreen (void)
virtual void SetSize (int, int)
virtual void SetSize (int a[2])
virtual Colormap GetDesiredColormap ()
virtual Visual * GetDesiredVisual ()
virtual XVisualInfo * GetDesiredVisualInfo ()
virtual int GetDesiredDepth ()
virtual void StereoUpdate ()
virtual void SetStereoCapableWindow (int capable)
virtual unsigned char * GetPixelData (int x, int y, int x2, int y2, int front)
virtual void SetPixelData (int x, int y, int x2, int y2, unsigned char *, int front)
virtual float * GetRGBAPixelData (int x, int y, int x2, int y2, int front)
virtual void SetRGBAPixelData (int x, int y, int x2, int y2, float *, int front, int blend=0)
virtual unsigned char * GetRGBACharPixelData (int x, int y, int x2, int y2, int front)
virtual void SetRGBACharPixelData (int x, int y, int x2, int y2, unsigned char *, int front, int blend=0)
virtual float * GetZbufferData (int x1, int y1, int x2, int y2)
virtual void SetZbufferData (int x1, int y1, int x2, int y2, float *buffer)
void MakeCurrent ()
void RegisterTextureResource (GLuint id)
virtual void SetOffScreenRendering (int i)
virtual void * GetGenericWindowId ()
virtual void * GetGenericContext ()
int GetDepthBufferSize ()

Static Public Methods

vtkMesaRenderWindow * New ()
int IsTypeOf (const char *type)
vtkMesaRenderWindow * SafeDownCast (vtkObject *o)

Protected Methods

 vtkMesaRenderWindow ()
 ~vtkMesaRenderWindow ()
 vtkMesaRenderWindow (const vtkMesaRenderWindow &)
void operator= (const vtkMesaRenderWindow &)

Protected Attributes

void * OffScreenContextId
GLXContext ContextId
void * OffScreenWindow
int ScreenDoubleBuffer
int ScreenMapped
vtkIdList * TextureResourceIds

Detailed Description

Mesa rendering window.

Date:
2000/12/10 20:08:44
Revision:
1.14

vtkMesaRenderWindow is a concrete implementation of the abstract class vtkRenderWindow. vtkMesaRenderer interfaces to the Mesa graphics library. Application programmers should normally use vtkRenderWindow instead of the Mesa specific version.


Member Function Documentation

virtual void vtkMesaRenderWindow::Frame (  void    )  [virtual]
 

End the rendering process and display the image.

Reimplemented from vtkRenderWindow.

virtual const char* vtkMesaRenderWindow::GetClassName (    )  [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkRenderWindow.

int vtkMesaRenderWindow::GetDepthBufferSize (    )  [virtual]
 

Get the size of the depth buffer.

Reimplemented from vtkRenderWindow.

virtual Colormap vtkMesaRenderWindow::GetDesiredColormap (    )  [virtual]
 

Get the X properties of an ideal rendering window.

Implements vtkXRenderWindow.

virtual int vtkMesaRenderWindow::GetDesiredDepth (    )  [virtual]
 

Get the properties available at runtime that would result in the best Xwindow for 3D rendering.

Implements vtkXRenderWindow.

virtual void* vtkMesaRenderWindow::GetGenericWindowId (    )  [virtual]
 

Xwindow get set functions

Reimplemented from vtkXRenderWindow.

virtual unsigned char* vtkMesaRenderWindow::GetPixelData (  int    x,
int    y,
int    x2,
int    y2,
int    front
)  [virtual]
 

Set/Get the pixel data of an image, transmitted as RGBRGB...

Reimplemented from vtkWindow.

virtual unsigned char* vtkMesaRenderWindow::GetRGBACharPixelData (  int    x,
int    y,
int    x2,
int    y2,
int    front
)  [virtual]
 

Set/Get the pixel data of an image, transmitted as RGBARGBA...

Reimplemented from vtkRenderWindow.

virtual float* vtkMesaRenderWindow::GetRGBAPixelData (  int    x,
int    y,
int    x2,
int    y2,
int    front
)  [virtual]
 

Set/Get the pixel data of an image, transmitted as RGBARGBA...

Reimplemented from vtkRenderWindow.

virtual float* vtkMesaRenderWindow::GetZbufferData (  int    x1,
int    y1,
int    x2,
int    y2
)  [virtual]
 

Set/Get the zbuffer data from an image

Reimplemented from vtkRenderWindow.

virtual void vtkMesaRenderWindow::Initialize (  void    )  [virtual]
 

Initialize the rendering window.

virtual int vtkMesaRenderWindow::IsA (  const char *    type )  [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 vtkRenderWindow.

int vtkMesaRenderWindow::IsTypeOf (  const char *    type )  [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 vtkRenderWindow.

void vtkMesaRenderWindow::MakeCurrent (    )  [virtual]
 

Make this window the current Mesa context.

Reimplemented from vtkRenderWindow.

vtkMesaRenderWindow* vtkMesaRenderWindow::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 vtkXRenderWindow.

virtual void vtkMesaRenderWindow::PrefFullScreen (  void    )  [virtual]
 

Set the preferred window size to full screen.

void vtkMesaRenderWindow::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 vtkXRenderWindow.

void vtkMesaRenderWindow::RegisterTextureResource (  GLuint    id ) 
 

Register a texture name with this render window

vtkMesaRenderWindow* vtkMesaRenderWindow::SafeDownCast (  vtkObject *    o )  [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkRenderWindow.

virtual void vtkMesaRenderWindow::SetFullScreen (  int    )  [virtual]
 

Change the window to fill the entire screen.

Reimplemented from vtkRenderWindow.

virtual void vtkMesaRenderWindow::SetOffScreenRendering (  int    i )  [virtual]
 

Override the default implementation so that we can actively switch between on and off screen rendering.

Reimplemented from vtkWindow.

virtual void vtkMesaRenderWindow::SetPixelData (  int    x,
int    y,
int    x2,
int    y2,
unsigned char *   ,
int    front
)  [virtual]
 

Set/Get the pixel data of an image, transmitted as RGBRGBRGB. The front argument indicates if the front buffer should be used or the back buffer. It is the caller's responsibility to delete the resulting array. It is very important to realize that the memory in this array is organized from the bottom of the window to the top. The origin of the screen is in the lower left corner. The y axis increases as you go up the screen. So the storage of pixels is from left to right and from bottom to top.

Reimplemented from vtkRenderWindow.

virtual void vtkMesaRenderWindow::SetSize (  int   ,
int   
)  [virtual]
 

Specify the size of the rendering window.

Reimplemented from vtkWindow.

virtual void vtkMesaRenderWindow::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.

virtual void vtkMesaRenderWindow::Start (  void    )  [virtual]
 

Begin the rendering process.

Reimplemented from vtkRenderWindow.

virtual void vtkMesaRenderWindow::StereoUpdate (    )  [virtual]
 

Update system if needed due to stereo rendering.

Reimplemented from vtkRenderWindow.

virtual void vtkMesaRenderWindow::WindowConfigure (  void    )  [virtual]
 

Specify various window parameters.

virtual void vtkMesaRenderWindow::WindowInitialize (  void    )  [virtual]
 

Initialize the window for rendering.

virtual void vtkMesaRenderWindow::WindowRemap (  void    )  [virtual]
 

Resize the window.

Reimplemented from vtkRenderWindow.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:29:30 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002