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()
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
Create instances of SpatialObjects.
static SpatialObjectFactoryBase * GetFactory()
Create instances of SpatialObjects.