Volume Cartographer 2.27.0
Segmentation.hpp
Go to the documentation of this file.
1#pragma once
2
10
11namespace volcart
12{
13
30{
31public:
34
36 using Pointer = std::shared_ptr<Segmentation>;
37
39 explicit Segmentation(filesystem::path path);
40
42 Segmentation(filesystem::path path, Identifier uuid, std::string name);
43
45 static auto New(const filesystem::path& path) -> Pointer;
46
49 static auto New(
50 const filesystem::path& path,
51 const Identifier& uuid,
52 const std::string& name) -> Pointer;
53
60 [[nodiscard]] auto hasPointSet() const -> bool;
61
68 void setPointSet(const PointSet& ps);
69
75 [[nodiscard]] auto getPointSet() const -> PointSet;
76
83 [[nodiscard]] auto hasAnnotationSet() const -> bool;
84
92
99 [[nodiscard]] auto getAnnotationSet() const -> AnnotationSet;
100
107 [[nodiscard]] auto hasVolumeID() const -> bool;
108
110 [[nodiscard]] auto getVolumeID() const -> Volume::Identifier;
111
113 void setVolumeID(const Volume::Identifier& id);
114};
115} // namespace volcart
Base class for objects stored on disk with an associated metadata file.
auto path() const -> filesystem::path
Get the path to the object.
auto name() const -> std::string
Get the human-readable name for the object.
Segmentation data.
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.
Volumetric image data.
Definition: Volume.hpp:36
Volume Cartographer library