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:
40  vtkTypeMacro( vtkAMRInterpolatedVelocityField,
42 
44 
45  vtkGetMacro(AmrDataSet,vtkOverlappingAMR*);
46  void SetAMRData(vtkOverlappingAMR* amr);
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
#define VTKFILTERSFLOWPATHS_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
An abstract class for obtaining the interpolated velocity values at a point.
int vtkIdType
Definition: vtkType.h:275
virtual int FunctionValues(double *x, double *f)=0
virtual int FunctionValues(vtkDataSet *ds, double *x, double *f)
void PrintSelf(ostream &os, vtkIndent indent)
virtual int FunctionValues(double *x, double *f)=0
a simple class to control print indentation
Definition: vtkIndent.h:38
hierarchical dataset of vtkUniformGrids
VTKWRAPPINGJAVA_EXPORT jlong q(JNIEnv *env, jobject obj)
static vtkObject * New()
A concrete class for obtaining the interpolated velocity values at a point in AMR data...