#include <GlobalGridWrapper.h>
Public Member Functions | |
Dimensions | dimensions () const override |
void | dump () const override |
LocalPoint | fromGridFrame (double a, double b, double c) const override |
find grid coordinates for point. For debugging and validation only. More... | |
GlobalGridWrapper (const GloballyPositioned< float > &vol, const std::string &fileName) | |
LocalPoint | nodePosition (int i, int j, int k) const override |
Position of node in local frame. More... | |
LocalVector | nodeValue (int i, int j, int k) const override |
Field value at node. More... | |
void | toGridFrame (const LocalPoint &p, double &a, double &b, double &c) const override |
find grid coordinates for point. For debugging and validation only. More... | |
LocalVector | valueInTesla (const LocalPoint &p) const override |
Interpolated field value at given point. More... | |
Public Member Functions inherited from MFGrid | |
const GloballyPositioned< float > & | frame () const |
Local reference frame. More... | |
virtual Indexes | index (const LocalPoint &p) const |
MFGrid (const GloballyPositioned< float > &vol) | |
~MFGrid () override | |
Public Member Functions inherited from MagneticFieldProvider< float > | |
virtual LocalVectorType | derivativeInTeslaPerMeter (const LocalPointType &p, int N) const |
virtual int | hasDerivatives () const |
virtual LocalVectorType | valueInTesla (const LocalPointType &p) const =0 |
virtual | ~MagneticFieldProvider () |
Private Attributes | |
MagneticFieldGrid * | theRealOne |
Additional Inherited Members | |
Public Types inherited from MFGrid | |
typedef GloballyPositioned< float >::GlobalPoint | GlobalPoint |
typedef GloballyPositioned< float >::GlobalVector | GlobalVector |
typedef GloballyPositioned< float >::LocalPoint | LocalPoint |
typedef GloballyPositioned< float >::LocalVector | LocalVector |
Public Types inherited from MagneticFieldProvider< float > | |
typedef Point3DBase< float, GlobalTag > | GlobalPointType |
typedef Vector3DBase< float, GlobalTag > | GlobalVectorType |
typedef Point3DBase< float, LocalTag > | LocalPointType |
typedef Vector3DBase< float, LocalTag > | LocalVectorType |
Generic interpolator that is a wrapper of MagneticFieldGrid, i.e. non-specialized/optimized for each kind of grid.
Definition at line 21 of file GlobalGridWrapper.h.
GlobalGridWrapper::GlobalGridWrapper | ( | const GloballyPositioned< float > & | vol, |
const std::string & | fileName | ||
) |
Definition at line 7 of file GlobalGridWrapper.cc.
References MagneticFieldGrid::load(), and theRealOne.
|
overridevirtual |
Implements MFGrid.
Definition at line 51 of file GlobalGridWrapper.cc.
|
overridevirtual |
|
overridevirtual |
find grid coordinates for point. For debugging and validation only.
Implements MFGrid.
Definition at line 45 of file GlobalGridWrapper.cc.
|
overridevirtual |
Position of node in local frame.
Implements MFGrid.
Definition at line 57 of file GlobalGridWrapper.cc.
|
overridevirtual |
Field value at node.
Implements MFGrid.
Definition at line 63 of file GlobalGridWrapper.cc.
|
overridevirtual |
find grid coordinates for point. For debugging and validation only.
Implements MFGrid.
Definition at line 39 of file GlobalGridWrapper.cc.
|
overridevirtual |
Interpolated field value at given point.
Implements MFGrid.
Definition at line 15 of file GlobalGridWrapper.cc.
References MFGrid::frame(), runTauDisplay::gp, MagneticFieldGrid::gridType(), MagneticFieldGrid::interpolateAtPoint(), theRealOne, and GloballyPositioned< T >::toGlobal().
|
private |
Definition at line 43 of file GlobalGridWrapper.h.
Referenced by GlobalGridWrapper(), and valueInTesla().