Volume Cartographer 2.27.0
PlaneLandmark.hpp
Go to the documentation of this file.
1#pragma once
2
6
7namespace volcart::landmarks
8{
17{
18public:
20 using Pointer = std::shared_ptr<PlaneLandmark>;
21
23 PlaneLandmark(const Identifier& uuid, const std::string& name);
24
27 const Identifier& uuid,
28 const std::string& name,
29 const Point& center,
30 const cv::Vec3d& normal);
31
35 static Pointer New(const Identifier& uuid, const std::string& name);
36
39 static Pointer New(
40 const Identifier& uuid,
41 const std::string& name,
42 const Point& center,
43 const cv::Vec3d& normal);
44
46 void setCenter(double x, double y, double z);
47
49 void setCenter(const Point& values);
50
52 void setNormal(double x, double y, double z);
53
55 void setNormal(const Point& values);
56
59
62
63private:
66
68 cv::Vec3d normal_;
69
72};
73} // namespace volcart::landmarks
Boundless plane volume landmark.
PlaneLandmark(const Identifier &uuid, const std::string &name)
Constructor with uuid and name.
void setCenter(const Point &values)
std::shared_ptr< PlaneLandmark > Pointer
Point getCenter() const
Get center of plane.
void setCenter(double x, double y, double z)
Set center of plane.
void setNormal(const Point &values)
static Pointer New(const Identifier &uuid, const std::string &name)
static Pointer New(const Identifier &uuid, const std::string &name, const Point &center, const cv::Vec3d &normal)
PlaneLandmark(const Identifier &uuid, const std::string &name, const Point &center, const cv::Vec3d &normal)
Constructor with uuid, name, center, and normal.
Point getNormal() const
Get plane normal.
void setNormal(double x, double y, double z)
Set plane normal.
Base class for Volume Landmark types.
std::string name() const
Get human-readable landmark name.
std::string Identifier
Identifier type.
Volume landmark classes.