A.I.M.S


aims::strel::ShapeFactory Class Reference

aims::strel::Shape generator More...

#include <aims/connectivity/structuring_element.h>

Static Public Member Functions

static Shapecreate (const std::string &type, const double amplitude=1., const bool usecenter=false)
 
static Shapecreate (const std::string &type, const Point3d &origin, const double amplitude=1., const bool usecenter=false)
 
static Shapecreate (const std::string &type, const std::vector< double > &amplitude, const bool usecenter=false)
 
static Shapecreate (const std::string &type, const Point3d &origin, const std::vector< double > &amplitude, const bool usecenter=false)
 
static void registerShape (const std::string &type, const Shape &strel)
 
static std::set< std::string > shapes ()
 

Static Protected Member Functions

static void init ()
 
static std::map< std::string,
carto::rc_ptr< Shape > > & 
_map ()
 

Detailed Description

aims::strel::Shape generator

Here are listed the registered keywords as of July 2014:

registerShape( "cube", Cube() );
registerShape( "squarexy", SquareXY() );
registerShape( "squarexz", SquareXZ() );
registerShape( "squareyz", SquareYZ() );
registerShape( "sphere", Sphere() );
registerShape( "diskxy", DiskXY() );
registerShape( "diskxz", DiskXZ() );
registerShape( "diskyz", DiskYZ() );
registerShape( "cross", Cross() );
registerShape( "crossxy", CrossXY() );
registerShape( "crossxz", CrossXZ() );
registerShape( "crossyz", CrossYZ() );
registerShape( "diagonalcross", DiagonalCross() );
registerShape( "diagonalcrossxy", DiagonalCrossXY() );
registerShape( "diagonalcrossxz", DiagonalCrossXZ() );
registerShape( "diagonalcrossyz", DiagonalCrossYZ() );

Definition at line 317 of file structuring_element.h.

Member Function Documentation

static std::map<std::string,carto::rc_ptr<Shape> >& aims::strel::ShapeFactory::_map ( )
staticprotected
static Shape* aims::strel::ShapeFactory::create ( const std::string &  type,
const double  amplitude = 1.,
const bool  usecenter = false 
)
static
static Shape* aims::strel::ShapeFactory::create ( const std::string &  type,
const Point3d origin,
const double  amplitude = 1.,
const bool  usecenter = false 
)
static
static Shape* aims::strel::ShapeFactory::create ( const std::string &  type,
const std::vector< double > &  amplitude,
const bool  usecenter = false 
)
static
static Shape* aims::strel::ShapeFactory::create ( const std::string &  type,
const Point3d origin,
const std::vector< double > &  amplitude,
const bool  usecenter = false 
)
static
static void aims::strel::ShapeFactory::init ( )
staticprotected
static void aims::strel::ShapeFactory::registerShape ( const std::string &  type,
const Shape strel 
)
static
static std::set<std::string> aims::strel::ShapeFactory::shapes ( )
static

The documentation for this class was generated from the following file: