SFCGAL 2.0.0
SFCGAL::tools::Registry Class Reference

Registry for dynamic information about SFCGAL library. More...

#include <Registry.h>

Public Types

typedef std::vector< Geometry * >::iterator prototype_iterator
typedef std::vector< Geometry * >::const_iterator const_prototype_iterator

Public Member Functions

 ~Registry ()
 destructor
void addPrototype (const Geometry &g)
 Register a new Geometry type.
std::vector< std::string > getGeometryTypes () const
 returns the list of the geometry types
GeometrynewGeometryByTypeName (const std::string &geometryTypeName) const
 returns a new instance of the given geometryTypeName
GeometrynewGeometryByTypeId (int typeId) const
 returns a new instance of the given geometryType

Static Public Member Functions

static Registryinstance ()
 returns the instance of the registry

Detailed Description

Registry for dynamic information about SFCGAL library.

Member Typedef Documentation

◆ const_prototype_iterator

typedef std::vector<Geometry*>::const_iterator SFCGAL::tools::Registry::const_prototype_iterator

◆ prototype_iterator

typedef std::vector<Geometry*>::iterator SFCGAL::tools::Registry::prototype_iterator

Constructor & Destructor Documentation

◆ ~Registry()

SFCGAL::tools::Registry::~Registry ( )

destructor

Member Function Documentation

◆ addPrototype()

void SFCGAL::tools::Registry::addPrototype ( const Geometry & g)

Register a new Geometry type.

◆ getGeometryTypes()

auto SFCGAL::tools::Registry::getGeometryTypes ( ) const

returns the list of the geometry types

◆ instance()

auto SFCGAL::tools::Registry::instance ( )
static

returns the instance of the registry

◆ newGeometryByTypeId()

auto SFCGAL::tools::Registry::newGeometryByTypeId ( int typeId) const

returns a new instance of the given geometryType

◆ newGeometryByTypeName()

auto SFCGAL::tools::Registry::newGeometryByTypeName ( const std::string & geometryTypeName) const

returns a new instance of the given geometryTypeName