MBSim |
Project Page |
basic class of MBSim mainly for plotting More...
#include <element.h>
Public Member Functions | |
| Element (const std::string &name) | |
| constructor | |
| virtual | ~Element () |
| destructor | |
| virtual void | initDataInterfaceBase (DynamicSystemSolver *parentds) |
| TODO. | |
| virtual std::string | getType () const |
| virtual void | setDynamicSystemSolver (DynamicSystemSolver *sys) |
| sets the used dynamics system solver to the element | |
| virtual void | plot (double t, double dt=1) |
| plots time dependent data | |
| virtual void | plotAtSpecialEvent (double t, double dt=1) |
| plots time dependent data at special events | |
| virtual void | closePlot () |
| closes plot file | |
| const std::string & | getName () const |
| const std::string | getShortName () const |
| void | setName (const std::string &str) |
| DynamicSystemSolver * | getDynamicSystemSolver () |
| virtual void | init (InitStage stage) |
| plots time series header | |
| virtual void | createPlotGroup () |
| creates the plotGroup for H5-output | |
| H5::Group * | getPlotGroup () |
| virtual void | setPlotFeature (PlotFeature pf, PlotFeatureStatus value) |
| Set a plot feature. | |
| void | setPlotFeatureForChildren (PlotFeature pf, PlotFeatureStatus value) |
| Set a plot feature for the children of this object. | |
| void | setPlotFeatureRecursive (PlotFeature pf, PlotFeatureStatus value) |
| Set a plot feature for this object and the children of this object. | |
| PlotFeatureStatus | getPlotFeature (PlotFeature pf) |
| PlotFeatureStatus | getPlotFeatureForChildren (PlotFeature pf) |
| virtual void | initializeUsingXML (MBXMLUtils::TiXmlElement *element) |
| virtual MBXMLUtils::TiXmlElement * | writeXMLFile (MBXMLUtils::TiXmlNode *element) |
| template<class T > | |
| T * | getByPath (std::string path) |
| a general element access | |
| virtual Element * | getByPathSearch (std::string path) |
| a general element search by path | |
| virtual Element * | getParent () |
| virtual const Element * | getParent () const |
| virtual void | setParent (Element *parent_) |
| std::string | getPath (char pathDelim='.') |
| std::string | getXMLPath (MBSim::Element *ref=0, bool rel=false) |
Static Public Member Functions | |
| static double | getDouble (MBXMLUtils::TiXmlElement *e) |
| static int | getInt (MBXMLUtils::TiXmlElement *e) |
| static bool | getBool (MBXMLUtils::TiXmlElement *e) |
| static fmatvec::Vec3 | getVec3 (MBXMLUtils::TiXmlElement *e) |
| static fmatvec::Vec | getVec (MBXMLUtils::TiXmlElement *e, int rows=0) |
| static fmatvec::Mat3xV | getMat3xV (MBXMLUtils::TiXmlElement *e, int cols=0) |
| static fmatvec::Mat | getMat (MBXMLUtils::TiXmlElement *e, int rows=0, int cols=0) |
| static fmatvec::SqrMat3 | getSqrMat3 (MBXMLUtils::TiXmlElement *e) |
| static fmatvec::SqrMat | getSqrMat (MBXMLUtils::TiXmlElement *e, int size=0) |
| static fmatvec::SymMat3 | getSymMat3 (MBXMLUtils::TiXmlElement *e) |
| static fmatvec::SymMat | getSymMat (MBXMLUtils::TiXmlElement *e, int size=0) |
Protected Member Functions | |
| void | updatePlotFeatures () |
Protected Attributes | |
| Element * | parent |
| std::string | name |
| name of element | |
| DynamicSystemSolver * | ds |
| dynamic system | |
| H5::VectorSerie< double > * | plotVectorSerie |
| time series | |
| std::vector< double > | plotVector |
| one entry of time series | |
| std::vector< std::string > | plotColumns |
| columns of time series | |
| H5::Group * | plotGroup |
| associated plot group | |
Private Attributes | |
| PlotFeatureStatus | plotFeature [LASTPLOTFEATURE] |
| plot feature | |
| PlotFeatureStatus | plotFeatureForChildren [LASTPLOTFEATURE] |
basic class of MBSim mainly for plotting
| DynamicSystemSolver* MBSim::Element::getDynamicSystemSolver | ( | ) | [inline] |
Reimplemented in MBSim::DynamicSystemSolver.
| const std::string& MBSim::Element::getName | ( | ) | const [inline] |
| std::string MBSim::Element::getPath | ( | char | pathDelim = '.' | ) |
| delimiter | of the path |
Reimplemented in MBSim::DynamicSystem.
| PlotFeatureStatus MBSim::Element::getPlotFeature | ( | PlotFeature | pf | ) | [inline] |
Reimplemented in MBSim::DynamicSystem, and MBSim::Object.
Reimplemented in MBSim::DynamicSystem, and MBSim::Object.
| H5::Group* MBSim::Element::getPlotGroup | ( | ) | [inline] |
Reimplemented in MBSim::DynamicSystem, and MBSim::Object.
| const std::string MBSim::Element::getShortName | ( | ) | const [inline] |
| virtual std::string MBSim::Element::getType | ( | ) | const [inline, virtual] |
Reimplemented in MBSim::RigidContour, MBSim::JointConstraint, MBSim::DynamicSystemSolver, MBSim::FixedRelativeFrame, MBSim::StateDependentKinematicConstraint, MBSim::DynamicSystem, MBSim::TimeDependentKinematicConstraint, MBSim::Contact, MBSim::Joint, MBSim::SingleContact, MBSim::KineticExcitation, MBSim::RigidBody, MBSim::StateDependentKinematicExcitation, MBSim::Link, MBSim::Object, MBSim::TimeDependentKinematicExcitation, MBSim::Body, MBSim::LinkMechanics, MBSim::GearConstraint, MBSim::Contour, MBSim::Circle, MBSim::Graph, MBSim::Frame, MBSim::Group, MBSim::SpringDamper, MBSim::RelativeRotationalSpringDamper, MBSim::PolynomialFrustum, MBSim::Gearing, MBSim::Contour1sAnalytical, MBSim::PlaneWithFrustum, MBSim::ExternGeneralizedIO, MBSim::CircleHollow, MBSim::CircleSolid, MBSim::Sphere, MBSim::Gear, MBSim::Plane, MBSim::ContourContinuum< AT >, MBSim::LineSegment, MBSim::Rectangle, MBSim::ContourContinuum< double >, MBSim::ContourContinuum< fmatvec::Vec >, MBSim::Line, MBSim::CompoundContour, MBSim::Contour1s, MBSim::Frustum, MBSim::Frustum2D, MBSim::Edge, MBSim::Point, MBSim::Cuboid, and MBSim::Room.
| virtual void MBSim::Element::init | ( | InitStage | stage | ) | [virtual] |
plots time series header
| invocing | parent class |
Reimplemented in MBSim::RigidContour, MBSim::InverseKineticsJoint, MBSim::Object, MBSim::JointConstraint, MBSim::FixedRelativeFrame, MBSim::Contour, MBSim::StateDependentKinematicConstraint, MBSim::DynamicSystem, MBSim::DynamicSystemSolver, MBSim::TimeDependentKinematicConstraint, MBSim::Contact, MBSim::NaturalCoordinatesObserver, MBSim::RigidBody, MBSim::KinematicConstraint, MBSim::SingleContact, MBSim::CylinderCoordinatesObserver, MBSim::Link, MBSim::Frame, MBSim::RelativeKinematicsObserver, MBSim::Room, MBSim::Body, MBSim::CartesianCoordinatesObserver, MBSim::Joint, MBSim::Circle, MBSim::LinkMechanics, MBSim::CompoundContour, MBSim::Contour1sAnalytical, MBSim::Cuboid, MBSim::SpringDamper, MBSim::PolynomialFrustum, MBSim::RelativeRotationalSpringDamper, MBSim::GearConstraint, MBSim::IsotropicRotationalSpringDamper, MBSim::Gearing, MBSim::KineticExcitation, MBSim::ExternGeneralizedIO, MBSim::Gear, MBSim::RigidBodyGroupObserver, MBSim::Rectangle, MBSim::CoordinatesObserver, MBSim::RigidBodyObserver, MBSim::KinematicExcitation, MBSim::Frustum, MBSim::Frustum2D, MBSim::KinematicsObserver, MBSim::FrameObserver, MBSim::ContourQuad, and MBSim::Observer.
| virtual void MBSim::Element::plot | ( | double | t, |
| double | dt = 1 |
||
| ) | [virtual] |
plots time dependent data
| simulation | time |
| simulation | time step size for derivative calculation |
Reimplemented in MBSim::RigidContour, MBSim::DynamicSystem, MBSim::Contact, MBSim::SingleContact, MBSim::RigidBody, MBSim::NaturalCoordinatesObserver, MBSim::Link, MBSim::Joint, MBSim::CylinderCoordinatesObserver, MBSim::Object, MBSim::RelativeKinematicsObserver, MBSim::SpringDamper, MBSim::CartesianCoordinatesObserver, MBSim::RelativeRotationalSpringDamper, MBSim::Body, MBSim::LinkMechanics, MBSim::KineticExcitation, MBSim::Contour, MBSim::Gearing, MBSim::Frame, MBSim::ExternGeneralizedIO, MBSim::Gear, MBSim::Contour1sAnalytical, MBSim::KinematicExcitation, MBSim::Cuboid, MBSim::RigidBodyGroupObserver, MBSim::CoordinatesObserver, MBSim::RigidBodyObserver, MBSim::CompoundContour, MBSim::KinematicsObserver, MBSim::FrameObserver, and MBSim::Observer.
| virtual void MBSim::Element::plotAtSpecialEvent | ( | double | t, |
| double | dt = 1 |
||
| ) | [inline, virtual] |
plots time dependent data at special events
| simulation | time |
| simulation | time step size for derivative calculation |
Reimplemented in MBSim::DynamicSystem.
| virtual void MBSim::Element::setDynamicSystemSolver | ( | DynamicSystemSolver * | sys | ) | [inline, virtual] |
sets the used dynamics system solver to the element
| pointer | to the dynamic system solver of which the element is part of |
Reimplemented in MBSim::DynamicSystem, MBSim::Body, and MBSim::Contact.
| void MBSim::Element::setName | ( | const std::string & | str | ) | [inline] |
| element | name |
| virtual void MBSim::Element::setPlotFeature | ( | PlotFeature | pf, |
| PlotFeatureStatus | value | ||
| ) | [inline, virtual] |
Set a plot feature.
Set the plot feature pf of this object to enabled, disabled or unset. If unset, this object uses the value of the plot feature pf of its parent object.
| void MBSim::Element::setPlotFeatureForChildren | ( | PlotFeature | pf, |
| PlotFeatureStatus | value | ||
| ) | [inline] |
Set a plot feature for the children of this object.
Set the plot feature pf of all children which plot feature is unset to enabled, disabled or unset.
| void MBSim::Element::setPlotFeatureRecursive | ( | PlotFeature | pf, |
| PlotFeatureStatus | value | ||
| ) | [inline] |
Set a plot feature for this object and the children of this object.
This is a convenience function. It simply calls setPlotFeature and setPlotFeatureForChildren.
1.8.0