MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::AncillaryPoints Struct Reference

Helper class to manage ancillary visual points used by plugins. More...

#include <MRAncillaryPoints.h>

Public Member Functions

 AncillaryPoints ()=default
 
 AncillaryPoints (AncillaryPoints &&b) noexcept=default
 since this uniquely owns an ancillary object, we provide only move operations, not copy
 
AncillaryPointsoperator= (AncillaryPoints &&b)
 
 AncillaryPoints (Object &parent)
 Make not-pickable object, link it to parent object.
 
MRVIEWER_API void make (Object &parent)
 Make not-pickable object, link it to parent object.
 
MRVIEWER_API void reset ()
 detach owned object from parent, stops owning it
 
 ~AncillaryPoints ()
 detach owned object from parent, stops owning it
 
MRVIEWER_API void addPoint (const Vector3f &point)
 add ancillary point
 
MRVIEWER_API void addPoint (const Vector3f &point, const Color &color)
 add ancillary point with color
 
MRVIEWER_API void addPoints (const std::vector< Vector3f > &points)
 add vector of ancillary points
 
MRVIEWER_API void addPoints (const std::vector< Vector3f > &points, const std::vector< Vector4f > &colors)
 add vector of ancillary points with colors
 
MRVIEWER_API void setDepthTest (bool depthTest)
 Set depth test.
 

Public Attributes

std::shared_ptr< ObjectPointsobj
 

Detailed Description

Helper class to manage ancillary visual points used by plugins.


The documentation for this struct was generated from the following file: