Go to the documentation of this file.
64 float lineWidth = 1.0);
129 float lineWidth = 1.0);
void enableBoxBorder(bool drawBorder=true)
virtual ~CBox()
Destructor
float getLineWidth() const
A solid or wireframe box in 3D, defined by 6 rectangular faces parallel to the planes X,...
A renderizable object suitable for rendering with OpenGL's display lists.
CBox()
Basic empty constructor.
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated)
bool isBoxBorderEnabled() const
mrpt::math::TPoint3D m_corner_max
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
bool m_draw_border
Draw line borders to solid box with the given linewidth (default: true)
void getBoxCorners(mrpt::math::TPoint3D &corner1, mrpt::math::TPoint3D &corner2) const
void setLineWidth(float width)
std::shared_ptr< CBox > Ptr
bool traceRay(const mrpt::poses::CPose3D &o, double &dist) const override
Ray tracing.
mrpt::img::TColor getBoxBorderColor() const
mrpt::math::TPoint3D m_corner_min
Corners coordinates.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
float m_lineWidth
For wireframe only.
mrpt::img::TColor m_solidborder_color
Color of the solid box borders.
void setBoxBorderColor(const mrpt::img::TColor &c)
void render_dl() const override
Render.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
bool m_wireframe
true: wireframe, false: solid
void setBoxCorners(const mrpt::math::TPoint3D &corner1, const mrpt::math::TPoint3D &corner2)
Set the position and size of the box, from two corners in 3D.
static Ptr Create(Args &&... args)
void getBoundingBox(mrpt::math::TPoint3D &bb_min, mrpt::math::TPoint3D &bb_max) const override
Evaluates the bounding box of this object (including possible children) in the coordinate frame of th...
void setWireframe(bool is_wireframe=true)
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |