VTK  9.3.1
vtkViewDependentErrorMetric.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
20 #ifndef vtkViewDependentErrorMetric_h
21 #define vtkViewDependentErrorMetric_h
22 
24 #include "vtkRenderingCoreModule.h" // For export macro
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkViewport;
28 class vtkCoordinate;
29 
30 class VTKRENDERINGCORE_EXPORT vtkViewDependentErrorMetric : public vtkGenericSubdivisionErrorMetric
31 {
32 public:
38 
40 
44  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
57  vtkGetMacro(PixelTolerance, double);
59 
68  void SetPixelTolerance(double value);
69 
71 
75  vtkGetObjectMacro(Viewport, vtkViewport);
76  void SetViewport(vtkViewport* viewport);
78 
99  double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
100 
114  double GetError(double* leftPoint, double* midPoint, double* rightPoint, double alpha) override;
115 
116 protected:
118  ~vtkViewDependentErrorMetric() override;
119 
125  double Distance2LinePoint(double x[2], double y[2], double z[2]);
126 
129  // used to get display coordinates from world coordinates
131 
132 private:
134  void operator=(const vtkViewDependentErrorMetric&) = delete;
135 };
136 
137 VTK_ABI_NAMESPACE_END
138 #endif
abstract specification for Viewports
Definition: vtkViewport.h:44
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK type and error macros.
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 ...
a simple class to control print indentation
Definition: vtkIndent.h:28
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
Definition: vtkCoordinate.h:68
Objects that compute error during cell tessellation.
virtual double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha)=0
Return the error at the mid-point.
Objects that compute a screen-based error during cell tessellation.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...