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
60class VTKFILTERSFLOWPATHS_EXPORT vtkInterpolatedVelocityField
62{
63public:
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
103protected:
106
114 virtual int FunctionValues( vtkDataSet * ds, double * x, double * f )
115 { return this->Superclass::FunctionValues( ds, x, f ); }
116
117private:
119 ( const vtkInterpolatedVelocityField & ) VTK_DELETE_FUNCTION;
120 void operator =
121 ( const vtkInterpolatedVelocityField & ) VTK_DELETE_FUNCTION;
122};
123
124#endif
virtual int FunctionValues(double *x, double *f)=0
Evaluate the velocity field f at point (x, y, z).
An abstract class for obtaining the interpolated velocity values at a point.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
a simple class to control print indentation
Definition: vtkIndent.h:40
A concrete class for obtaining the interpolated velocity values at a point.
virtual int SnapPointOnCell(double *pOrigin, double *pProj)
Project the provided point on current cell, current dataset.
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...
virtual void SetLastCellId(vtkIdType c, int dataindex)
Set the cell id cached by the last evaluation within a specified dataset.
virtual void SetLastCellId(vtkIdType c)
Set the cell id cached by the last evaluation.
virtual int FunctionValues(double *x, double *f)
Evaluate the velocity field f at point (x, y, z).
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void AddDataSet(vtkDataSet *dataset)
Add a dataset used for the implicit function evaluation.
static vtkInterpolatedVelocityField * New()
Construct a vtkInterpolatedVelocityField without an initial dataset.
int vtkIdType
Definition: vtkType.h:287