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 =========================================================================*/
42 #ifndef vtkGenericInterpolatedVelocityField_h
43 #define vtkGenericInterpolatedVelocityField_h
44 
45 #include "vtkCommonDataModelModule.h" // For export macro
46 #include "vtkFunctionSet.h"
47 
48 class vtkGenericDataSet;
51 
52 class vtkGenericInterpolatedVelocityFieldDataSetsType;
53 
54 class VTKCOMMONDATAMODEL_EXPORT vtkGenericInterpolatedVelocityField : public vtkFunctionSet
55 {
56 public:
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
65 
70  int FunctionValues(double* x, double* f) override;
71 
79  virtual void AddDataSet(vtkGenericDataSet* dataset);
80 
85  void ClearLastCell();
86 
90  vtkGenericAdaptorCell *GetLastCell();
91 
97  int GetLastLocalCoordinates(double pcoords[3]);
98 
100 
103  vtkGetMacro(Caching, vtkTypeBool);
104  vtkSetMacro(Caching, vtkTypeBool);
105  vtkBooleanMacro(Caching, vtkTypeBool);
107 
109 
112  vtkGetMacro(CacheHit, int);
113  vtkGetMacro(CacheMiss, int);
115 
117 
122  vtkGetStringMacro(VectorsSelection);
123  void SelectVectors(const char *fieldName)
124  {this->SetVectorsSelection(fieldName);}
126 
128 
134  vtkGetObjectMacro(LastDataSet, vtkGenericDataSet);
136 
142  virtual void CopyParameters(vtkGenericInterpolatedVelocityField* from);
143 
144 protected:
147 
149 
150  double LastPCoords[3]; // last local coordinates
151  int CacheHit;
154 
156 
157  vtkSetStringMacro(VectorsSelection);
158  char *VectorsSelection;
159 
160  vtkGenericInterpolatedVelocityFieldDataSetsType* DataSets;
161 
162  int FunctionValues(vtkGenericDataSet* ds, double* x, double* f);
163 
164  static const double TOLERANCE_SCALE;
165 
166 private:
168  void operator=(const vtkGenericInterpolatedVelocityField&) = delete;
169 };
170 
171 #endif
vtkGenericInterpolatedVelocityField::CacheMiss
int CacheMiss
Definition: vtkGenericInterpolatedVelocityField.h:152
vtkFunctionSet
Abstract interface for sets of functions.
Definition: vtkFunctionSet.h:35
vtkGenericInterpolatedVelocityField::TOLERANCE_SCALE
static const double TOLERANCE_SCALE
Definition: vtkGenericInterpolatedVelocityField.h:164
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkGenericInterpolatedVelocityField::LastDataSet
vtkGenericDataSet * LastDataSet
Definition: vtkGenericInterpolatedVelocityField.h:155
vtkFunctionSet::FunctionValues
virtual int FunctionValues(double *x, double *f)=0
Evaluate functions at x_j.
vtkGenericInterpolatedVelocityField
Interface for obtaining interpolated velocity values.
Definition: vtkGenericInterpolatedVelocityField.h:54
vtkGenericAdaptorCell
defines cell interface
Definition: vtkGenericAdaptorCell.h:95
vtkGenericCellIterator
iterator used to traverse cells
Definition: vtkGenericCellIterator.h:44
vtkFunctionSet.h
vtkGenericInterpolatedVelocityField::VectorsSelection
char * VectorsSelection
Definition: vtkGenericInterpolatedVelocityField.h:157
vtkGenericDataSet
defines dataset interface
Definition: vtkGenericDataSet.h:69
vtkGenericInterpolatedVelocityField::GenCell
vtkGenericCellIterator * GenCell
Definition: vtkGenericInterpolatedVelocityField.h:148
vtkFunctionSet::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGenericInterpolatedVelocityField::Caching
vtkTypeBool Caching
Definition: vtkGenericInterpolatedVelocityField.h:153
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGenericInterpolatedVelocityField::DataSets
vtkGenericInterpolatedVelocityFieldDataSetsType * DataSets
Definition: vtkGenericInterpolatedVelocityField.h:160
vtkGenericInterpolatedVelocityField::CacheHit
int CacheHit
Definition: vtkGenericInterpolatedVelocityField.h:151
vtkGenericInterpolatedVelocityField::SelectVectors
void SelectVectors(const char *fieldName)
Definition: vtkGenericInterpolatedVelocityField.h:123
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69