VTK
vtkInterpolatedVelocityField.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInterpolatedVelocityField.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 =========================================================================*/
54 #ifndef vtkInterpolatedVelocityField_h
55 #define vtkInterpolatedVelocityField_h
56 
57 #include "vtkFiltersFlowPathsModule.h" // For export macro
59 
60 class VTKFILTERSFLOWPATHS_EXPORT vtkInterpolatedVelocityField
62 {
63 public:
64  vtkTypeMacro( vtkInterpolatedVelocityField,
66  void PrintSelf( ostream & os, vtkIndent indent );
67 
73 
80  virtual void AddDataSet( vtkDataSet * dataset );
81 
85  virtual int FunctionValues( double * x, double * f );
86 
90  virtual int SnapPointOnCell(double* pOrigin, double* pProj);
91 
95  virtual void SetLastCellId( vtkIdType c, int dataindex );
96 
100  virtual void SetLastCellId( vtkIdType c )
101  { this->Superclass::SetLastCellId( c ); }
102 
103 protected:
106 
114  virtual int FunctionValues( vtkDataSet * ds, double * x, double * f )
115  { return this->Superclass::FunctionValues( ds, x, f ); }
116 
117 private:
119  ( const vtkInterpolatedVelocityField & ) VTK_DELETE_FUNCTION;
120  void operator =
121  ( const vtkInterpolatedVelocityField & ) VTK_DELETE_FUNCTION;
122 };
123 
124 #endif
virtual int FunctionValues(vtkDataSet *ds, double *x, double *f)
Evaluate the velocity field f at point (x, y, z) in a specified dataset by either involving vtkPointL...
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
virtual void AddDataSet(vtkDataSet *dataset)=0
Add a dataset for implicit velocity function evaluation.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
An abstract class for obtaining the interpolated velocity values at a point.
int vtkIdType
Definition: vtkType.h:287
virtual int FunctionValues(double *x, double *f)=0
Evaluate the velocity field f at point (x, y, z).
a simple class to control print indentation
Definition: vtkIndent.h:39
A concrete class for obtaining the interpolated velocity values at a point.
virtual void SetLastCellId(vtkIdType c)
Set the cell id cached by the last evaluation.
virtual void SetLastCellId(vtkIdType c)
Get/Set the id of the cell cached from last evaluation.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...