20#ifndef vtkViewDependentErrorMetric_h
21#define vtkViewDependentErrorMetric_h
24#include "vtkRenderingCoreModule.h"
26VTK_ABI_NAMESPACE_BEGIN
57 vtkGetMacro(PixelTolerance,
double);
99 double* leftPoint,
double* midPoint,
double* rightPoint,
double alpha)
override;
114 double GetError(
double* leftPoint,
double* midPoint,
double* rightPoint,
double alpha)
override;
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Objects that compute error during cell tessellation.
a simple class to control print indentation
Objects that compute a screen-based error during cell tessellation.
double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha) override
Return the error at the mid-point.
vtkViewDependentErrorMetric()
static vtkViewDependentErrorMetric * New()
Construct the error metric with a default squared screen-based geometric accuracy measured in pixels ...
vtkCoordinate * Coordinate
void SetPixelTolerance(double value)
Set the squared screen-based geometric accuracy measured in pixels.
int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint, double alpha) override
Does the edge need to be subdivided according to the distance between the line passing through its en...
~vtkViewDependentErrorMetric() override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK type and error macros.
void SetViewport(vtkViewport *viewport)
Set/Get the renderer with ‘renderer’ on which the error metric is based.
double Distance2LinePoint(double x[2], double y[2], double z[2])
Square distance between a straight line (defined by points x and y) and a point z.
abstract specification for Viewports