Class MagneticFieldGrid

Inheritance Relationships

Base Type

Class Documentation

class MagneticFieldGrid : public MagneticField

Magnetic field on a periodic (or reflective), cartesian grid with trilinear interpolation.

This class wraps a Grid3f to serve as a MagneticField.

Public Functions

MagneticFieldGrid(ref_ptr<Grid3f> grid)
void setGrid(ref_ptr<Grid3f> grid)
ref_ptr<Grid3f> getGrid()
Vector3d getField(const Vector3d &position) const
virtual Vector3d getField(const Vector3d &position, double z) const
size_t addReference() const
size_t removeReference() const
int removeReferenceNoDelete() const
size_t getReferenceCount() const

Protected Attributes

size_t _referenceCount