MeshLib
 
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
 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.

Constructor & Destructor Documentation

◆ AncillaryPoints() [1/3]

MR::AncillaryPoints::AncillaryPoints ( )
default

◆ AncillaryPoints() [2/3]

MR::AncillaryPoints::AncillaryPoints ( AncillaryPoints && b)
inlinenoexcept

since this uniquely owns an ancillary object, we provide only move operations, not copy

◆ AncillaryPoints() [3/3]

MR::AncillaryPoints::AncillaryPoints ( Object & parent)
inlineexplicit

Make not-pickable object, link it to parent object.

◆ ~AncillaryPoints()

MR::AncillaryPoints::~AncillaryPoints ( )
inline

detach owned object from parent, stops owning it

Member Function Documentation

◆ addPoint() [1/2]

MRVIEWER_API void MR::AncillaryPoints::addPoint ( const Vector3f & point)

add ancillary point

◆ addPoint() [2/2]

MRVIEWER_API void MR::AncillaryPoints::addPoint ( const Vector3f & point,
const Color & color )

add ancillary point with color

◆ addPoints() [1/2]

MRVIEWER_API void MR::AncillaryPoints::addPoints ( const std::vector< Vector3f > & points)

add vector of ancillary points

◆ addPoints() [2/2]

MRVIEWER_API void MR::AncillaryPoints::addPoints ( const std::vector< Vector3f > & points,
const std::vector< Vector4f > & colors )

add vector of ancillary points with colors

◆ make()

MRVIEWER_API void MR::AncillaryPoints::make ( Object & parent)

Make not-pickable object, link it to parent object.

◆ operator=()

AncillaryPoints & MR::AncillaryPoints::operator= ( AncillaryPoints && b)
inline

◆ reset()

MRVIEWER_API void MR::AncillaryPoints::reset ( )

detach owned object from parent, stops owning it

◆ setDepthTest()

MRVIEWER_API void MR::AncillaryPoints::setDepthTest ( bool depthTest)

Set depth test.

Member Data Documentation

◆ obj

std::shared_ptr<ObjectPoints> MR::AncillaryPoints::obj

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