VTK
vtkAMRInterpolatedVelocityField.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAMRInterpolatedVelocityField.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 =========================================================================*/
27 #ifndef vtkAMRInterpolatedVelocityField_h
28 #define vtkAMRInterpolatedVelocityField_h
29 
30 #include "vtkFiltersFlowPathsModule.h" // For export macro
31 
33 
34 class vtkOverlappingAMR;
35 
38 {
39 public:
42 
44 
47 
48  bool GetLastDataSetLocation(unsigned int& level, unsigned int& id);
49 
50  bool SetLastDataSet(int level, int id);
51 
52  virtual void SetLastCellId( vtkIdType c, int dataindex );
53 
55 
56  virtual void SetLastCellId( vtkIdType c )
57  { this->Superclass::SetLastCellId( c ); }
59 
68  virtual int FunctionValues( double * x, double * f );
69 
70  void PrintSelf( ostream & os, vtkIndent indent );
71 
72  // Descriptino:
73  // Point location routine.
74  static bool FindGrid(double q[3],vtkOverlappingAMR *amrds, unsigned int& level, unsigned int& gridId);
75 
76 protected:
78  int LastLevel;
79  int LastId;
80 
83  virtual int FunctionValues( vtkDataSet * ds, double * x, double * f )
84  { return this->Superclass::FunctionValues( ds, x, f ); }
85 
86 private:
88  void operator = ( const vtkAMRInterpolatedVelocityField& ); // Not implemented.
89 
90 };
91 
92 #endif
vtkAMRInterpolatedVelocityField::GetLastDataSetLocation
bool GetLastDataSetLocation(unsigned int &level, unsigned int &id)
vtkAMRInterpolatedVelocityField::FunctionValues
virtual int FunctionValues(double *x, double *f)
vtkAMRInterpolatedVelocityField::SetLastCellId
virtual void SetLastCellId(vtkIdType c)
Definition: vtkAMRInterpolatedVelocityField.h:56
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkAMRInterpolatedVelocityField::LastLevel
int LastLevel
Definition: vtkAMRInterpolatedVelocityField.h:78
vtkFunctionSet::FunctionValues
virtual int FunctionValues(double *x, double *f)=0
vtkAMRInterpolatedVelocityField::vtkAMRInterpolatedVelocityField
vtkAMRInterpolatedVelocityField()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkAMRInterpolatedVelocityField::AmrDataSet
vtkOverlappingAMR * AmrDataSet
Definition: vtkAMRInterpolatedVelocityField.h:77
VTKFILTERSFLOWPATHS_EXPORT
#define VTKFILTERSFLOWPATHS_EXPORT
Definition: vtkFiltersFlowPathsModule.h:15
vtkAMRInterpolatedVelocityField
A concrete class for obtaining the interpolated velocity values at a point in AMR data.
Definition: vtkAMRInterpolatedVelocityField.h:38
vtkFiltersFlowPathsModule.h
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkAMRInterpolatedVelocityField::New
static vtkAMRInterpolatedVelocityField * New()
vtkAMRInterpolatedVelocityField::FunctionValues
virtual int FunctionValues(vtkDataSet *ds, double *x, double *f)
Definition: vtkAMRInterpolatedVelocityField.h:83
vtkAMRInterpolatedVelocityField::SetAMRData
void SetAMRData(vtkOverlappingAMR *amr)
vtkAMRInterpolatedVelocityField::LastId
int LastId
Definition: vtkAMRInterpolatedVelocityField.h:79
vtkgl::c
const GLubyte * c
Definition: vtkgl.h:15720
vtkAbstractInterpolatedVelocityField.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkAMRInterpolatedVelocityField::~vtkAMRInterpolatedVelocityField
~vtkAMRInterpolatedVelocityField()
vtkAMRInterpolatedVelocityField::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkgl::level
GLint level
Definition: vtkgl.h:11316
vtkgl::f
GLclampf f
Definition: vtkgl.h:14181
vtkOverlappingAMR
hierarchical dataset of vtkUniformGrids
Definition: vtkOverlappingAMR.h:46
vtkAMRInterpolatedVelocityField::FindGrid
static bool FindGrid(double q[3], vtkOverlappingAMR *amrds, unsigned int &level, unsigned int &gridId)
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkAbstractInterpolatedVelocityField
An abstract class for obtaining the interpolated velocity values at a point.
Definition: vtkAbstractInterpolatedVelocityField.h:85
vtkAMRInterpolatedVelocityField::SetLastCellId
virtual void SetLastCellId(vtkIdType c, int dataindex)
q
VTKWRAPPINGJAVA_EXPORT jlong q(JNIEnv *env, jobject obj)
vtkAMRInterpolatedVelocityField::SetLastDataSet
bool SetLastDataSet(int level, int id)