VTK
vtkCoincidentTopologyResolutionPainter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkCoincidentTopologyResolutionPainter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
26#ifndef vtkCoincidentTopologyResolutionPainter_h
27#define vtkCoincidentTopologyResolutionPainter_h
28
29#include "vtkRenderingOpenGLModule.h" // For export macro
30#include "vtkPolyDataPainter.h"
31
35
36class VTKRENDERINGOPENGL_EXPORT vtkCoincidentTopologyResolutionPainter :
38{
39public:
43 void PrintSelf(ostream& os, vtkIndent indent);
44
58
64
70
77
78protected:
81
87
88 // These are method to set ivars. These are purpisefully protected.
89 // The only means to affect these values is thru information object.
90 vtkSetMacro(ResolveCoincidentTopology, int);
91 vtkSetMacro(ZShift, double);
92 vtkSetMacro(OffsetFaces, int);
93 void SetPolygonOffsetParameters(double factor, double units)
94 {
95 if (this->PolygonOffsetFactor != factor ||
96 this->PolygonOffsetUnits != units)
97 {
98 this->PolygonOffsetFactor = factor;
99 this->PolygonOffsetUnits = units;
100 this->Modified();
101 }
102 }
103
107 double ZShift;
109
110private:
112 void operator=(const vtkCoincidentTopologyResolutionPainter&) VTK_DELETE_FUNCTION;
113};
114
115
116#endif
painter that resolves conicident topology.
virtual void ProcessInformation(vtkInformation *)
Called before RenderInternal() if the Information has been changed since the last time this method wa...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkInformationIntegerKey * POLYGON_OFFSET_FACES()
When set and when RESOLVE_COINCIDENT_TOPOLOGY is set to use polygon offset, solid polygonal faces wil...
static vtkCoincidentTopologyResolutionPainter * New()
static vtkInformationIntegerKey * RESOLVE_COINCIDENT_TOPOLOGY()
Set/Get a global flag that controls whether coincident topology (e.g., a line on top of a polygon) is...
static vtkInformationDoubleKey * Z_SHIFT()
Used to set the z-shift if ResolveCoincidentTopology is set to ShiftZBuffer.
static vtkInformationDoubleVectorKey * POLYGON_OFFSET_PARAMETERS()
Used to set the polygon offset scale factor and units.
a simple class to control print indentation
Definition: vtkIndent.h:40
Key for double values in vtkInformation.
Key for integer values in vtkInformation.
Store vtkAlgorithm input/output information.
virtual void Modified()
Update the modification time for this object.
Abstract class for drawing poly data.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.