28 #ifndef __itkSpatialObjectFactory_h
29 #define __itkSpatialObjectFactory_h
40 template<
typename T >
47 typename T::Pointer t = T::New();
50 f->RegisterSpatialObject ( t->GetSpatialObjectTypeAsString().c_str(),
51 t->GetSpatialObjectTypeAsString().c_str(),
52 t->GetSpatialObjectTypeAsString().c_str(),
static void RegisterSpatialObject()
Create instances of SpatialObjects.
static SpatialObjectFactoryBase * GetFactory()
Create instances of SpatialObjects.