VTK
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 =========================================================================*/
31 #ifndef __vtkViewDependentErrorMetric_h
32 #define __vtkViewDependentErrorMetric_h
33 
34 #include "vtkRenderingCoreModule.h" // For export macro
36 
37 class vtkViewport;
38 class vtkCoordinate;
39 
41 {
42 public:
46 
48 
50  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
61  vtkGetMacro(PixelTolerance, double);
63 
70  void SetPixelTolerance(double value);
71 
73 
76  void SetViewport(vtkViewport *viewport);
78 
80 
94  int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint,
95  double alpha);
97 
99 
108  double GetError(double *leftPoint, double *midPoint,
109  double *rightPoint, double alpha);
111 
112 protected:
115 
117 
120  double Distance2LinePoint(double x[2],
121  double y[2],
122  double z[2]);
124 
127  // used to get display coordinates from world coordinates
129 
130 private:
131  vtkViewDependentErrorMetric(const vtkViewDependentErrorMetric&); // Not implemented.
132  void operator=(const vtkViewDependentErrorMetric&); // Not implemented.
133 };
134 
135 #endif
abstract specification for Viewports
Definition: vtkViewport.h:46
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
virtual int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint, double alpha)=0
GLdouble GLdouble z
Definition: vtkgl.h:11754
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
a simple class to control print indentation
Definition: vtkIndent.h:38
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
Definition: vtkCoordinate.h:69
Objects that compute error during cell tessellation.
virtual double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha)=0
Objects that compute a screen-based error during cell tessellation.
#define VTKRENDERINGCORE_EXPORT
GLclampf GLclampf GLclampf alpha
Definition: vtkgl.h:11313
static vtkObject * New()
void PrintSelf(ostream &os, vtkIndent indent)