vtkMesaPainterDeviceAdapter Class Reference

#include <vtkMesaPainterDeviceAdapter.h>

Inheritance diagram for vtkMesaPainterDeviceAdapter:

Inheritance graph
[legend]
Collaboration diagram for vtkMesaPainterDeviceAdapter:

Collaboration graph
[legend]

List of all members.


Detailed Description

An adapter between a vtkPainter and a rendering device.

An adapter between vtkPainter and the Mesa rendering system. Only a handful of attributes with special meaning are supported. The Mesa attribute used for each attribute is given below.

 vtkDataSetAttributes::NORMALS          glNormal
 vtkDataSetAttributes:::SCALARS         glColor
 vtkDataSetAttributes::TCOORDS          glTexCoord
 vtkDataSetAttributes::NUM_ATTRIBUTES   glVertex
 

Definition at line 38 of file vtkMesaPainterDeviceAdapter.h.


Public Types

typedef vtkPainterDeviceAdapter Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual void BeginPrimitive (int mode)
virtual void EndPrimitive ()
virtual void DrawArrays (int mode, vtkIdType first, vtkIdType count)
virtual void DrawElements (int mode, vtkIdType count, int type, void *indices)
virtual int Compatible (vtkRenderer *renderer)
virtual void MakeLighting (int mode)
virtual int QueryLighting ()
virtual void MakeMultisampling (int mode)
virtual int QueryMultisampling ()
virtual void MakeBlending (int mode)
virtual int QueryBlending ()
virtual void SendAttribute (int index, int components, int type, const void *attribute, unsigned long offset=0)
virtual void SetAttributePointer (int index, int numcomponents, int type, int stride, const void *pointer)
virtual void EnableAttributeArray (int index)
virtual void DisableAttributeArray (int index)

Static Public Member Functions

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

Protected Member Functions

 vtkMesaPainterDeviceAdapter ()
 ~vtkMesaPainterDeviceAdapter ()

Member Typedef Documentation

Reimplemented from vtkPainterDeviceAdapter.

Definition at line 42 of file vtkMesaPainterDeviceAdapter.h.


Constructor & Destructor Documentation

vtkMesaPainterDeviceAdapter::vtkMesaPainterDeviceAdapter (  )  [protected]

vtkMesaPainterDeviceAdapter::~vtkMesaPainterDeviceAdapter (  )  [protected]


Member Function Documentation

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

Reimplemented from vtkPainterDeviceAdapter.

static int vtkMesaPainterDeviceAdapter::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 vtkPainterDeviceAdapter.

virtual int vtkMesaPainterDeviceAdapter::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 vtkPainterDeviceAdapter.

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

Reimplemented from vtkPainterDeviceAdapter.

static vtkMesaPainterDeviceAdapter* vtkMesaPainterDeviceAdapter::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPainterDeviceAdapter.

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

virtual void vtkMesaPainterDeviceAdapter::BeginPrimitive ( int  mode  )  [virtual]

Converts mode from VTK_* to GL_* and calls glBegin.

Implements vtkPainterDeviceAdapter.

virtual void vtkMesaPainterDeviceAdapter::EndPrimitive (  )  [virtual]

Calls glEnd.

Implements vtkPainterDeviceAdapter.

virtual void vtkMesaPainterDeviceAdapter::SendAttribute ( int  index,
int  components,
int  type,
const void *  attribute,
unsigned long  offset = 0 
) [virtual]

Calls one of glVertex*, glNormal*, glColor*, or glTexCoord*.

virtual void vtkMesaPainterDeviceAdapter::SetAttributePointer ( int  index,
int  numcomponents,
int  type,
int  stride,
const void *  pointer 
) [virtual]

Calls one of glVertexPointer, glNormalPointer, glColorPointer, or glTexCoordPointer.

Implements vtkPainterDeviceAdapter.

virtual void vtkMesaPainterDeviceAdapter::EnableAttributeArray ( int  index  )  [virtual]

Calls glEnableClientState or glDisableClientState.

Implements vtkPainterDeviceAdapter.

virtual void vtkMesaPainterDeviceAdapter::DisableAttributeArray ( int  index  )  [virtual]

Calls glEnableClientState or glDisableClientState.

Implements vtkPainterDeviceAdapter.

virtual void vtkMesaPainterDeviceAdapter::DrawArrays ( int  mode,
vtkIdType  first,
vtkIdType  count 
) [virtual]

Calls glDrawArrays. Mode is converted from VTK_* to GL_*.

Implements vtkPainterDeviceAdapter.

virtual void vtkMesaPainterDeviceAdapter::DrawElements ( int  mode,
vtkIdType  count,
int  type,
void *  indices 
) [virtual]

Calls glDrawElements. Mode and type are converted from VTK_* to GL_*.

Implements vtkPainterDeviceAdapter.

virtual int vtkMesaPainterDeviceAdapter::Compatible ( vtkRenderer renderer  )  [virtual]

Returns true if renderer is a vtkMesaRenderer.

Implements vtkPainterDeviceAdapter.

virtual void vtkMesaPainterDeviceAdapter::MakeLighting ( int  mode  )  [virtual]

Turns lighting on and off.

Implements vtkPainterDeviceAdapter.

virtual int vtkMesaPainterDeviceAdapter::QueryLighting (  )  [virtual]

Returns current lighting setting.

Implements vtkPainterDeviceAdapter.

virtual void vtkMesaPainterDeviceAdapter::MakeMultisampling ( int  mode  )  [virtual]

Turns antialiasing on and off.

Implements vtkPainterDeviceAdapter.

virtual int vtkMesaPainterDeviceAdapter::QueryMultisampling (  )  [virtual]

Returns current antialiasing setting.

Implements vtkPainterDeviceAdapter.

virtual void vtkMesaPainterDeviceAdapter::MakeBlending ( int  mode  )  [virtual]

Turns blending on and off.

Implements vtkPainterDeviceAdapter.

virtual int vtkMesaPainterDeviceAdapter::QueryBlending (  )  [virtual]

Returns current blending setting.

Implements vtkPainterDeviceAdapter.


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

Generated on Wed Aug 24 11:47:41 2011 for VTK by  doxygen 1.5.6