Public Types | Public Member Functions | Static Public Member Functions | List of all members
mvsim::WorldElementBase Class Referenceabstract

#include <WorldElementBase.h>

Inheritance diagram for mvsim::WorldElementBase:
Inheritance graph
[legend]

Public Types

using Ptr = std::shared_ptr< WorldElementBase >
 
- Public Types inherited from mvsim::Simulable
using Ptr = std::shared_ptr< Simulable >
 

Public Member Functions

virtual void loadConfigFrom (const rapidxml::xml_node< char > *root)=0
 
 WorldElementBase (World *parent)
 
virtual ~WorldElementBase ()
 
- Public Member Functions inherited from mvsim::VisualObject
void getVisualModelBoundingBox (mrpt::math::TPoint3D &bbmin, mrpt::math::TPoint3D &bbmax) const
 
WorldgetWorldObject ()
 
const WorldgetWorldObject () const
 
virtual void guiUpdate (mrpt::opengl::COpenGLScene &scene)
 
void showBoundingBox (bool show)
 
 VisualObject (World *parent)
 
virtual ~VisualObject ()
 
- Public Member Functions inherited from mvsim::Simulable
virtual void apply_force (const mrpt::math::TVector2D &force, const mrpt::math::TPoint2D &applyPoint=mrpt::math::TPoint2D(0, 0))
 
const b2Bodyb2d_body () const
 
b2Bodyb2d_body ()
 
mrpt::poses::CPose2D getCPose2D () const
 Alternative to getPose() More...
 
const std::stringgetName () const
 
mrpt::math::TPose3D getPose () const
 
mrpt::math::TTwist2D getTwist () const
 
const mrpt::math::TTwist2DgetVelocity () const
 
mrpt::math::TTwist2D getVelocityLocal () const
 
bool hadCollision () const
 
bool isInCollision () const
 
virtual void poses_mutex_lock ()=0
 
virtual void poses_mutex_unlock ()=0
 
virtual void registerOnServer (mvsim::Client &c)
 
void resetCollisionFlag ()
 
void setName (const std::string &s)
 
void setPose (const mrpt::math::TPose3D &p) const
 
void setTwist (const mrpt::math::TTwist2D &dq) const
 
virtual void simul_post_timestep (const TSimulContext &context)
 
virtual void simul_pre_timestep (const TSimulContext &context)
 

Static Public Member Functions

static Ptr factory (World *parent, const rapidxml::xml_node< char > *xml_node, const char *class_name=nullptr)
 

Additional Inherited Members

- Protected Member Functions inherited from mvsim::VisualObject
virtual mrpt::poses::CPose3D internalGuiGetVisualPose ()
 
virtual void internalGuiUpdate (mrpt::opengl::COpenGLScene &scene, bool childrenOnly=false)=0
 
bool parseVisual (const rapidxml::xml_node< char > *visual_node)
 
- Protected Attributes inherited from mvsim::VisualObject
std::shared_ptr< mrpt::opengl::CSetOfObjectsm_glBoundingBox
 
std::shared_ptr< mrpt::opengl::CSetOfObjectsm_glCustomVisual
 
int32_t m_glCustomVisualId = -1
 
Worldm_world
 
- Protected Attributes inherited from mvsim::Simulable
std::string m_name
 

Detailed Description

Definition at line 18 of file WorldElementBase.h.

Member Typedef Documentation

Definition at line 21 of file WorldElementBase.h.

Constructor & Destructor Documentation

mvsim::WorldElementBase::WorldElementBase ( World parent)
inline

Definition at line 23 of file WorldElementBase.h.

virtual mvsim::WorldElementBase::~WorldElementBase ( )
inlinevirtual

Definition at line 24 of file WorldElementBase.h.

Member Function Documentation

WorldElementBase::Ptr WorldElementBase::factory ( World parent,
const rapidxml::xml_node< char > *  xml_node,
const char *  class_name = nullptr 
)
static

Class factory: Creates a world element from XML description of type "<element class='*'>...</element>". Only if xml_node==nullptr, the world element name can be passed in class_name. Otherwise, class_name is ignored.

Definition at line 40 of file WorldElementBase.cpp.

virtual void mvsim::WorldElementBase::loadConfigFrom ( const rapidxml::xml_node< char > *  root)
pure virtual

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


mvsim
Author(s):
autogenerated on Fri May 7 2021 03:05:52