MeshLib Documentation
Loading...
Searching...
No Matches
MR::AncillaryLines Struct Reference

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

#include <MRAncillaryLines.h>

Public Member Functions

 AncillaryLines ()=default
 
 AncillaryLines (AncillaryLines &&b) noexcept
 since this uniquely owns an ancillary object, we provide only move operations, not copy
 
AncillaryLinesoperator= (AncillaryLines &&b)
 
 AncillaryLines (AncillaryLines &b)=default
 
 AncillaryLines (Object &parent, const Contours3f &contours={})
 Make not-pickable ancillary object, link it to parent object, and set line geometry.
 
MRVIEWER_API void make (Object &parent, const Contours3f &contours={})
 Make not-pickable ancillary object, link it to parent object, and set line geometry.
 
MRVIEWER_API void reset ()
 detach owned object from parent, stops owning it
 
 ~AncillaryLines ()
 detach owned object from parent, stops owning it
 
MRVIEWER_API void setContours (const Contours3f &contours)
 Set line geometry.
 
MRVIEWER_API void resetContours ()
 Reset line geometry.
 
MRVIEWER_API void setDepthTest (bool depthTest)
 Set depth test.
 

Public Attributes

std::shared_ptr< ObjectLinesobj
 

Detailed Description

Helper class to manage ancillary visual lines used by plugins.

Constructor & Destructor Documentation

◆ AncillaryLines() [1/4]

MR::AncillaryLines::AncillaryLines ( )
default

◆ AncillaryLines() [2/4]

MR::AncillaryLines::AncillaryLines ( AncillaryLines && b)
inlinenoexcept

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

◆ AncillaryLines() [3/4]

MR::AncillaryLines::AncillaryLines ( AncillaryLines & b)
default

◆ AncillaryLines() [4/4]

MR::AncillaryLines::AncillaryLines ( Object & parent,
const Contours3f & contours = {} )
inlineexplicit

Make not-pickable ancillary object, link it to parent object, and set line geometry.

◆ ~AncillaryLines()

MR::AncillaryLines::~AncillaryLines ( )
inline

detach owned object from parent, stops owning it

Member Function Documentation

◆ make()

MRVIEWER_API void MR::AncillaryLines::make ( Object & parent,
const Contours3f & contours = {} )

Make not-pickable ancillary object, link it to parent object, and set line geometry.

◆ operator=()

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

◆ reset()

MRVIEWER_API void MR::AncillaryLines::reset ( )

detach owned object from parent, stops owning it

◆ resetContours()

MRVIEWER_API void MR::AncillaryLines::resetContours ( )

Reset line geometry.

◆ setContours()

MRVIEWER_API void MR::AncillaryLines::setContours ( const Contours3f & contours)

Set line geometry.

◆ setDepthTest()

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

Set depth test.

Member Data Documentation

◆ obj

std::shared_ptr<ObjectLines> MR::AncillaryLines::obj

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