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
Store vtkAlgorithm input/output information.
virtual void ProcessInformation(vtkInformation *)
Called before RenderInternal() if the Information has been changed since the last time this method wa...
Key for double vector values.
a simple class to control print indentation
Definition: vtkIndent.h:39
Key for integer values in vtkInformation.
virtual void Modified()
Update the modification time for this object.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Key for double values in vtkInformation.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
painter that resolves conicident topology.
Abstract class for drawing poly data.