VTK  9.0.1
vtkViewDependentErrorMetric.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkViewDependentErrorMetric.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 =========================================================================*/
29 #ifndef vtkViewDependentErrorMetric_h
30 #define vtkViewDependentErrorMetric_h
31 
33 #include "vtkRenderingCoreModule.h" // For export macro
34 
35 class vtkViewport;
36 class vtkCoordinate;
37 
38 class VTKRENDERINGCORE_EXPORT vtkViewDependentErrorMetric : public vtkGenericSubdivisionErrorMetric
39 {
40 public:
46 
48 
52  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
65  vtkGetMacro(PixelTolerance, double);
67 
76  void SetPixelTolerance(double value);
77 
79 
83  vtkGetObjectMacro(Viewport, vtkViewport);
84  void SetViewport(vtkViewport* viewport);
86 
107  double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
108 
122  double GetError(double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
123 
124 protected:
126  ~vtkViewDependentErrorMetric() override;
127 
133  double Distance2LinePoint(double x[2], double y[2], double z[2]);
134 
137  // used to get display coordinates from world coordinates
139 
140 private:
142  void operator=(const vtkViewDependentErrorMetric&) = delete;
143 };
144 
145 #endif
vtkViewDependentErrorMetric::Viewport
vtkViewport * Viewport
Definition: vtkViewDependentErrorMetric.h:136
vtkX3D::alpha
@ alpha
Definition: vtkX3D.h:256
vtkX3D::value
@ value
Definition: vtkX3D.h:226
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkGenericSubdivisionErrorMetric::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkViewDependentErrorMetric::Coordinate
vtkCoordinate * Coordinate
Definition: vtkViewDependentErrorMetric.h:138
vtkGenericSubdivisionErrorMetric
Objects that compute error during cell tessellation.
Definition: vtkGenericSubdivisionErrorMetric.h:48
vtkViewDependentErrorMetric::PixelTolerance
double PixelTolerance
Definition: vtkViewDependentErrorMetric.h:135
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkGenericSubdivisionErrorMetric::RequiresEdgeSubdivision
virtual int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint, double alpha)=0
Does the edge need to be subdivided according to the implemented computation? The edge is defined by ...
vtkCoordinate
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:76
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkGenericSubdivisionErrorMetric::GetError
virtual double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha)=0
Return the error at the mid-point.
vtkViewDependentErrorMetric
Objects that compute a screen-based error during cell tessellation.
Definition: vtkViewDependentErrorMetric.h:38
vtkGenericSubdivisionErrorMetric.h