38 "The \"SBEND3D\" element defines a sector bending magnet.") {
40 (
"FMAPFN",
"The name of the field map.");
42 "Scale the field map up or down by this factor (default 1. is T).");
44 "Units for length coordinates (default 1. is mm).");
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
std::string getString(const Attribute &attr)
Get string value.
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.
ElementBase * getElement() const
Return the embedded CLASSIC element.
void setElement(ElementBase *)
Assign new CLASSIC element.
std::vector< Attribute > itsAttr
The object attributes.
Sector bending magnet from a 3D field map.
void setFieldUnits(double fieldUnits)
Set the scale factor.
void setFieldMapFileName(const std::string &name)
Set the field map file.
void setLengthUnits(double lengthUnits)
Set the scale factor.
void registerOwnership() const
OpalSBend3D provides user interface information for the SBEND3D object.
virtual void update()
Update the SBend3D with new parameters from UI parser.
virtual OpalSBend3D * clone(const std::string &name)
Inherited copy constructor.
virtual ~OpalSBend3D()
Destructor does nothing.
OpalSBend3D()
Default constructor initialises UI parameters.