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
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkViewDependentErrorMetric::Viewport
vtkViewport * Viewport
Definition: vtkViewDependentErrorMetric.h:126
vtkViewDependentErrorMetric::SetViewport
void SetViewport(vtkViewport *viewport)
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkViewDependentErrorMetric::GetError
double GetError(double *leftPoint, double *midPoint, double *rightPoint, double alpha)
vtkViewDependentErrorMetric::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkViewDependentErrorMetric::Coordinate
vtkCoordinate * Coordinate
Definition: vtkViewDependentErrorMetric.h:128
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkGenericSubdivisionErrorMetric
Objects that compute error during cell tessellation.
Definition: vtkGenericSubdivisionErrorMetric.h:48
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkViewDependentErrorMetric::PixelTolerance
double PixelTolerance
Definition: vtkViewDependentErrorMetric.h:125
vtkViewDependentErrorMetric::SetPixelTolerance
void SetPixelTolerance(double value)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkRenderingCoreModule.h
vtkCoordinate
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:70
vtkViewDependentErrorMetric::vtkViewDependentErrorMetric
vtkViewDependentErrorMetric()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkgl::alpha
GLclampf GLclampf GLclampf alpha
Definition: vtkgl.h:11313
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkViewDependentErrorMetric
Objects that compute a screen-based error during cell tessellation.
Definition: vtkViewDependentErrorMetric.h:41
vtkViewDependentErrorMetric::~vtkViewDependentErrorMetric
~vtkViewDependentErrorMetric()
vtkViewDependentErrorMetric::RequiresEdgeSubdivision
int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint, double alpha)
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition: vtkRenderingCoreModule.h:15
vtkGenericSubdivisionErrorMetric.h
vtkViewDependentErrorMetric::New
static vtkViewDependentErrorMetric * New()
vtkViewDependentErrorMetric::Distance2LinePoint
double Distance2LinePoint(double x[2], double y[2], double z[2])