36 using Pointer = std::shared_ptr<Segmentation>;
50 const filesystem::path&
path,
Base class for objects stored on disk with an associated metadata file.
auto path() const -> filesystem::path
Get the path to the object.
std::string Identifier
Identifier type.
auto name() const -> std::string
Get the human-readable name for the object.
static auto New(const filesystem::path &path, const Identifier &uuid, const std::string &name) -> Pointer
Segmentation(filesystem::path path, Identifier uuid, std::string name)
Make a new Segmentation in a directory.
static auto New(const filesystem::path &path) -> Pointer
auto hasVolumeID() const -> bool
Return whether this Segmentation is associated with a Volume.
auto getPointSet() const -> PointSet
Load the associated PointSet from the Segmentation file.
void setAnnotationSet(const AnnotationSet &as)
Save AnnotationSet to the Segmentation file.
auto getAnnotationSet() const -> AnnotationSet
Load the associated AnnotationSet from the Segmentation file.
auto hasAnnotationSet() const -> bool
Return if this Segmentation has an associated AnnotationSet file.
void setVolumeID(const Volume::Identifier &id)
Set the ID of the Volume associated with this Segmentation.
std::shared_ptr< Segmentation > Pointer
auto getVolumeID() const -> Volume::Identifier
Get the ID of the Volume associated with this Segmentation.
void setPointSet(const PointSet &ps)
Save a PointSet to the Segmentation file.
Segmentation(filesystem::path path)
Load a Segmentation from file.
auto hasPointSet() const -> bool
Return if this Segmentation has an associated PointSet file.
Volume Cartographer library