Class CDisk

Inheritance Relationships

Base Types

Class Documentation

class CDisk : public virtual mrpt::viz::CVisualObject, public mrpt::viz::VisualObjectParams_Triangles

A planar disk in the XY plane.

../../output_staging/generated/doxygen/xml/preview_CDisk.png

See also

opengl::Scene

Public Functions

inline void setDiskRadius(float outRadius, float inRadius = 0)
inline float getInRadius() const
inline float getOutRadius() const
inline void setSlicesCount(uint32_t N)

Default=50

virtual mrpt::math::TBoundingBoxf internalBoundingBoxLocal() const override

Evaluates the bounding box of this object (including possible children) in the coordinate frame of the object parent.

virtual bool traceRay(const mrpt::poses::CPose3D &o, double &dist) const override

Ray tracing

CDisk() = default

Constructor

inline CDisk(float rOut, float rIn, uint32_t slices = 50)
~CDisk() override = default

Private, virtual destructor: only can be deleted from smart pointers

Protected Attributes

float m_radiusIn = 0
float m_radiusOut = 1
uint32_t m_nSlices = 50