SFCGAL  2.3.0
Public Member Functions | Public Attributes | List of all members
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. More...
 

Public Attributes

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

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

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

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

Constraint ID returned by insertion.

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

Index of the geometry in the collection.

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

Local order (for multiple constraints of the same polygon)

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

Index of the polygon in MultiPolygon (if applicable)

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

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

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

Geometry type (linestring, polygon exterior, polygon interior)