Go to the documentation of this file.
60 float radius = 1.0f,
int nDivsLongitude = 20,
int nDivsLatitude = 20)
69 virtual ~CSphere()
override =
default;
83 const std::vector<BASE::array_parameter_t>& in_pts,
84 std::vector<BASE::array_point_t>& out_pts)
const override
virtual ~CSphere() override=default
void notifyChange() const
Call to enable calling renderUpdateBuffers() before the next render() rendering iteration.
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
void setNumberOfSegments(const uint32_t numSegments)
Set the number of segments of the surface/curve (higher means with greater resolution)
A solid or wire-frame sphere.
void setCovMatrix(const MATRIX &new_cov)
Like setCovMatrixAndMean(), for mean=zero.
void setQuantiles(float q)
Changes the scale of the "sigmas" for drawing the ellipse/ellipsoid (default=3, ~97 or ~98% CI); the ...
void regenerateBaseParams()
virtual 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 enableDrawSolid3D(bool v)
If set to "true", a whole ellipsoid surface will be drawn, or if set to "false" (default) it will be ...
static CMatrixFixed< double, ROWS, COLS > Identity()
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).
void setNumberDivsLongitude(int N)
bool traceRay(const mrpt::poses::CPose3D &o, double &dist) const override
Simulation of ray-trace, given a pose.
void renderUpdateBuffers() const override
Called whenever m_outdatedBuffers is true: used to re-generate OpenGL vertex buffers,...
A class that generalizes the concept of an ellipsoid to arbitrary parameterizations of uncertainty sh...
void transformFromParameterSpace(const std::vector< BASE::array_parameter_t > &in_pts, std::vector< BASE::array_point_t > &out_pts) const override
To be implemented by derived classes: maps, using some arbitrary space transformation,...
The namespace for 3D scene representation and rendering.
void setNumberDivsLatitude(int N)
Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sun Jul 19 17:54:30 UTC 2020 | |