mbsim  4.0.0
MBSim Kernel
MBSim::OpenMBVCoilSpring Class Reference
Inheritance diagram for MBSim::OpenMBVCoilSpring:
[legend]

Public Types

enum  Type { tube , scaledTube , polyline }
 
enum  ColorRepresentation {
  none =0 , deflection , tensileForce , compressiveForce ,
  absoluteForce
}
 

Public Member Functions

 OpenMBVCoilSpring (double r_=1, double cr_=-1, double sf_=1, double n_=3, double l_=-1, OpenMBVCoilSpring::Type type_=OpenMBVCoilSpring::tube, unsigned int cR=0, double minCol=0, double maxCol=1, const fmatvec::Vec3 &dc=fmatvec::Vec3(std::vector< double >{-1, 1, 1}), double tp=0, double ps=0, double lw=0)
 
void initializeUsingXML (xercesc::DOMElement *element)
 
std::shared_ptr< OpenMBV::CoilSpringcreateOpenMBV ()
 
- Public Member Functions inherited from MBSim::OpenMBVDynamicColoredBody
 OpenMBVDynamicColoredBody (unsigned cR_=0, double minCol_=0, double maxCol_=1, const fmatvec::Vec3 &dc=fmatvec::Vec3(std::vector< double >{-1, 1, 1}), double tp=0, double ps=0, double lw=0)
 
void initializeUsingXML (xercesc::DOMElement *element)
 
unsigned int getColorRepresentation () const
 
- Public Member Functions inherited from MBSim::OpenMBVColoredBody
 OpenMBVColoredBody (const fmatvec::Vec3 &dc_=fmatvec::Vec3(std::vector< double >{-1, 1, 1}), double tp_=0, double ps_=0, double lw_=0)
 
void initializeUsingXML (xercesc::DOMElement *element)
 
template<class T >
std::shared_ptr< T > createOpenMBV ()
 
- Public Member Functions inherited from MBSim::OpenMBVBody
void initializeUsingXML (xercesc::DOMElement *element)
 

Protected Member Functions

void initializeObject (const std::shared_ptr< OpenMBV::CoilSpring > &object)
 
- Protected Member Functions inherited from MBSim::OpenMBVDynamicColoredBody
void initializeObject (const std::shared_ptr< OpenMBV::DynamicColoredBody > &object)
 
- Protected Member Functions inherited from MBSim::OpenMBVColoredBody
void initializeObject (const std::shared_ptr< OpenMBV::DynamicColoredBody > &object)
 
- Protected Member Functions inherited from MBSim::OpenMBVBody
void initializeObject (const std::shared_ptr< OpenMBV::Body > &object)
 

Protected Attributes

double r
 
double cr
 
double sf
 
double n
 
double l
 
OpenMBVCoilSpring::Type type
 
- Protected Attributes inherited from MBSim::OpenMBVDynamicColoredBody
unsigned int cR
 
double minCol
 
double maxCol
 
std::vector< std::string > cRL
 
- Protected Attributes inherited from MBSim::OpenMBVColoredBody
fmatvec::Vec3 dc
 
double tp
 
double ps
 
double lw
 
- Protected Attributes inherited from MBSim::OpenMBVBody
std::string id
 

The documentation for this class was generated from the following files: