aimsdata 6.0.0
Neuroimaging data handling
bundlesFusion.h
Go to the documentation of this file.
1/* Copyright (c) 1995-2017 CEA
2 *
3 * This software and supporting documentation were developed by
4 * CEA/DSV/SHFJ
5 * 4 place du General Leclerc
6 * 91401 Orsay cedex
7 * France
8 *
9 * This software is governed by the CeCILL license version 2 under
10 * French law and abiding by the rules of distribution of free software.
11 * You can use, modify and/or redistribute the software under the
12 * terms of the CeCILL license version 2 as circulated by CEA, CNRS
13 * and INRIA at the following URL "http://www.cecill.info".
14 *
15 * As a counterpart to the access to the source code and rights to copy,
16 * modify and redistribute granted by the license, users are provided only
17 * with a limited warranty and the software's author, the holder of the
18 * economic rights, and the successive licensors have only limited
19 * liability.
20 *
21 * In this respect, the user's attention is drawn to the risks associated
22 * with loading, using, modifying and/or developing or reproducing the
23 * software by the user in light of its specific status of free software,
24 * that may mean that it is complicated to manipulate, and that also
25 * therefore means that it is reserved for developers and experienced
26 * professionals having in-depth computer knowledge. Users are therefore
27 * encouraged to load and test the software's suitability as regards their
28 * requirements in conditions enabling the security of their systems and/or
29 * data to be ensured and, more generally, to use and operate it in the
30 * same conditions as regards security.
31 *
32 * The fact that you are presently reading this means that you have had
33 * knowledge of the CeCILL license version 2 and that you accept its terms.
34 */
35
36#ifndef AIMS_FIBERS_BUNDLESFUSION_H
37#define AIMS_FIBERS_BUNDLESFUSION_H
38
39#include <aims/fibers/bundles.h>
40
41
42 //------------------//
43 // BundlesFusion //
44//------------------//
45
46namespace aims
47{
48
57 {
58 public:
59 typedef std::vector< aims::FiberPoint > Fiber;
60 typedef std::vector< Fiber > Bundle;
61 typedef std::vector< Bundle > BundlesSet;
62 typedef std::vector< FiberInfo > FiberInfoSet;
63 typedef std::vector< BundleInfo > BundleInfoSet;
64 typedef std::vector< FiberInfoSet > BundlesFiberInfo;
65
66 BundlesFusion( int, const Fiber & = Fiber(), const Bundle & = Bundle(),
67 const BundlesSet & = BundlesSet() );
68 virtual ~BundlesFusion();
69
70 protected:
71
72
73 virtual void bundleStarted( const aims::BundleProducer &,
74 const aims::BundleInfo & );
76 const aims::BundleInfo & );
77 virtual void fiberStarted( const aims::BundleProducer &,
78 const aims::BundleInfo &,
79 const aims::FiberInfo & );
81 const aims::BundleInfo &,
82 const aims::FiberInfo & );
83 virtual void newFiberPoint( const aims::BundleProducer &,
84 const aims::BundleInfo &,
85 const aims::FiberInfo &,
86 const aims::FiberPoint & );
87 virtual void noMoreBundle( const aims::BundleProducer & );
88
89 private:
90
91 int _nb_bundles,_num;
92 Fiber _fiber;
93 Bundle _bundle;
94 BundleInfoSet _bundleInfoSet;
95 BundlesSet _bundlesSet;
96 std::map<std::string, int> _bundles_name;
97 FiberInfoSet _fiberInfoSet;
98 BundlesFiberInfo _bundlesFiberInfo;
99 };
100
101}
102
103#endif
104
Serial processing of bundles.
Definition bundles.h:162
Serial processing of bundles.
Definition bundles.h:195
std::vector< FiberInfoSet > BundlesFiberInfo
std::vector< BundleInfo > BundleInfoSet
BundlesFusion(int, const Fiber &=Fiber(), const Bundle &=Bundle(), const BundlesSet &=BundlesSet())
std::vector< Bundle > BundlesSet
std::vector< FiberInfo > FiberInfoSet
std::vector< Fiber > Bundle
virtual void bundleStarted(const aims::BundleProducer &, const aims::BundleInfo &)
virtual void fiberStarted(const aims::BundleProducer &, const aims::BundleInfo &, const aims::FiberInfo &)
virtual void fiberTerminated(const aims::BundleProducer &, const aims::BundleInfo &, const aims::FiberInfo &)
virtual void newFiberPoint(const aims::BundleProducer &, const aims::BundleInfo &, const aims::FiberInfo &, const aims::FiberPoint &)
std::vector< aims::FiberPoint > Fiber
virtual void bundleTerminated(const aims::BundleProducer &, const aims::BundleInfo &)
virtual void noMoreBundle(const aims::BundleProducer &)
virtual ~BundlesFusion()
The class for EcatSino data write operation.
aims::Polyline::Point_t FiberPoint
Definition bundles.h:88