SFCGAL 2.3.0
SFCGAL::detail::ConstraintOrderInfo< Constraint_id > Struct Template Reference

Structure to store constraint order information Allows recovering the original insertion order after simplification. More...

#include <ConstraintInfo.h>

Public Member Functions

 ConstraintOrderInfo (Constraint_id cid_, size_t geomIndex_, size_t polyIndex_=0, size_t ringIndex_=0, size_t order_=0, ConstraintInfo::Type type_=ConstraintInfo::Type::LINESTRING)
 Constructor for constraint order info.

Public Attributes

Constraint_id cid
 Constraint ID returned by insertion.
size_t geomIndex
 Index of the geometry in the collection.
size_t polyIndex
 Index of the polygon in MultiPolygon (if applicable).
size_t ringIndex
 Ring index (0=exterior, >0=hole).
size_t order
 Local order (for multiple constraints of the same polygon).
ConstraintInfo::Type type
 Geometry type (linestring, polygon exterior, polygon interior).

Detailed Description

template<typename Constraint_id>
struct SFCGAL::detail::ConstraintOrderInfo< Constraint_id >

Structure to store constraint order information Allows recovering the original insertion order after simplification.

Constructor & Destructor Documentation

◆ ConstraintOrderInfo()

template<typename Constraint_id>
SFCGAL::detail::ConstraintOrderInfo< Constraint_id >::ConstraintOrderInfo ( Constraint_id cid_,
size_t geomIndex_,
size_t polyIndex_ = 0,
size_t ringIndex_ = 0,
size_t order_ = 0,
ConstraintInfo::Type type_ = ConstraintInfo::Type::LINESTRING )
inline

Constructor for constraint order info.

Parameters
cid_Constraint ID returned by insertion
geomIndex_Index of the geometry in the collection
polyIndex_Index of the polygon in MultiPolygon (if applicable)
ringIndex_Ring index (0=exterior, >0=hole)
order_Local order (for multiple constraints of the same polygon)
type_Geometry type

Member Data Documentation

◆ cid

template<typename Constraint_id>
Constraint_id SFCGAL::detail::ConstraintOrderInfo< Constraint_id >::cid

Constraint ID returned by insertion.

◆ geomIndex

template<typename Constraint_id>
size_t SFCGAL::detail::ConstraintOrderInfo< Constraint_id >::geomIndex

Index of the geometry in the collection.

◆ order

template<typename Constraint_id>
size_t SFCGAL::detail::ConstraintOrderInfo< Constraint_id >::order

Local order (for multiple constraints of the same polygon).

◆ polyIndex

template<typename Constraint_id>
size_t SFCGAL::detail::ConstraintOrderInfo< Constraint_id >::polyIndex

Index of the polygon in MultiPolygon (if applicable).

◆ ringIndex

template<typename Constraint_id>
size_t SFCGAL::detail::ConstraintOrderInfo< Constraint_id >::ringIndex

Ring index (0=exterior, >0=hole).

◆ type

template<typename Constraint_id>
ConstraintInfo::Type SFCGAL::detail::ConstraintOrderInfo< Constraint_id >::type

Geometry type (linestring, polygon exterior, polygon interior).