fw4spl
SrcLib/tests/fwTest/include/fwTest/generator/Object.hpp
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 #ifndef __FWTEST_GENERATOR_OBJECT_HPP__
8 #define __FWTEST_GENERATOR_OBJECT_HPP__
9 
10 #include "fwTest/config.hpp"
11 
12 #include <fwCore/base.hpp>
13 
14 #include <fwData/Array.hpp>
15 #include <fwData/Color.hpp>
16 #include <fwData/Composite.hpp>
17 #include <fwData/Material.hpp>
18 #include <fwData/Node.hpp>
19 #include <fwData/Plane.hpp>
20 #include <fwData/Point.hpp>
21 #include <fwData/Port.hpp>
22 #include <fwData/ProcessObject.hpp>
23 #include <fwData/ReconstructionTraits.hpp>
24 #include <fwData/Resection.hpp>
25 #include <fwData/ResectionDB.hpp>
26 #include <fwData/ROITraits.hpp>
27 #include <fwData/StructureTraits.hpp>
28 #include <fwData/StructureTraitsDictionary.hpp>
29 #include <fwData/TransferFunction.hpp>
30 
31 
32 namespace fwTest
33 {
34 namespace generator
35 {
40 class Object
41 {
42 public:
43 
45  FWTEST_API static ::fwData::Color::sptr randomizeColor();
46 
48  FWTEST_API static ::fwData::TransferFunction::sptr createTFColor(unsigned char nbPoints,
49  double window,
50  double level );
51 
53  FWTEST_API static ::fwData::TransferFunction::sptr createTFColor();
54 
56  FWTEST_API static ::fwData::StructureTraitsDictionary::sptr createStructureTraitsDictionary();
57 
59  FWTEST_API static ::fwData::StructureTraits::sptr createStructureTraits();
60 
62  FWTEST_API static ::fwData::Composite::sptr createROITraits();
63 
65  FWTEST_API static ::fwData::Composite::sptr createReconstructionTraits();
66 
68  FWTEST_API static ::fwData::Node::sptr createNode();
69 
71  FWTEST_API static ::fwData::Port::sptr createPort();
72 
74  FWTEST_API static ::fwData::Material::sptr createMaterial( );
75 
77  FWTEST_API static ::fwData::ProcessObject::sptr createProcessObject();
78 
80  FWTEST_API static ::fwData::ResectionDB::sptr generateResectionDB();
81 
83  FWTEST_API static ::fwData::Resection::sptr generateResection();
84 
86  FWTEST_API static ::fwData::Point::sptr generatePoint();
87 
89  FWTEST_API static ::fwData::Plane::sptr generatePlane();
90 };
91 
92 } // namespace generator
93 } // namespace fwTest
94 
95 
96 #endif // __FWTEST_GENERATOR_OBJECT_HPP__
static FWTEST_API::fwData::Material::sptr createMaterial()
Creates a Material with ambient and diffuse color.
static FWTEST_API::fwData::Point::sptr generatePoint()
Creates a Point with random coordinates.
static FWTEST_API::fwData::Composite::sptr createROITraits()
Return a composite containing the ROITraits and a reference on its StructureTraits and mask node (bec...
static FWTEST_API::fwData::Resection::sptr generateResection()
Creates a Resection with 2 planes, 1 input Reconstruction and 1 output Reconstruction.
static FWTEST_API::fwData::Plane::sptr generatePlane()
Creates a Plane with random points.
static FWTEST_API::fwData::Color::sptr randomizeColor()
Creates a color with random values.
static FWTEST_API::fwData::Composite::sptr createReconstructionTraits()
Return a composite containing the ReconstructionTraits and a reference on its StructureTraits and mas...
Definition: Data.hpp:15
static FWTEST_API::fwData::Node::sptr createNode()
Creates a Node with random ports.
static FWTEST_API::fwData::ProcessObject::sptr createProcessObject()
Creates a ProcessObject with 3 inputs and 1 output.
static FWTEST_API::fwData::ResectionDB::sptr generateResectionDB()
Creates a ResectionDB containing one Resection.
This class contains helper to generate data objects.
static FWTEST_API::fwData::StructureTraits::sptr createStructureTraits()
Creates a StructureTraits representing the liver.
static FWTEST_API::fwData::Port::sptr createPort()
Creates a Port with random identifier and type.
static FWTEST_API::fwData::TransferFunction::sptr createTFColor()
Creates a TransferFunction with few values.
static FWTEST_API::fwData::StructureTraitsDictionary::sptr createStructureTraitsDictionary()
Creates a StructureTraitsDictionary with many organs.