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 "vtkRenderingOpenGLModule.h" // For export macro
29 #include "vtkPolyDataPainter.h"
30 
34 
36  public vtkPolyDataPainter
37 {
38 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
54  static vtkInformationIntegerKey* RESOLVE_COINCIDENT_TOPOLOGY();
55 
58  static vtkInformationDoubleKey* Z_SHIFT();
59 
62  static vtkInformationDoubleVectorKey* POLYGON_OFFSET_PARAMETERS();
63 
65 
68  static vtkInformationIntegerKey* POLYGON_OFFSET_FACES();
69 protected:
73 
76  virtual void ProcessInformation(vtkInformation*);
77 
78  // These are method to set ivars. These are purpisefully protected.
79  // The only means to affect these values is thru information object.
80  vtkSetMacro(ResolveCoincidentTopology, int);
81  vtkSetMacro(ZShift, double);
82  vtkSetMacro(OffsetFaces, int);
83  void SetPolygonOffsetParameters(double factor, double units)
84  {
85  if (this->PolygonOffsetFactor != factor ||
86  this->PolygonOffsetUnits != units)
87  {
88  this->PolygonOffsetFactor = factor;
89  this->PolygonOffsetUnits = units;
90  this->Modified();
91  }
92  }
93 
97  double ZShift;
99 private:
101  void operator=(const vtkCoincidentTopologyResolutionPainter&); // Not implemented.
102 };
103 
104 
105 #endif
Store vtkAlgorithm input/output information.
virtual void ProcessInformation(vtkInformation *)
Key for double vector values.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGOPENGL_EXPORT
Key for integer values in vtkInformation.
virtual void Modified()
virtual void PrintSelf(ostream &os, vtkIndent indent)
Key for double values in vtkInformation.
static vtkObject * New()
painter that resolves conicident topology.
Abstract class for drawing poly data.