37 namespace OpalOffset {
40 std::string(
"The \"GLOBAL_CARTESIAN_OFFSET\" element defines an offset")+
41 std::string(
"in cartesian coordinates, relative to the last placed ")+
42 std::string(
"element.");
46 "GLOBAL_CARTESIAN_OFFSET",
49 "x component of position of end of the offset in coordinate system of the end of the upstream element.");
51 "y component of position of end of the offset in coordinate system of the end of the upstream element.");
53 "x component of normal of end of the offset in coordinate system of the end of the upstream element.");
55 "y component of normal of end of the offset in coordinate system of the end of the upstream element.");
Interface for basic beam line object.
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
ValueFlag
Switch for value desired on ATTLIST command.
std::vector< Attribute > itsAttr
The object attributes (see Attribute.hh).
static const std::string doc_string
virtual void print(std::ostream &) const
void fillRegisteredAttributes(const ElementBase &base, ValueFlag flag)
const std::string & getOpalName() const
Return object name.
OpalGlobalCartesianOffset()
Base class for all beam line elements.
static Offset globalCartesianOffset(std::string name, Vector_t end_position, Vector_t end_direction)
void setElement(ElementBase *)
Assign new CLASSIC element.
void registerOwnership() const
virtual ElementBase * makeAlignWrapper()
Allow misalignment.
virtual ~OpalGlobalCartesianOffset()
virtual OpalGlobalCartesianOffset * clone(const std::string &name)
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
static AttCell * registerRealAttribute(const std::string &name)
Register a ``real'' element attribute.
virtual void print(std::ostream &) const
Print the object.