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 ) override;
67 
73 
80  void AddDataSet( vtkDataSet * dataset ) override;
81 
85  int FunctionValues( double * x, double * f ) override;
86 
90  virtual int SnapPointOnCell(double* pOrigin, double* pProj);
91 
95  void SetLastCellId( vtkIdType c, int dataindex ) override;
96 
100  void SetLastCellId( vtkIdType c ) override
101  { this->Superclass::SetLastCellId( c ); }
102 
103 protected:
106 
114  int FunctionValues( vtkDataSet * ds, double * x, double * f ) override
115  { return this->Superclass::FunctionValues( ds, x, f ); }
116 
117 private:
119  ( const vtkInterpolatedVelocityField & ) = delete;
120  void operator =
121  ( const vtkInterpolatedVelocityField & ) = delete;
122 };
123 
124 #endif
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) override
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:347
void SetLastCellId(vtkIdType c) override
Set the cell id cached by the last evaluation.
a simple class to control print indentation
Definition: vtkIndent.h:39
A concrete class for obtaining the interpolated velocity values at a point.
int FunctionValues(double *x, double *f) override=0
Evaluate the velocity field f at point (x, y, z).
virtual void SetLastCellId(vtkIdType c)
Get/Set the id of the cell cached from last evaluation.
int FunctionValues(vtkDataSet *ds, double *x, double *f) override
Evaluate the velocity field f at point (x, y, z) in a specified dataset by either involving vtkPointL...
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...