26 #include <hdf5serie/vectorserie.h>
27 #include "mbsimtinyxml/tinyxml-src/tinyxml.h"
29 #define MBSIMNS "{http://mbsim.berlios.de/MBSim}"
31 #include "mbsim/mbsim_event.h"
33 #ifdef HAVE_OPENMBVCPPINTERFACE
48 class ObjectInterface;
101 class DynamicSystemSolver;
130 virtual std::string
getType()
const {
return "Element"; }
142 virtual void plot(
double t,
double dt = 1);
166 size_t i = name.length() - 1;
168 while ((name[i-1] !=
'/') and (i > 0)) {
171 return name.substr(i, name.length() - i);
177 void setName(
const std::string &str) { name = str; }
232 virtual void initializeUsingXML(TiXmlElement *element);
240 if (dynamic_cast<T*>(e))
243 throw MBSimError(
"ERROR in "+
getName()+
" (Element::getByPath): Element \""+path+
"\" not found or not of wanted type!");
252 static double getDouble(TiXmlElement *e);
253 static int getInt(TiXmlElement *e);
254 static bool getBool(TiXmlElement *e);
255 static fmatvec::Vec getVec(TiXmlElement *e,
int rows=0);
256 static fmatvec::Mat getMat(TiXmlElement *e,
int rows=0,
int cols=0);
257 static fmatvec::SqrMat getSqrMat(TiXmlElement *e,
int size=0);
258 static fmatvec::SymMat getSymMat(TiXmlElement *e,
int size=0);
260 #ifdef HAVE_OPENMBVCPPINTERFACE
261 virtual OpenMBV::Group* getOpenMBVGrp() {
return 0;}
264 virtual Element* getParent() {
return parent;}
265 virtual const Element* getParent()
const {
return parent;}
266 virtual void setParent(
Element* parent_) {parent = parent_;}
271 std::string
getPath(
char pathDelim=
'.');
306 void updatePlotFeatures();