|
| const BasicPoint & | basicPoint () const noexcept |
| | Get an immutable reference to the internal 3d point. More...
|
| |
| BasicPoint & | basicPoint () noexcept |
| | Get a mutable reference to the internal 3d point. More...
|
| |
| | operator BasicPoint2d () const noexcept=delete |
| |
| | operator BasicPoint3d & () noexcept |
| | Implicit cast to a mutable BasicPoint3d. More...
|
| |
| | operator const BasicPoint3d & () const noexcept |
| | Implicit cast to an immutable basicPoint3d. More...
|
| |
| | Point2d ()=default |
| |
| | Point3d ()=default |
| |
| | Point3d (const Point2d &other) |
| | constructs a 3D from a 2D point. No data is lost in that process. More...
|
| |
| double & | x () noexcept |
| | gets a mutable reference to the x coordinate More...
|
| |
| double & | y () noexcept |
| | gets a mutable reference to the y coordinate More...
|
| |
| double & | z () noexcept |
| | gets a mutable reference to the z coordinate More...
|
| |
| const BasicPoint2d & | basicPoint () const noexcept |
| | get a basic 2d point More...
|
| |
| auto | basicPoint () noexcept |
| | get a mutable reference to the 2d point data More...
|
| |
| | operator BasicPoint2d () const noexcept |
| | Cast to a basic 2d point. More...
|
| |
| | operator const BasicPoint3d & () const =delete |
| |
| | Point2d ()=default |
| |
| | Primitive ()=default |
| |
| | Primitive (const Primitive &rhs) noexcept |
| |
| template<typename OtherT > |
| | Primitive (const Primitive< OtherT > &rhs) |
| | Construct from another primitive. Only works if both share the same. More...
|
| |
| | Primitive (const std::shared_ptr< const DataType > &)=delete |
| |
| | Primitive (const std::shared_ptr< DataType > &data) |
| | Construct a new primitive from shared_ptr to its data. More...
|
| |
| | Primitive (Primitive &&rhs) noexcept |
| |
| double & | x () noexcept |
| | gets a mutable reference to the x coordinate More...
|
| |
| double & | y () noexcept |
| | gets a mutable reference to the y coordinate More...
|
| |
| double | z () const noexcept=delete |
| |
| AttributeMap & | attributes () noexcept |
| | get the attributes in a mutable way More...
|
| |
| | Primitive ()=default |
| |
| | Primitive (const Primitive< OtherT > &rhs) |
| | Construct from another primitive. Only works if both share the same. More...
|
| |
| | Primitive (const std::shared_ptr< const DataType > &)=delete |
| |
| | Primitive (const std::shared_ptr< DataType > &data) |
| | Construct a new primitive from shared_ptr to its data. More...
|
| |
| void | setAttribute (AttributeName name, const Attribute &attribute) |
| | set or overwrite an attribute (enum version) More...
|
| |
| void | setAttribute (const std::string &name, const Attribute &attribute) |
| | set or overwrite an attribute More...
|
| |
| void | setId (Id id) noexcept |
| | set a new id for this primitive More...
|
| |
| const BasicPoint & | basicPoint () const noexcept |
| | get a basic 3d point More...
|
| |
| | ConstPoint2d (Id id, const BasicPoint3d &point, const AttributeMap &attributes=AttributeMap()) |
| | Construct from an id and a point. More...
|
| |
| | ConstPoint2d (Id id=InvalId, double x=0., double y=0., double z=0., const AttributeMap &attributes=AttributeMap()) |
| | Construct from an id and coordinates. More...
|
| |
| | ConstPoint3d ()=default |
| |
| | ConstPoint3d (const ConstPoint2d &other) |
| |
| | operator BasicPoint2d () const noexcept=delete |
| |
| | operator const BasicPoint3d & () const noexcept |
| | Implicit cast to a basic 3d point. More...
|
| |
| double | z () const noexcept |
| | get the z coordinate More...
|
| |
| const BasicPoint & | basicPoint () const noexcept |
| | Get an Eigen point for faster calculations. More...
|
| |
| const BasicPoint2d & | basicPoint2d () const noexcept |
| |
| | ConstPoint2d (Id id, const BasicPoint3d &point, const AttributeMap &attributes=AttributeMap()) |
| | Construct from an id and a point. More...
|
| |
| | ConstPoint2d (Id id=InvalId, double x=0., double y=0., double z=0., const AttributeMap &attributes=AttributeMap()) |
| | Construct from an id and coordinates. More...
|
| |
| | ConstPrimitive (const ConstPrimitive &rhs)=default |
| |
| | ConstPrimitive (const std::shared_ptr< const Data > &data) |
| | Construct from a pointer to the data. More...
|
| |
| | ConstPrimitive (ConstPrimitive &&rhs) noexcept=default |
| |
| | operator BasicPoint2d () const noexcept |
| | A ConstPoint 2d is implicitly convertible to a normal 2d point. More...
|
| |
| double | x () const noexcept |
| | gets x coordinate More...
|
| |
| double | y () const noexcept |
| | gets y coordinate More...
|
| |
| const Attribute & | attribute (AttributeName name) const |
| | retrieve an attribute (enum version) More...
|
| |
| const Attribute & | attribute (const std::string &name) const |
| | retrieve an attribute More...
|
| |
| T | attributeOr (AttributeName name, T defaultVal) const |
| | retrieve an attribute (enum version) More...
|
| |
| T | attributeOr (const std::string &name, T defaultVal) const noexcept |
| | retrieve an attribute (string version) More...
|
| |
| const AttributeMap & | attributes () const |
| | get the attributes of this primitive More...
|
| |
| const std::shared_ptr< const PointData > & | constData () const |
| | get the internal data of this primitive More...
|
| |
| | ConstPrimitive (const std::shared_ptr< const PointData > &data) |
| | Construct from a pointer to the data. More...
|
| |
| bool | hasAttribute (AttributeName name) const noexcept |
| | check for an attribute (enum version) More...
|
| |
| bool | hasAttribute (const std::string &name) const noexcept |
| | check whether this primitive has a specific attribute More...
|
| |
| Id | id () const noexcept |
| | get the unique id of this primitive More...
|
| |
| bool | operator!= (const ConstPrimitive &rhs) const |
| |
| bool | operator== (const ConstPrimitive &rhs) const |
| |
A mutable 3d point.
Definition at line 271 of file primitives/Point.h.