37 namespace OpalOffset {
40 "The \"GLOBAL_CARTESIAN_OFFSET\" element defines an offset in cartesian "
41 "coordinates, relative to the origin of the coordinate system.";
45 "GLOBAL_CARTESIAN_OFFSET",
48 "x component of position of end of the offset in coordinate system of the end of the upstream element.");
50 "y component of position of end of the offset in coordinate system of the end of the upstream element.");
52 "x component of normal of end of the offset in coordinate system of the end of the upstream element.");
54 "y component of normal of end of the offset in coordinate system of the end of the upstream element.");
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
virtual ~OpalGlobalCartesianOffset()
virtual OpalGlobalCartesianOffset * clone(const std::string &name)
virtual void print(std::ostream &) const
Print the object.
void setElement(ElementBase *)
Assign new CLASSIC element.
virtual void print(std::ostream &) const
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.
OpalGlobalCartesianOffset()
void registerOwnership() const
static Offset globalCartesianOffset(const std::string &name, Vector_t end_position, Vector_t end_direction)