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

painter that resolves conicident topology. More...

#include <vtkCoincidentTopologyResolutionPainter.h>

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

List of all members.

Public Types

typedef vtkPolyDataPainter Superclass

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
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
static vtkInformationIntegerKeyPOLYGON_OFFSET_FACES ()
 vtkCoincidentTopologyResolutionPainter ()
 ~vtkCoincidentTopologyResolutionPainter ()

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 35 of file vtkCoincidentTopologyResolutionPainter.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataPainter.

Reimplemented in vtkOpenGLCoincidentTopologyResolutionPainter.

Definition at line 41 of file vtkCoincidentTopologyResolutionPainter.h.


Constructor & Destructor Documentation

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.

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

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

Reimplemented from vtkObject.

Reimplemented in vtkOpenGLCoincidentTopologyResolutionPainter.

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 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 vtkOpenGLCoincidentTopologyResolutionPainter.

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 vtkOpenGLCoincidentTopologyResolutionPainter.

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.)

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

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

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.

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

Reimplemented from vtkPolyDataPainter.

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 83 of file vtkCoincidentTopologyResolutionPainter.h.


Member Data Documentation

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.

Definition at line 98 of file vtkCoincidentTopologyResolutionPainter.h.


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