2d/vfio.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_2d_3dvfio_hh
#define mia_2d_3dvfio_hh
#include <set>
#include <vector>
#include <mia/core/ioplugin.hh>
#include <mia/core/iohandler.hh>
#include <mia/2d/vectorfield.hh>
NS_MIA_BEGIN
class EXPORT_2D C2DIOVectorfield: public C2DFVectorfield, public CIOData
{
public:
C2DIOVectorfield();
C2DIOVectorfield(const C2DBounds& _Size);
C2DIOVectorfield(const C2DIOVectorfield& org);
C2DIOVectorfield(const C2DFVectorfield& org);
C2DIOVectorfield *clone() const __attribute__((warn_unused_result));
};
struct EXPORT_2D io_2dvf_type {
typedef C2DIOVectorfield type;
static const char *data_descr;
};
typedef TIOPlugin<io_2dvf_type> C2DVFIOPlugin;
template <> const char *const TPluginHandler<C2DVFIOPlugin>::m_help;
extern template class EXPORT_2D TPlugin<io_2dvf_type, io_plugin_type>;
extern template class EXPORT_2D TIOPlugin<io_2dvf_type>;
extern template class EXPORT_2D TIOPluginHandler<C2DVFIOPlugin>;
extern template class EXPORT_2D THandlerSingleton<TIOPluginHandler<C2DVFIOPlugin>>;
typedef THandlerSingleton<TIOPluginHandler<C2DVFIOPlugin>> C2DVFIOPluginHandler;
NS_MIA_END
#endif
C2DBounds
T2DVector< unsigned int > C2DBounds
unsigned int valued 2D vector - used as 2D size parameter
Definition 2d/vector.hh:540
vectorfield.hh
C2DVFIOPlugin
TIOPlugin< io_2dvf_type > C2DVFIOPlugin
Base class for 2D vector field IO plugins.
Definition 2d/vfio.hh:69
C2DVFIOPluginHandler
THandlerSingleton< TIOPluginHandler< C2DVFIOPlugin > > C2DVFIOPluginHandler
Handler for 2D vector field IO.
Definition 2d/vfio.hh:79
C2DFVectorfield
a 2D field of floating point single accuracy 2D vectors
Definition 2d/vectorfield.hh:80
C2DIOVectorfield
a class for the IO of 2D vector fields
Definition 2d/vfio.hh:41
C2DIOVectorfield::C2DIOVectorfield
C2DIOVectorfield(const C2DFVectorfield &org)
C2DIOVectorfield::clone
C2DIOVectorfield * clone() const __attribute__((warn_unused_result))
C2DIOVectorfield::C2DIOVectorfield
C2DIOVectorfield()
C2DIOVectorfield::C2DIOVectorfield
C2DIOVectorfield(const C2DIOVectorfield &org)
C2DIOVectorfield::C2DIOVectorfield
C2DIOVectorfield(const C2DBounds &_Size)
CIOData
helper class to derive from for data that can be loaded and stored to a disk.
Definition iodata.hh:37
THandlerSingleton
the singleton that a plug-in handler really is
Definition handler.hh:159
TIOPluginHandler
Template for all plug-in handlers that are responsible for data IO.
Definition iohandler.hh:45
TIOPlugin
The templatex basis class of all IO plug-ins.
Definition ioplugin.hh:58
TPlugin
The generic base for all plug-ins.
Definition plugin_base.hh:172
EXPORT_2D
#define EXPORT_2D
Definition defines2d.hh:37
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
iohandler.hh
ioplugin.hh
io_2dvf_type
Definition 2d/vfio.hh:61
io_2dvf_type::type
C2DIOVectorfield type
Definition 2d/vfio.hh:62
io_2dvf_type::data_descr
static const char * data_descr
Definition 2d/vfio.hh:63