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 =========================================================================*/
25 #ifndef __vtkCoincidentTopologyResolutionPainter_h
26 #define __vtkCoincidentTopologyResolutionPainter_h
27 
28 #include "vtkPolyDataPainter.h"
29 
33 
35  public vtkPolyDataPainter
36 {
37 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
53  static vtkInformationIntegerKey* RESOLVE_COINCIDENT_TOPOLOGY();
54 
57  static vtkInformationDoubleKey* Z_SHIFT();
58 
61  static vtkInformationDoubleVectorKey* POLYGON_OFFSET_PARAMETERS();
62 
64 
67  static vtkInformationIntegerKey* POLYGON_OFFSET_FACES();
68 protected:
72 
75  virtual void ProcessInformation(vtkInformation*);
76 
77  // These are method to set ivars. These are purpisefully protected.
78  // The only means to affect these values is thru information object.
79  vtkSetMacro(ResolveCoincidentTopology, int);
80  vtkSetMacro(ZShift, double);
81  vtkSetMacro(OffsetFaces, int);
82  void SetPolygonOffsetParameters(double factor, double units)
83  {
84  if (this->PolygonOffsetFactor != factor ||
85  this->PolygonOffsetUnits != units)
86  {
87  this->PolygonOffsetFactor = factor;
88  this->PolygonOffsetUnits = units;
89  this->Modified();
90  }
91  }
92 
96  double ZShift;
98 private:
100  void operator=(const vtkCoincidentTopologyResolutionPainter&); // Not implemented.
101 };
102 
103 
104 #endif
105