Class PeriodicMagneticField

Inheritance Relationships

Base Type

Class Documentation

class PeriodicMagneticField : public MagneticField

Magnetic field decorator implementing periodic fields.

Public Functions

PeriodicMagneticField(ref_ptr<MagneticField> field, const Vector3d&)
PeriodicMagneticField(ref_ptr<MagneticField> field, const Vector3d&, const Vector3d &origin, bool reflective)
Vector3d &getOrigin()
void setOrigin(const Vector3d &origin)
Vector3d &getExtends()
void setExtends(const Vector3d &origin)
bool isReflective()
void setReflective(bool reflective)
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