VTK
vtkCellLocatorInterpolatedVelocityField.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCellLocatorInterpolatedVelocityField.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 =========================================================================*/
49 #ifndef vtkCellLocatorInterpolatedVelocityField_h
50 #define vtkCellLocatorInterpolatedVelocityField_h
51 
52 #include "vtkFiltersFlowPathsModule.h" // For export macro
54 
56 class vtkCellLocatorInterpolatedVelocityFieldCellLocatorsType;
57 
59 {
60 public:
63  void PrintSelf( ostream & os, vtkIndent indent );
64 
70 
72 
75  vtkGetObjectMacro( LastCellLocator, vtkAbstractCellLocator );
77 
79 
83  vtkGetObjectMacro( CellLocatorPrototype, vtkAbstractCellLocator );
85 
91 
103  virtual void AddDataSet( vtkDataSet * dataset );
104 
108  virtual int FunctionValues( double * x, double * f );
109 
113  virtual void SetLastCellId( vtkIdType c, int dataindex );
114 
118  virtual void SetLastCellId( vtkIdType c )
119  { this->Superclass::SetLastCellId( c ); }
120 
121 protected:
124 
132  double * x, double * f );
133 
139  virtual int FunctionValues( vtkDataSet * ds, double * x, double * f )
140  { return this->Superclass::FunctionValues( ds, x, f ); }
141 
142 private:
143  vtkAbstractCellLocator * LastCellLocator;
144  vtkAbstractCellLocator * CellLocatorPrototype;
145  vtkCellLocatorInterpolatedVelocityFieldCellLocatorsType * CellLocators;
146 
148  ( const vtkCellLocatorInterpolatedVelocityField & ) VTK_DELETE_FUNCTION;
149  void operator = ( const vtkCellLocatorInterpolatedVelocityField & ) VTK_DELETE_FUNCTION;
150 };
151 
152 #endif
vtkAbstractInterpolatedVelocityField::SetLastCellId
virtual void SetLastCellId(vtkIdType c)
Definition: vtkAbstractInterpolatedVelocityField.h:118
vtkAbstractInterpolatedVelocityField::FunctionValues
virtual int FunctionValues(double *x, double *f)=0
Evaluate the velocity field f at point (x, y, z).
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkCompositeInterpolatedVelocityField.h
vtkCellLocatorInterpolatedVelocityField::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkCellLocatorInterpolatedVelocityField::~vtkCellLocatorInterpolatedVelocityField
~vtkCellLocatorInterpolatedVelocityField()
vtkCellLocatorInterpolatedVelocityField::SetLastCellId
virtual void SetLastCellId(vtkIdType c)
Set the cell id cached by the last evaluation.
Definition: vtkCellLocatorInterpolatedVelocityField.h:118
vtkCompositeInterpolatedVelocityField
An abstract class for obtaining the interpolated velocity values at a point.
Definition: vtkCompositeInterpolatedVelocityField.h:84
vtkCellLocatorInterpolatedVelocityField::FunctionValues
int FunctionValues(vtkDataSet *ds, vtkAbstractCellLocator *loc, double *x, double *f)
Evaluate the velocity field f at point (x, y, z) in a specified dataset (actually of type vtkPointSet...
vtkCellLocatorInterpolatedVelocityField::vtkCellLocatorInterpolatedVelocityField
vtkCellLocatorInterpolatedVelocityField()
vtkCellLocatorInterpolatedVelocityField::CopyParameters
virtual void CopyParameters(vtkAbstractInterpolatedVelocityField *from)
Import parameters.
vtkCellLocatorInterpolatedVelocityField
A concrete class for obtaining the interpolated velocity values at a point.
Definition: vtkCellLocatorInterpolatedVelocityField.h:59
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkCellLocatorInterpolatedVelocityField::FunctionValues
virtual int FunctionValues(double *x, double *f)
Evaluate the velocity field f at point (x, y, z).
vtkAbstractCellLocator
an abstract base class for locators which find cells
Definition: vtkAbstractCellLocator.h:49
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkAbstractInterpolatedVelocityField
An abstract class for obtaining the interpolated velocity values at a point.
Definition: vtkAbstractInterpolatedVelocityField.h:85
vtkCellLocatorInterpolatedVelocityField::AddDataSet
virtual void AddDataSet(vtkDataSet *dataset)
Add a dataset coupled with a cell locator (of type vtkAbstractCellLocator) for vector function evalua...
vtkCellLocatorInterpolatedVelocityField::SetLastCellId
virtual void SetLastCellId(vtkIdType c, int dataindex)
Set the cell id cached by the last evaluation within a specified dataset.
vtkCellLocatorInterpolatedVelocityField::SetCellLocatorPrototype
void SetCellLocatorPrototype(vtkAbstractCellLocator *prototype)
Set a prototype of the cell locator that is used for interpolating the velocity field during integrat...
vtkCellLocatorInterpolatedVelocityField::FunctionValues
virtual int FunctionValues(vtkDataSet *ds, double *x, double *f)
Evaluate the velocity field f at point (x, y, z) in a specified dataset (of type vtkImageData or vtkR...
Definition: vtkCellLocatorInterpolatedVelocityField.h:139
vtkCellLocatorInterpolatedVelocityField::New
static vtkCellLocatorInterpolatedVelocityField * New()
Construct a vtkCellLocatorInterpolatedVelocityField without an initial dataset.