vtkCoincidentTopologyResolutionPainter Class Reference

#include <vtkCoincidentTopologyResolutionPainter.h>

Inheritance diagram for vtkCoincidentTopologyResolutionPainter:

Inheritance graph
[legend]
Collaboration diagram for vtkCoincidentTopologyResolutionPainter:

Collaboration graph
[legend]

List of all members.


Detailed Description

painter that resolves conicident topology.

Provides the ability to shift the z-buffer to resolve coincident topology. For example, if you'd like to draw a mesh with some edges a different color, and the edges lie on the mesh, this feature can be useful to get nice looking lines.

Definition at line 34 of file vtkCoincidentTopologyResolutionPainter.h.

static vtkInformationIntegerKeyPOLYGON_OFFSET_FACES ()
 vtkCoincidentTopologyResolutionPainter ()
 ~vtkCoincidentTopologyResolutionPainter ()

Public Types

typedef vtkPolyDataPainter Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)

Static Public Member Functions

static
vtkCoincidentTopologyResolutionPainter
New ()
static int IsTypeOf (const char *type)
static
vtkCoincidentTopologyResolutionPainter
SafeDownCast (vtkObject *o)
static vtkInformationIntegerKeyRESOLVE_COINCIDENT_TOPOLOGY ()
static vtkInformationDoubleKeyZ_SHIFT ()
static
vtkInformationDoubleVectorKey
POLYGON_OFFSET_PARAMETERS ()

Protected Member Functions

virtual void ProcessInformation (vtkInformation *)
virtual void SetResolveCoincidentTopology (int)
virtual void SetZShift (double)
virtual void SetOffsetFaces (int)
void SetPolygonOffsetParameters (double factor, double units)

Protected Attributes

int ResolveCoincidentTopology
double PolygonOffsetFactor
double PolygonOffsetUnits
double ZShift
int OffsetFaces

Member Typedef Documentation


Constructor & Destructor Documentation

vtkCoincidentTopologyResolutionPainter::vtkCoincidentTopologyResolutionPainter (  )  [protected]

When set and when RESOLVE_COINCIDENT_TOPOLOGY is set to use polygon offset, solid polygonal faces will be offsetted, otherwise lines/vertices will be offsetted.

vtkCoincidentTopologyResolutionPainter::~vtkCoincidentTopologyResolutionPainter (  )  [protected]

When set and when RESOLVE_COINCIDENT_TOPOLOGY is set to use polygon offset, solid polygonal faces will be offsetted, otherwise lines/vertices will be offsetted.


Member Function Documentation

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

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

Reimplemented from vtkObject.

Reimplemented in vtkMesaCoincidentTopologyResolutionPainter, and vtkOpenGLCoincidentTopologyResolutionPainter.

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

static int vtkCoincidentTopologyResolutionPainter::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 vtkPolyDataPainter.

Reimplemented in vtkMesaCoincidentTopologyResolutionPainter, and vtkOpenGLCoincidentTopologyResolutionPainter.

virtual int vtkCoincidentTopologyResolutionPainter::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 vtkPolyDataPainter.

Reimplemented in vtkMesaCoincidentTopologyResolutionPainter, and vtkOpenGLCoincidentTopologyResolutionPainter.

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

void vtkCoincidentTopologyResolutionPainter::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 vtkPolyDataPainter.

Reimplemented in vtkMesaCoincidentTopologyResolutionPainter, and vtkOpenGLCoincidentTopologyResolutionPainter.

static vtkInformationIntegerKey* vtkCoincidentTopologyResolutionPainter::RESOLVE_COINCIDENT_TOPOLOGY (  )  [static]

Set/Get a global flag that controls whether coincident topology (e.g., a line on top of a polygon) is shifted to avoid z-buffer resolution (and hence rendering problems). If not off, there are two methods to choose from. PolygonOffset uses graphics systems calls to shift polygons, but does not distinguish vertices and lines from one another. ShiftZBuffer remaps the z-buffer to distinguish vertices, lines, and polygons, but does not always produce acceptable results. If you use the ShiftZBuffer approach, you may also want to set the ResolveCoincidentTopologyZShift value. (Note: not all mappers/graphics systems implement this functionality.)

static vtkInformationDoubleKey* vtkCoincidentTopologyResolutionPainter::Z_SHIFT (  )  [static]

Used to set the z-shift if ResolveCoincidentTopology is set to ShiftZBuffer.

static vtkInformationDoubleVectorKey* vtkCoincidentTopologyResolutionPainter::POLYGON_OFFSET_PARAMETERS (  )  [static]

Used to set the polygon offset scale factor and units. Used when ResolveCoincidentTopology is set to PolygonOffset.

static vtkInformationIntegerKey* vtkCoincidentTopologyResolutionPainter::POLYGON_OFFSET_FACES (  )  [static]

When set and when RESOLVE_COINCIDENT_TOPOLOGY is set to use polygon offset, solid polygonal faces will be offsetted, otherwise lines/vertices will be offsetted.

virtual void vtkCoincidentTopologyResolutionPainter::ProcessInformation ( vtkInformation  )  [protected, virtual]

Called before RenderInternal() if the Information has been changed since the last time this method was called.

Reimplemented from vtkPolyDataPainter.

virtual void vtkCoincidentTopologyResolutionPainter::SetResolveCoincidentTopology ( int   )  [protected, virtual]

virtual void vtkCoincidentTopologyResolutionPainter::SetZShift ( double   )  [protected, virtual]

virtual void vtkCoincidentTopologyResolutionPainter::SetOffsetFaces ( int   )  [protected, virtual]

void vtkCoincidentTopologyResolutionPainter::SetPolygonOffsetParameters ( double  factor,
double  units 
) [inline, protected]

Definition at line 82 of file vtkCoincidentTopologyResolutionPainter.h.


Member Data Documentation

Definition at line 93 of file vtkCoincidentTopologyResolutionPainter.h.

Definition at line 94 of file vtkCoincidentTopologyResolutionPainter.h.

Definition at line 95 of file vtkCoincidentTopologyResolutionPainter.h.

Definition at line 96 of file vtkCoincidentTopologyResolutionPainter.h.

Definition at line 97 of file vtkCoincidentTopologyResolutionPainter.h.


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

Generated on Wed Aug 24 11:31:21 2011 for VTK by  doxygen 1.5.6