3d/transformfactory.hh
Go to the documentation of this file.
/* -*- mia-c++ -*-
*
* This file is part of MIA - a toolbox for medical image analysis
* Copyright (c) Leipzig, Madrid 1999-2017 Gert Wollny
*
* MIA is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MIA; if not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef mia_3d_transformfactory_hh
#define mia_3d_transformfactory_hh
#include <set>
#include <mia/3d/transform.hh>
#include <mia/template/transformfactory.hh>
NS_MIA_BEGIN
typedef TTransformCreator<C3DTransformation> C3DTransformCreator;
typedef std::shared_ptr<C3DTransformCreator > P3DTransformationFactory;
typedef TTransformCreatorPlugin<C3DTransformation> C3DTransformCreatorPlugin;
typedef THandlerSingleton<TFactoryPluginHandler<C3DTransformCreatorPlugin>> C3DTransformCreatorHandler;
inline
P3DTransformationFactory produce_3dtransform_factory(const std::string& descr)
{
return C3DTransformCreatorHandler::instance().produce(descr);
}
FACTORY_TRAIT(C3DTransformCreatorHandler);
NS_MIA_END
#endif
transform.hh
produce_3dtransform_factory
P3DTransformationFactory produce_3dtransform_factory(const std::string &descr)
Definition 3d/transformfactory.hh:62
THandlerSingleton
the singleton that a plug-in handler really is
Definition handler.hh:159
THandlerSingleton< TFactoryPluginHandler< C3DTransformCreatorPlugin > >::instance
static const TFactoryPluginHandler< C3DTransformCreatorPlugin > & instance()
TTransformCreatorPlugin
Factory class that is used to create the transformation creator.
Definition template/transformfactory.hh:100
TTransformCreator
Definition template/transformfactory.hh:45
NS_MIA_BEGIN
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition defines.hh:33
NS_MIA_END
#define NS_MIA_END
conveniance define to end the mia namespace
Definition defines.hh:36
C3DTransformCreatorHandler
THandlerSingleton< TFactoryPluginHandler< C3DTransformCreatorPlugin > > C3DTransformCreatorHandler
Transform creator plugin handler.
Definition 3d/transformfactory.hh:53
C3DTransformCreator
TTransformCreator< C3DTransformation > C3DTransformCreator
base class for the creators of 3D transformations
Definition 3d/transformfactory.hh:35
C3DTransformCreatorPlugin
TTransformCreatorPlugin< C3DTransformation > C3DTransformCreatorPlugin
Base class for the transform creator plugins.
Definition 3d/transformfactory.hh:47
P3DTransformationFactory
std::shared_ptr< C3DTransformCreator > P3DTransformationFactory
pointer type of the class for the creators of 3D transformations
Definition 3d/transformfactory.hh:41
FACTORY_TRAIT
#define FACTORY_TRAIT(F)
Definition factory_trait.hh:69
transformfactory.hh