fw4spl
core/fwDataCamp/src/fwDataCamp/Image.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include <fwMemory/camp/mapper.hpp>
8 
9 #include <fwCamp/UserObject.hpp>
10 
11 #include "fwDataCamp/Image.hpp"
12 
13 
14 fwCampImplementDataMacro((fwData)(Image))
15 {
16  builder
17  .tag("object_version", "2")
18  .tag("lib_name", "fwData")
19  .base< ::fwData::Object>()
20  .property("size", &::fwData::Image::m_size)
21  .property("type", &::fwData::Image::m_type)
22  .property("spacing", &::fwData::Image::m_spacing)
23  .property("origin", &::fwData::Image::m_origin)
24  .property("array", &::fwData::Image::m_dataArray)
25  .property("nb_components", &::fwData::Image::m_numberOfComponents)
26  .property("window_center", &::fwData::Image::m_windowCenter)
27  .property("window_width", &::fwData::Image::m_windowWidth)
28  ;
29 }
SizeType m_size
Size of the image (in terms of points)
size_t m_numberOfComponents
Number of components.
::fwData::Array::sptr m_dataArray
image buffer
OriginType m_origin
Origin of the image in 3D repair.
Base class for each data object.
::fwTools::Type m_type
type of image pixel
Contains the representation of the data objects used in the framework.
SpacingType m_spacing
An array on the voxel size of the image.