/usr/include/vtk-6.3/vtkAMRInterpolatedVelocityField.h is in libvtk6-dev 6.3.0+dfsg1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkAMRInterpolatedVelocityField.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkAMRInterpolatedVelocityField - A concrete class for obtaining
// the interpolated velocity values at a point in AMR data.
//
//
// .SECTION Description
// The main functionality supported here is the point location inside vtkOverlappingAMR data set.
#ifndef vtkAMRInterpolatedVelocityField_h
#define vtkAMRInterpolatedVelocityField_h
#include "vtkFiltersFlowPathsModule.h" // For export macro
#include "vtkAbstractInterpolatedVelocityField.h"
class vtkOverlappingAMR;
class VTKFILTERSFLOWPATHS_EXPORT vtkAMRInterpolatedVelocityField
: public vtkAbstractInterpolatedVelocityField
{
public:
vtkTypeMacro( vtkAMRInterpolatedVelocityField,
vtkAbstractInterpolatedVelocityField );
static vtkAMRInterpolatedVelocityField * New();
vtkGetMacro(AmrDataSet,vtkOverlappingAMR*);
void SetAMRData(vtkOverlappingAMR* amr);
bool GetLastDataSetLocation(unsigned int& level, unsigned int& id);
bool SetLastDataSet(int level, int id);
//Description: This function is no op. Do not call
virtual void SetLastCellId( vtkIdType c, int dataindex );
// Description:
// Set the cell id cached by the last evaluation.
virtual void SetLastCellId( vtkIdType c )
{ this->Superclass::SetLastCellId( c ); }
//Description:
// Evaluate the velocity field f at point p.
// If it succeeds, then both the last data set (this->LastDataSet) and
// the last data set location (this->LastLevel, this->LastId) will be
// set according to where p is found. If it fails, either p is out of
// bound, in which case both the last data set and the last location
// will be invlaid or, in a multi-process setting, p is inbound but not
// on the processor. In the last case, the last data set location is
// still valid
virtual int FunctionValues( double * x, double * f );
void PrintSelf( ostream & os, vtkIndent indent );
// Descriptino:
// Point location routine.
static bool FindGrid(double q[3],vtkOverlappingAMR *amrds, unsigned int& level, unsigned int& gridId);
protected:
vtkOverlappingAMR* AmrDataSet;
int LastLevel;
int LastId;
vtkAMRInterpolatedVelocityField();
~vtkAMRInterpolatedVelocityField();
virtual int FunctionValues( vtkDataSet * ds, double * x, double * f )
{ return this->Superclass::FunctionValues( ds, x, f ); }
private:
vtkAMRInterpolatedVelocityField(const vtkAMRInterpolatedVelocityField&); //Not implemented
void operator = ( const vtkAMRInterpolatedVelocityField& ); // Not implemented.
};
#endif
|