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].");
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...
ElementBase * getElement() const
Return the embedded CLASSIC element.
void setElement(ElementBase *)
Assign new CLASSIC element.
const std::string & getOpalName() const
Return object name.
std::vector< Attribute > itsAttr
The object attributes.
static Offset localCartesianOffset(const std::string &name, Vector_t end_position, Vector_t end_direction)
Factory method to make an offset in cartesian coordinates local to the end of the previous element.
virtual void print(std::ostream &) const
Print the object.
void registerOwnership() const
OpalLocalCartesianOffset provides classes for making offsets between elements in a ring geometry; onl...
void update()
Receive parameters from the parser and hand them off to the OpalCylindricalOffset.
OpalLocalCartesianOffset()
Define mapping from enum variables to string UI parameter names.
virtual ~OpalLocalCartesianOffset()
No memory allocated so does nothing.
virtual void print(std::ostream &) const
Calls print on the OpalElement.
virtual OpalLocalCartesianOffset * clone()
Inherited copy constructor.
static const std::string doc_string