SFCGAL  2.3.0
Public Types | Public Member Functions | Public Attributes | List of all members
SFCGAL::detail::ConstraintInfo Struct Reference

Structure to identify constraint sources for topology-preserving mode. More...

#include <ConstraintInfo.h>

Public Types

enum  Type {
  Type::LINESTRING, Type::POLYGON_EXTERIOR, Type::POLYGON_INTERIOR, Type::POLYHEDRALSURFACE_EXTERIOR,
  Type::POLYHEDRALSURFACE_INTERIOR, Type::MULTIPOLYGON_EXTERIOR, Type::MULTIPOLYGON_INTERIOR
}
 Constraint type enumeration. More...
 

Public Member Functions

 ConstraintInfo (Type constraintType, size_t geometryIndex, size_t ringIndexParam=0)
 Constructor for constraint info. More...
 

Public Attributes

Type type
 The constraint type. More...
 
size_t geomIndex
 Index of the source geometry. More...
 
size_t ringIndex
 Index of the ring within the geometry. More...
 

Detailed Description

Structure to identify constraint sources for topology-preserving mode.

Member Enumeration Documentation

Constraint type enumeration.

Enumerator
LINESTRING 
POLYGON_EXTERIOR 
POLYGON_INTERIOR 
POLYHEDRALSURFACE_EXTERIOR 
POLYHEDRALSURFACE_INTERIOR 
MULTIPOLYGON_EXTERIOR 
MULTIPOLYGON_INTERIOR 

Constructor & Destructor Documentation

SFCGAL::detail::ConstraintInfo::ConstraintInfo ( Type  constraintType,
size_t  geometryIndex,
size_t  ringIndexParam = 0 
)
inline

Constructor for constraint info.

Parameters
constraintTypeThe constraint type
geometryIndexIndex of the source geometry
ringIndexParamIndex of the ring within the geometry

Member Data Documentation

size_t SFCGAL::detail::ConstraintInfo::geomIndex

Index of the source geometry.

size_t SFCGAL::detail::ConstraintInfo::ringIndex

Index of the ring within the geometry.

Type SFCGAL::detail::ConstraintInfo::type

The constraint type.