41 mrpt::math::TPoint3D m_corner_min,m_corner_max;
45 mrpt::utils::TColor m_solidborder_color;
49 static CBoxPtr Create(const
mrpt::math::TPoint3D &corner1, const
mrpt::math::TPoint3D &corner2,
bool is_wireframe = false,
float lineWidth = 1.0 );
57 void getBoundingBox(
mrpt::math::TPoint3D &bb_min,
mrpt::math::TPoint3D &bb_max) const MRPT_OVERRIDE;
63 bool traceRay(const
mrpt::poses::CPose3D &o,
double &dist) const MRPT_OVERRIDE;
A solid or wireframe box in 3D, defined by 6 rectangular faces parallel to the planes X...
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
mrpt::utils::TColor getBoxBorderColor() const
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated) ...
A renderizable object suitable for rendering with OpenGL's display lists.
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
void setWireframe(bool is_wireframe=true)
void enableBoxBorder(bool drawBorder=true)
float getLineWidth() const
void setBoxBorderColor(const mrpt::utils::TColor &c)
bool BASE_IMPEXP traceRay(const vector< TPolygonWithPlane > &vec, const mrpt::poses::CPose3D &pose, double &dist)
Fast ray tracing method using polygons' properties.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
virtual ~CBox()
Destructor.
bool isBoxBorderEnabled() const
void getBoxCorners(mrpt::math::TPoint3D &corner1, mrpt::math::TPoint3D &corner2) const
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)