Go to the documentation of this file.
12 #include <mrpt/core/optional_ref.h>
13 #include <mrpt/math/TBoundingBox.h>
14 #include <mrpt/opengl/COpenGLScene.h>
15 #include <mrpt/opengl/opengl_frwds.h>
16 #include <mrpt/poses/CPose3D.h>
39 World*
parent,
bool insertCustomVizIntoViz =
true,
bool insertCustomVizIntoPhysical =
true);
48 const mrpt::optional_ref<mrpt::opengl::COpenGLScene>& viz,
49 const mrpt::optional_ref<mrpt::opengl::COpenGLScene>& physical);
85 const mrpt::optional_ref<mrpt::opengl::COpenGLScene>& viz,
86 const mrpt::optional_ref<mrpt::opengl::COpenGLScene>& physical,
87 bool childrenOnly =
false) = 0;
90 const mrpt::opengl::CRenderizable::Ptr& glModel,
const mrpt::poses::CPose3D& modelPose = {},
91 const float modelScale = 1.0f,
const std::string& modelName =
"group",
92 const std::optional<std::string>& modelURI = std::nullopt,
93 const bool initialShowBoundingBox =
false);
const bool insertCustomVizIntoPhysical_
int32_t glCustomVisualId_
static void FreeOpenGLResources()
std::optional< Shape2p5 > collisionShape_
void addCustomVisualization(const mrpt::opengl::CRenderizable::Ptr &glModel, const mrpt::poses::CPose3D &modelPose={}, const float modelScale=1.0f, const std::string &modelName="group", const std::optional< std::string > &modelURI=std::nullopt, const bool initialShowBoundingBox=false)
bool implParseVisual(const rapidxml::xml_node< char > &visual_node)
Called by parseVisual once per "visual" block.
const bool insertCustomVizIntoViz_
void setCollisionShape(const Shape2p5 &cs)
virtual void guiUpdate(const mrpt::optional_ref< mrpt::opengl::COpenGLScene > &viz, const mrpt::optional_ref< mrpt::opengl::COpenGLScene > &physical)
VisualObject(World *parent, bool insertCustomVizIntoViz=true, bool insertCustomVizIntoPhysical=true)
void showCollisionShape(bool show)
static double GeometryEpsilon
const std::optional< Shape2p5 > & collisionShape() const
const World * parent() const
std::shared_ptr< mrpt::opengl::CSetOfObjects > glCollision_
bool parseVisual(const rapidxml::xml_node< char > &rootNode)
Returns true if there is at least one <visual>...</visual> entry.
virtual void internalGuiUpdate(const mrpt::optional_ref< mrpt::opengl::COpenGLScene > &viz, const mrpt::optional_ref< mrpt::opengl::COpenGLScene > &physical, bool childrenOnly=false)=0
std::shared_ptr< mrpt::opengl::CSetOfObjects > glCustomVisual_
bool customVisualVisible() const
mvsim
Author(s):
autogenerated on Wed May 28 2025 02:13:08