VTK
|
painter that resolves conicident topology. More...
#include <vtkCoincidentTopologyResolutionPainter.h>
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.
Reimplemented from vtkPolyDataPainter.
Reimplemented in vtkOpenGLCoincidentTopologyResolutionPainter.
Definition at line 41 of file vtkCoincidentTopologyResolutionPainter.h.
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.
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 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.
static vtkCoincidentTopologyResolutionPainter* vtkCoincidentTopologyResolutionPainter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPolyDataPainter.
Reimplemented in vtkOpenGLCoincidentTopologyResolutionPainter.
virtual vtkObjectBase* vtkCoincidentTopologyResolutionPainter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPolyDataPainter.
Reimplemented in vtkOpenGLCoincidentTopologyResolutionPainter.
vtkCoincidentTopologyResolutionPainter* vtkCoincidentTopologyResolutionPainter::NewInstance | ( | ) | const |
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.
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 83 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.
double vtkCoincidentTopologyResolutionPainter::ZShift [protected] |
Definition at line 97 of file vtkCoincidentTopologyResolutionPainter.h.
Definition at line 98 of file vtkCoincidentTopologyResolutionPainter.h.