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.");
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...
T norm(const FEMVector< T > &v, int p=2)
static Offset globalCartesianOffset(std::string name, Vector_t< double, 3 > end_position, Vector_t< double, 3 > end_direction)
Factory method to make an offset in global cartesian 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
OpalGlobalCartesianOffset provides classes for making offsets between elements in a ring geometry; on...
virtual void print(std::ostream &) const
Calls print on the OpalElement.
OpalGlobalCartesianOffset()
Define mapping from enum variables to string UI parameter names.
static const std::string doc_string
virtual ~OpalGlobalCartesianOffset()
No memory allocated so does nothing.
virtual OpalGlobalCartesianOffset * clone(const std::string &name)
Inherited copy constructor.
void update()
Receive parameters from the parser and hand them off to the OpalCylindricalOffset.