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 
36 class VTKRENDERINGOPENGL_EXPORT vtkCoincidentTopologyResolutionPainter :
37  public vtkPolyDataPainter
38 {
39 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
58 
64 
70 
77 
78 protected:
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 
110 private:
112  void operator=(const vtkCoincidentTopologyResolutionPainter&) VTK_DELETE_FUNCTION;
113 };
114 
115 
116 #endif
vtkCoincidentTopologyResolutionPainter::~vtkCoincidentTopologyResolutionPainter
~vtkCoincidentTopologyResolutionPainter()
vtkCoincidentTopologyResolutionPainter::vtkCoincidentTopologyResolutionPainter
vtkCoincidentTopologyResolutionPainter()
vtkCoincidentTopologyResolutionPainter::ResolveCoincidentTopology
int ResolveCoincidentTopology
Definition: vtkCoincidentTopologyResolutionPainter.h:104
vtkCoincidentTopologyResolutionPainter::PolygonOffsetFactor
double PolygonOffsetFactor
Definition: vtkCoincidentTopologyResolutionPainter.h:105
vtkPolyDataPainter
Abstract class for drawing poly data.
Definition: vtkPolyDataPainter.h:55
vtkObject::Modified
virtual void Modified()
Update the modification time for this object.
vtkCoincidentTopologyResolutionPainter::RESOLVE_COINCIDENT_TOPOLOGY
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...
vtkCoincidentTopologyResolutionPainter::OffsetFaces
int OffsetFaces
Definition: vtkCoincidentTopologyResolutionPainter.h:108
vtkCoincidentTopologyResolutionPainter::SetPolygonOffsetParameters
void SetPolygonOffsetParameters(double factor, double units)
Definition: vtkCoincidentTopologyResolutionPainter.h:93
vtkInformationDoubleKey
Key for double values in vtkInformation.
Definition: vtkInformationDoubleKey.h:35
vtkCoincidentTopologyResolutionPainter
painter that resolves conicident topology.
Definition: vtkCoincidentTopologyResolutionPainter.h:38
vtkCoincidentTopologyResolutionPainter::PolygonOffsetUnits
double PolygonOffsetUnits
Definition: vtkCoincidentTopologyResolutionPainter.h:106
vtkInformationIntegerKey
Key for integer values in vtkInformation.
Definition: vtkInformationIntegerKey.h:35
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkCoincidentTopologyResolutionPainter::ProcessInformation
virtual void ProcessInformation(vtkInformation *)
Called before RenderInternal() if the Information has been changed since the last time this method wa...
vtkCoincidentTopologyResolutionPainter::POLYGON_OFFSET_PARAMETERS
static vtkInformationDoubleVectorKey * POLYGON_OFFSET_PARAMETERS()
Used to set the polygon offset scale factor and units.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkCoincidentTopologyResolutionPainter::ZShift
double ZShift
Definition: vtkCoincidentTopologyResolutionPainter.h:107
vtkInformationDoubleVectorKey
Key for double vector values.
Definition: vtkInformationDoubleVectorKey.h:35
vtkCoincidentTopologyResolutionPainter::POLYGON_OFFSET_FACES
static vtkInformationIntegerKey * POLYGON_OFFSET_FACES()
When set and when RESOLVE_COINCIDENT_TOPOLOGY is set to use polygon offset, solid polygonal faces wil...
vtkCoincidentTopologyResolutionPainter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkCoincidentTopologyResolutionPainter::New
static vtkCoincidentTopologyResolutionPainter * New()
vtkPolyDataPainter.h
vtkCoincidentTopologyResolutionPainter::Z_SHIFT
static vtkInformationDoubleKey * Z_SHIFT()
Used to set the z-shift if ResolveCoincidentTopology is set to ShiftZBuffer.