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) |
| 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 (TiXmlElement *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='.') |
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
|
inline |
Reimplemented in MBSim::DynamicSystemSolver.
|
inline |
| std::string MBSim::Element::getPath | ( | char | pathDelim = '.' | ) |
| delimiter | of the path |
Reimplemented in MBSim::DynamicSystem.
|
inline |
Reimplemented in MBSim::DynamicSystem, and MBSim::Object.
|
inline |
Reimplemented in MBSim::DynamicSystem, and MBSim::Object.
|
inline |
Reimplemented in MBSim::DynamicSystem, and MBSim::Object.
|
inline |
|
inlinevirtual |
Reimplemented in MBSim::RigidContour, MBSim::DynamicSystemSolver, MBSim::DynamicSystem, MBSim::Contact, MBSim::MaxwellContact, MBSim::RigidBody, MBSim::Link, MBSim::Object, MBSim::Body, MBSim::LinkMechanics, MBSim::ExtraDynamic, MBSim::Contour, MBSim::Circle, MBSim::Graph, MBSim::Frame, MBSim::Group, MBSim::RelativeRotationalSpringDamper, MBSim::SpringDamper, MBSim::Gearing, MBSim::Contour1sAnalytical, MBSim::PlaneWithFrustum, MBSim::ExternGeneralizedIO, MBSim::CircleHollow, MBSim::CircleSolid, MBSim::Sphere, MBSim::Gear, MBSim::Plane, MBSim::ContourContinuum< AT >, MBSim::LineSegment, MBSim::ContourContinuum< double >, MBSim::ContourContinuum< fmatvec::Vec >, MBSim::Line, MBSim::CompoundContour, MBSim::Contour1s, MBSim::Frustum, MBSim::Frustum2D, MBSim::Point, and MBSim::Cuboid.
|
virtual |
plots time series header
| invocing | parent class |
Reimplemented in MBSim::RigidContour, MBSim::Object, MBSim::Contour, MBSim::DynamicSystem, MBSim::DynamicSystemSolver, MBSim::ContourPairing, MBSim::JointConstraint, MBSim::RigidBody, MBSim::Contact, MBSim::Link, MBSim::MaxwellContact, MBSim::Frame, MBSim::Body, MBSim::PlotRigidBodyGroup, MBSim::Joint, MBSim::Circle, MBSim::LinkMechanics, MBSim::ExtraDynamic, MBSim::Contour1sAnalytical, MBSim::RelativeRotationalSpringDamper, MBSim::SpringDamper, MBSim::GearConstraint, MBSim::CompoundContour, MBSim::Gearing, MBSim::Cuboid, MBSim::PlotCartesianCoordinates, MBSim::ExternGeneralizedIO, MBSim::KineticExcitation, MBSim::PlotCylinderCoordinates, MBSim::Gear, MBSim::PlotNaturalCoordinates, MBSim::PlotFrame, MBSim::PlotRigidBodyGroup, MBSim::Area, MBSim::PlotFrame, MBSim::Frustum, MBSim::Frustum2D, and MBSim::ContourQuad.
|
virtual |
plots time dependent data
| simulation | time |
| simulation | time step size for derivative calculation |
Reimplemented in MBSim::RigidContour, MBSim::DynamicSystem, MBSim::Contact, MBSim::ContourPairing, MBSim::MaxwellContact, MBSim::RigidBody, MBSim::Link, MBSim::Joint, MBSim::Object, MBSim::RelativeRotationalSpringDamper, MBSim::SpringDamper, MBSim::PlotRigidBodyGroup, MBSim::Body, MBSim::LinkMechanics, MBSim::ExtraDynamic, MBSim::Contour, MBSim::Gearing, MBSim::Frame, MBSim::KineticExcitation, MBSim::ExternGeneralizedIO, MBSim::Gear, MBSim::PlotCartesianCoordinates, MBSim::Contour1sAnalytical, MBSim::PlotCylinderCoordinates, MBSim::PlotNaturalCoordinates, MBSim::PlotFrame, MBSim::PlotRigidBodyGroup, and MBSim::PlotFrame.
|
inlinevirtual |
plots time dependent data at special events
| simulation | time |
| simulation | time step size for derivative calculation |
Reimplemented in MBSim::DynamicSystem.
|
inlinevirtual |
| TODO |
Reimplemented in MBSim::DynamicSystem, and MBSim::Body.
|
inline |
| element | name |
|
inlinevirtual |
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.
Reimplemented in MBSim::Contour.
|
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.
|
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.1.1