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 
57  static vtkInformationIntegerKey* RESOLVE_COINCIDENT_TOPOLOGY();
58 
63  static vtkInformationDoubleKey* Z_SHIFT();
64 
69  static vtkInformationDoubleVectorKey* POLYGON_OFFSET_PARAMETERS();
70 
76  static vtkInformationIntegerKey* POLYGON_OFFSET_FACES();
77 
78 protected:
81 
86  virtual void ProcessInformation(vtkInformation*);
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
vtkPolyDataPainter::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkCoincidentTopologyResolutionPainter::ResolveCoincidentTopology
int ResolveCoincidentTopology
Definition: vtkCoincidentTopologyResolutionPainter.h:104
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkCoincidentTopologyResolutionPainter::PolygonOffsetFactor
double PolygonOffsetFactor
Definition: vtkCoincidentTopologyResolutionPainter.h:105
vtkPolyDataPainter
Abstract class for drawing poly data.
Definition: vtkPolyDataPainter.h:54
vtkPolyDataPainter::ProcessInformation
virtual void ProcessInformation(vtkInformation *)
Called before RenderInternal() if the Information has been changed since the last time this method wa...
vtkObject::Modified
virtual void Modified()
Update the modification time for this object.
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:34
vtkCoincidentTopologyResolutionPainter
painter that resolves conicident topology.
Definition: vtkCoincidentTopologyResolutionPainter.h:36
vtkCoincidentTopologyResolutionPainter::PolygonOffsetUnits
double PolygonOffsetUnits
Definition: vtkCoincidentTopologyResolutionPainter.h:106
vtkInformationIntegerKey
Key for integer values in vtkInformation.
Definition: vtkInformationIntegerKey.h:34
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
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:34
vtkPolyDataPainter.h