Class VisualObjectParams_Lines

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class VisualObjectParams_Lines : public virtual mrpt::viz::CVisualObject

Subclassed by mrpt::viz::CGeneralizedEllipsoidTemplate< 2 >, mrpt::viz::CGeneralizedEllipsoidTemplate< 3 >, mrpt::viz::CAxis, mrpt::viz::CBox, mrpt::viz::CColorBar, mrpt::viz::CFrustum, mrpt::viz::CGeneralizedEllipsoidTemplate< DIM >, mrpt::viz::CGridPlaneXY, mrpt::viz::CGridPlaneXZ, mrpt::viz::CMesh, mrpt::viz::CMesh3D, mrpt::viz::COctoMapVoxels, mrpt::viz::CPolyhedron, mrpt::viz::CSetOfLines, mrpt::viz::CSimpleLine, mrpt::viz::CVectorField2D, mrpt::viz::CVectorField3D

Raw access to line shader buffer data

inline const auto &shaderLinesVertexPointBuffer() const
inline const auto &shaderLinesVertexColorBuffer() const
inline auto &shaderLinesBufferMutex() const

Public Functions

VisualObjectParams_Lines() = default
inline void setLineWidth(float w)
inline float getLineWidth() const
inline void enableAntiAliasing(bool enable = true)
inline bool isAntiAliasingEnabled() const

Protected Functions

void params_serialize(mrpt::serialization::CArchive &out) const
void params_deserialize(mrpt::serialization::CArchive &in)
mrpt::math::TBoundingBoxf linesBoundingBox() const

Returns the bounding box of m_vertex_buffer_data, or empty if no lines.

Protected Attributes

mutable std::vector<mrpt::math::TPoint3Df> m_vertex_buffer_data

Line segment vertices (pairs of points form line segments)

mutable std::vector<mrpt::img::TColor> m_color_buffer_data

Per-vertex colors.

mutable mrpt::containers::NonCopiableData<std::shared_mutex> m_linesMtx

Mutex for thread-safe access to buffers.