fw4spl
ImageSeries1.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 <fwAtoms/Object.hpp>
8 #include <fwAtoms/Blob.hpp>
9 
10 #include <fwAtomsPatch/StructuralCreatorDB.hpp>
11 #include <fwAtomsPatch/helper/Object.hpp>
12 
13 #include "fwStructuralPatch/creator/fwMedData/ImageSeries1.hpp"
14 
15 namespace fwStructuralPatch
16 {
17 namespace creator
18 {
19 namespace fwMedData
20 {
21 
23 {
24  m_classname = "::fwMedData::ImageSeries";
25  m_version = "1";
26 }
27 
28 // ----------------------------------------------------------------------------
29 
31 {
32 }
33 
34 // ----------------------------------------------------------------------------
35 
37 {
38 }
39 
40 // ----------------------------------------------------------------------------
41 
42 ::fwAtoms::Object::sptr ImageSeries1::create()
43 {
44  ::fwAtoms::Object::sptr imageSeries = this->Series1::create();
45  ::fwAtomsPatch::helper::Object helper(imageSeries);
46 
47  helper.addAttribute("image", ::fwAtoms::Blob::New());
48 
49  return imageSeries;
50 }
51 
52 } // namespace fwMedData
53 } // namespace creator
54 } // namespace fwStructuralPatch
virtual FWSTRUCTURALPATCH_API::fwAtoms::Object::sptr create() override
Creates the specified object.
Definition: Series1.cpp:43
Namespace containing medical data.
Structural creator for fwMedData::ImageSeries version &#39;1&#39;.
std::string m_version
Object version.
FWSTRUCTURALPATCH_API ~ImageSeries1()
Destructor.
Contains creators and structural patches.
Definition: Landmarks1.hpp:13
FWSTRUCTURALPATCH_API ImageSeries1()
Constructor.
Structural creator for fwMedData::Series version 1.
Definition: Series1.hpp:21
FWATOMSPATCH_API void addAttribute(const std::string &name,::fwAtoms::Base::sptr value, conditions::Abstract::sptr condition=conditions::Abstract::New())
Adds a new attribute in the current object.
std::string m_classname
Object classname.
virtual FWSTRUCTURALPATCH_API::fwAtoms::Object::sptr create() override
Creates the specified object (sets &#39;image&#39; attribute) and calls creator &#39;Series1&#39;.
static FWATOMS_API Blob::sptr New(::fwMemory::BufferObject::sptr buffer)
create a new Blob shared ptr.
Definition: Blob.cpp:17