fw4spl
ModelSeries1.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/String.hpp>
8 #include <fwAtoms/Object.hpp>
9 #include <fwAtoms/Sequence.hpp>
10 
11 #include <fwAtomsPatch/StructuralCreatorDB.hpp>
12 #include <fwAtomsPatch/helper/Object.hpp>
13 
14 #include "fwStructuralPatch/creator/fwMedData/ModelSeries1.hpp"
15 
16 namespace fwStructuralPatch
17 {
18 namespace creator
19 {
20 namespace fwMedData
21 {
22 
24 {
25  m_classname = "::fwMedData::ModelSeries";
26  m_version = "1";
27 }
28 
29 // ----------------------------------------------------------------------------
30 
32 {
33 }
34 
35 // ----------------------------------------------------------------------------
36 
38 {
39 }
40 
41 // ----------------------------------------------------------------------------
42 
43 ::fwAtoms::Object::sptr ModelSeries1::create()
44 {
45  ::fwAtoms::Object::sptr modelSeries = this->Series1::create();
46  ::fwAtomsPatch::helper::Object helper(modelSeries);
47 
48  helper.addAttribute("reconstruction_db", ::fwAtoms::Sequence::New());
49 
50  return modelSeries;
51 }
52 
53 } // namespace fwMedData
54 } // namespace creator
55 } // namespace fwStructuralPatch
virtual FWSTRUCTURALPATCH_API::fwAtoms::Object::sptr create() override
Creates the specified object (sets &#39;reconstruction_db&#39; attribute) and calls creator &#39;Series1&#39;...
FWSTRUCTURALPATCH_API ~ModelSeries1()
Destructor.
virtual FWSTRUCTURALPATCH_API::fwAtoms::Object::sptr create() override
Creates the specified object.
Definition: Series1.cpp:43
Namespace containing medical data.
Structural creator for fwMedData::ModelSeries version &#39;1&#39;.
std::string m_version
Object version.
FWSTRUCTURALPATCH_API ModelSeries1()
Constructor.
Contains creators and structural patches.
Definition: Landmarks1.hpp:13
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.