40 std::string(
"The \"LOCAL_CYLINDRICAL_OFFSET\" element defines an offset")+
41 std::string(
"in cylindrical coordinates, relative to the last placed ")+
42 std::string(
"element. All angles are defined in the midplane.");
46 "GLOBAL_CYLINDRICAL_OFFSET",
49 "Angle between the previous element and the displacement vector.");
51 "Angle between the displacement vector and the next element.");
53 "Length of the offset.");
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
OpalOffset provides classes for making offsets between elements in a ring geometry; only condition is...
static Offset globalCylindricalOffset(std::string name, double radius_out, double phi_out, double theta_out)
Factory method to make an offset in global cylindrical polar coordinates.
void setElement(ElementBase *)
Assign new CLASSIC element.
const std::string & getOpalName() const
Return object name.
std::vector< Attribute > itsAttr
The object attributes.
virtual void print(std::ostream &) const
Print the object.
void registerOwnership() const
OpalGlobalCylindricalOffset provides classes for making global offsets in a ring geometry using polar...
OpalGlobalCylindricalOffset()
Define mapping from enum variables to string UI parameter names.
virtual void print(std::ostream &) const
Calls print on the OpalElement.
void update()
Receive parameters from the parser and hand them off to the OpalCylindricalOffset.
virtual OpalGlobalCylindricalOffset * clone(const std::string &name)
Inherited copy constructor.
static const std::string doc_string
virtual ~OpalGlobalCylindricalOffset()
No memory allocated so does nothing.