Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkAttributesErrorMetric.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkAttributesErrorMetric.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00030 #ifndef __vtkAttributesErrorMetric_h
00031 #define __vtkAttributesErrorMetric_h
00032 
00033 #include "vtkGenericSubdivisionErrorMetric.h"
00034 
00035 class vtkGenericAttributeCollection;
00036 class vtkGenericDataSet;
00037 
00038 class VTK_FILTERING_EXPORT vtkAttributesErrorMetric : public vtkGenericSubdivisionErrorMetric
00039 {
00040 public:
00043   static vtkAttributesErrorMetric *New();
00044   
00046 
00047   vtkTypeRevisionMacro(vtkAttributesErrorMetric,vtkGenericSubdivisionErrorMetric);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00050   
00052 
00057   vtkGetMacro(AbsoluteAttributeTolerance, double);
00059   
00067   void SetAbsoluteAttributeTolerance(double value);
00068   
00070 
00075   vtkGetMacro(AttributeTolerance, double);
00077   
00081   void SetAttributeTolerance(double value);
00082 
00084 
00098   int RequiresEdgeSubdivision(double *leftPoint, double *midPoint, double *rightPoint,
00099                               double alpha);
00101   
00103 
00112   double GetError(double *leftPoint, double *midPoint,
00113                   double *rightPoint, double alpha);
00115   
00116 protected:
00117   vtkAttributesErrorMetric();
00118   virtual ~vtkAttributesErrorMetric();
00119   
00122   void ComputeSquareAbsoluteAttributeTolerance();
00123   
00124   double AttributeTolerance;
00125   
00126   double SquareAbsoluteAttributeTolerance; // cached value computed from
00127   // AttributeTolerance and active attribute/component
00128   
00129   double AbsoluteAttributeTolerance;
00130   int DefinedByAbsolute;
00131   
00132   vtkTimeStamp SquareAbsoluteAttributeToleranceComputeTime;
00133   
00134   double Range; // cached value computed from active attribute/component
00135   
00136   vtkGenericAttributeCollection *AttributeCollection;
00137 
00138 private:
00139   vtkAttributesErrorMetric(const vtkAttributesErrorMetric&);  // Not implemented.
00140   void operator=(const vtkAttributesErrorMetric&);  // Not implemented.
00141 };
00142 
00143 #endif
00144 

Generated on Mon Jan 21 23:07:18 2008 for VTK by  doxygen 1.4.3-20050530