VTK
vtkDataSetEdgeSubdivisionCriterion.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataSetEdgeSubdivisionCriterion.h
5  Language: C++
6 
7  Copyright 2003 Sandia Corporation.
8  Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
9  license for use of this work by or on behalf of the
10  U.S. Government. Redistribution and use in source and binary forms, with
11  or without modification, are permitted provided that this Notice and any
12  statement of authorship are reproduced on all copies.
13 
14 =========================================================================*/
15 #ifndef __vtkDataSetEdgeSubdivisionCriterion_h
16 #define __vtkDataSetEdgeSubdivisionCriterion_h
17 
42 
43 class vtkCell;
44 class vtkDataSet;
45 
47 {
48  public:
51  virtual void PrintSelf( ostream& os, vtkIndent indent );
52 
53  virtual void SetMesh( vtkDataSet* );
54  vtkDataSet* GetMesh();
55  //BTX
56  const vtkDataSet* GetMesh() const;
57  //ETX
58 
59  virtual void SetCellId( vtkIdType cell );
60  vtkIdType GetCellId() const;
61  //BTX
62  vtkIdType& GetCellId();
63  //ETX
64  vtkCell* GetCell();
65  //BTX
66  const vtkCell* GetCell() const;
67  //ETX
68 
69  virtual bool EvaluateEdge( const double* p0, double* midpt, const double* p1, int field_start );
70 
100  double* EvaluateFields( double* vertex, double* weights, int field_start );
101 
103 
106  void EvaluatePointDataField( double* result, double* weights, int field );
107  void EvaluateCellDataField( double* result, double* weights, int field );
109 
111 
113  vtkSetMacro(ChordError2,double);
114  vtkGetMacro(ChordError2,double);
116 
118 
122  virtual void SetFieldError2( int s, double err );
123  double GetFieldError2( int s ) const;
125 
129  virtual void ResetFieldError2();
130 
132 
135  vtkGetMacro(ActiveFieldCriteria,int);
136  int GetActiveFieldCriteria() const { return this->ActiveFieldCriteria; }
138 
139  protected:
142 
146 
147  double ChordError2;
148  double* FieldError2;
152 
153  private:
155  void operator = ( const vtkDataSetEdgeSubdivisionCriterion& ); // Not implemented.
156 
157 };
158 
159 //BTX
160 
163 
166 
169 
170 //ETX
171 
172 #endif // __vtkDataSetEdgeSubdivisionCriterion_h