Go to the documentation of this file.
9 #ifndef opengl_CSphere_H
10 #define opengl_CSphere_H
71 float radius,
int nDivsLongitude = 20,
int nDivsLatitude = 20);
89 float radius = 1.0f,
int nDivsLongitude = 20,
int nDivsLatitude = 20)
bool m_keepRadiusIndependentEyeDistance
std::shared_ptr< CSphere > Ptr
A solid or wire-frame sphere.
A renderizable object suitable for rendering with OpenGL's display lists.
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
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...
GLdouble GLdouble GLdouble r
CSphere(float radius=1.0f, int nDivsLongitude=20, int nDivsLatitude=20)
Constructor.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
bool should_skip_display_list_cache() const override
virtual ~CSphere()
Private, virtual destructor: only can be deleted from smart pointers.
void enableRadiusIndependentOfEyeDistance(bool v=true)
void setNumberDivsLongitude(int N)
bool traceRay(const mrpt::poses::CPose3D &o, double &dist) const override
Ray tracing.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
static Ptr Create(Args &&... args)
void render_dl() const override
Render.
void setNumberDivsLatitude(int N)
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 | |