VTK
vtkGenericInterpolatedVelocityField.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericInterpolatedVelocityField.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 =========================================================================*/
41 #ifndef __vtkGenericInterpolatedVelocityField_h
42 #define __vtkGenericInterpolatedVelocityField_h
43 
44 #include "vtkFunctionSet.h"
45 
46 class vtkGenericDataSet;
48 class vtkGenericAdaptorCell;
49 
50 class vtkGenericInterpolatedVelocityFieldDataSetsType;
51 
53 {
54 public:
56  virtual void PrintSelf(ostream& os, vtkIndent indent);
57 
61 
64  virtual int FunctionValues(double* x, double* f);
65 
70  virtual void AddDataSet(vtkGenericDataSet* dataset);
71 
74  void ClearLastCell();
75 
77  vtkGenericAdaptorCell *GetLastCell();
78 
82  int GetLastLocalCoordinates(double pcoords[3]);
83 
85 
86  vtkGetMacro(Caching, int);
87  vtkSetMacro(Caching, int);
88  vtkBooleanMacro(Caching, int);
90 
92 
93  vtkGetMacro(CacheHit, int);
94  vtkGetMacro(CacheMiss, int);
96 
98 
101  vtkGetStringMacro(VectorsSelection);
102  void SelectVectors(const char *fieldName)
103  {this->SetVectorsSelection(fieldName);}
105 
107 
111  vtkGetObjectMacro(LastDataSet, vtkGenericDataSet);
113 
116  virtual void CopyParameters(vtkGenericInterpolatedVelocityField* from);
117 
118 protected:
121 
123 
124  double LastPCoords[3]; // last local coordinates
125  int CacheHit;
127  int Caching;
128 
129  vtkGenericDataSet* LastDataSet;
130 
131  vtkSetStringMacro(VectorsSelection);
132  char *VectorsSelection;
133 
134  vtkGenericInterpolatedVelocityFieldDataSetsType* DataSets;
135 
136  int FunctionValues(vtkGenericDataSet* ds, double* x, double* f);
137 
138  static const double TOLERANCE_SCALE;
139 
140 private:
142  void operator=(const vtkGenericInterpolatedVelocityField&); // Not implemented.
143 };
144 
145 #endif
#define VTK_FILTERING_EXPORT
virtual int FunctionValues(double *x, double *f)=0
iterator used to traverse cells
vtkGenericInterpolatedVelocityFieldDataSetsType * DataSets
a simple class to control print indentation
Definition: vtkIndent.h:37
Abstract interface for sets of functions.
virtual void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
Interface for obtaining interpolated velocity values.