#include <CollisionShapeCache.h>
|
void | clear () |
|
Shape2p5 | get (mrpt::opengl::CRenderizable &obj, float zMin, float zMax, const mrpt::poses::CPose3D &modelPose, const float modelScale, const std::optional< std::string > &modelFile=std::nullopt) |
|
|
| CollisionShapeCache ()=default |
|
Shape2p5 | processCylinderLike (const size_t actualEdgeCount, double actualRadius, float zMin, float zMax, const mrpt::poses::CPose3D &modelPose, const float modelScale) |
|
Shape2p5 | processGenericGeometry (mrpt::opengl::CRenderizable &obj, float zMin, float zMax, const mrpt::poses::CPose3D &modelPose, const float modelScale) |
|
std::optional< Shape2p5 > | processSimpleGeometries (const mrpt::opengl::CRenderizable &obj, float zMin, float zMax, const mrpt::poses::CPose3D &modelPose, const float modelScale) |
|
| ~CollisionShapeCache ()=default |
|
Definition at line 19 of file CollisionShapeCache.h.
◆ CollisionShapeCache()
mvsim::CollisionShapeCache::CollisionShapeCache |
( |
| ) |
|
|
privatedefault |
◆ ~CollisionShapeCache()
mvsim::CollisionShapeCache::~CollisionShapeCache |
( |
| ) |
|
|
privatedefault |
◆ clear()
void mvsim::CollisionShapeCache::clear |
( |
| ) |
|
|
inline |
◆ get()
Shape2p5 CollisionShapeCache::get |
( |
mrpt::opengl::CRenderizable & |
obj, |
|
|
float |
zMin, |
|
|
float |
zMax, |
|
|
const mrpt::poses::CPose3D & |
modelPose, |
|
|
const float |
modelScale, |
|
|
const std::optional< std::string > & |
modelFile = std::nullopt |
|
) |
| |
◆ Instance()
◆ processCylinderLike()
Shape2p5 CollisionShapeCache::processCylinderLike |
( |
const size_t |
actualEdgeCount, |
|
|
double |
actualRadius, |
|
|
float |
zMin, |
|
|
float |
zMax, |
|
|
const mrpt::poses::CPose3D & |
modelPose, |
|
|
const float |
modelScale |
|
) |
| |
|
private |
◆ processGenericGeometry()
Shape2p5 CollisionShapeCache::processGenericGeometry |
( |
mrpt::opengl::CRenderizable & |
obj, |
|
|
float |
zMin, |
|
|
float |
zMax, |
|
|
const mrpt::poses::CPose3D & |
modelPose, |
|
|
const float |
modelScale |
|
) |
| |
|
private |
◆ processSimpleGeometries()
std::optional< Shape2p5 > CollisionShapeCache::processSimpleGeometries |
( |
const mrpt::opengl::CRenderizable & |
obj, |
|
|
float |
zMin, |
|
|
float |
zMax, |
|
|
const mrpt::poses::CPose3D & |
modelPose, |
|
|
const float |
modelScale |
|
) |
| |
|
private |
Returns a valid shape if the geometry is recognized and shape already filled in.
Definition at line 78 of file CollisionShapeCache.cpp.
◆ cache
std::map<std::string, Entry> mvsim::CollisionShapeCache::cache |
|
private |
The documentation for this class was generated from the following files: