38 namespace OpalOffset {
41 std::string(
"The \"LOCAL_CARTESIAN_OFFSET\" element defines an offset")+
42 std::string(
"in cartesian coordinates, relative to the last placed ")+
43 std::string(
"element.");
47 "LOCAL_CARTESIAN_OFFSET",
50 "x component of position of end of the offset in coordinate system of the end of the upstream element [m].");
52 "y component of position of end of the offset in coordinate system of the end of the upstream element [m].");
54 "x component of normal of end of the offset in coordinate system of the end of the upstream element [m].");
56 "y component of normal of end of the offset in coordinate system of the end of the upstream element [m].");
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
virtual ~OpalLocalCartesianOffset()
static Offset localCartesianOffset(const std::string &name, Vector_t end_position, Vector_t end_direction)
virtual void print(std::ostream &) const
Print the object.
void setElement(ElementBase *)
Assign new CLASSIC element.
virtual OpalLocalCartesianOffset * clone()
virtual void print(std::ostream &) const
ElementBase * getElement() const
Return the embedded CLASSIC element.
static const std::string doc_string
const std::string & getOpalName() const
Return object name.
std::vector< Attribute > itsAttr
The object attributes.
double getReal(const Attribute &attr)
Return real value.
OpalLocalCartesianOffset()
void registerOwnership() const