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