aimsalgo 6.0.0
Neuroimaging image processing
talPoints.h
Go to the documentation of this file.
1/* This software and supporting documentation are distributed by
2 * Institut Federatif de Recherche 49
3 * CEA/NeuroSpin, Batiment 145,
4 * 91191 Gif-sur-Yvette cedex
5 * France
6 *
7 * This software is governed by the CeCILL-B license under
8 * French law and abiding by the rules of distribution of free software.
9 * You can use, modify and/or redistribute the software under the
10 * terms of the CeCILL-B license as circulated by CEA, CNRS
11 * and INRIA at the following URL "http://www.cecill.info".
12 *
13 * As a counterpart to the access to the source code and rights to copy,
14 * modify and redistribute granted by the license, users are provided only
15 * with a limited warranty and the software's author, the holder of the
16 * economic rights, and the successive licensors have only limited
17 * liability.
18 *
19 * In this respect, the user's attention is drawn to the risks associated
20 * with loading, using, modifying and/or developing or reproducing the
21 * software by the user in light of its specific status of free software,
22 * that may mean that it is complicated to manipulate, and that also
23 * therefore means that it is reserved for developers and experienced
24 * professionals having in-depth computer knowledge. Users are therefore
25 * encouraged to load and test the software's suitability as regards their
26 * requirements in conditions enabling the security of their systems and/or
27 * data to be ensured and, more generally, to use and operate it in the
28 * same conditions as regards security.
29 *
30 * The fact that you are presently reading this means that you have had
31 * knowledge of the CeCILL-B license and that you accept its terms.
32 */
33
34
35#ifndef AIMS_TALAIRACH_TALPOINTS_H
36#define AIMS_TALAIRACH_TALPOINTS_H
37
38#include <aims/vector/vector.h>
39
40
42{
43public:
44
46 const Point3df& pPC,
47 const Point3df& pHemi );
48 TalairachPoints( const Point3d& pAC=Point3d(0,0,0),
49 const Point3d& pPC=Point3d(0,0,0),
50 const Point3d& pHemi=Point3d(0,0,0),
51 float sx=1.0f, float sy=1.0f, float sz=1.0f );
52 virtual ~TalairachPoints() { }
53
54 void setAC( const Point3d& pt ) { m_AC = pt; }
55 void setPC( const Point3d& pt ) { m_PC = pt; }
56 void setHemi( const Point3d& pt ) { m_Hemi = pt; }
57
58 void setSizeXYZ( float, float, float );
59
60 Point3d& AC() { return m_AC; }
61 const Point3d& AC() const { return m_AC; }
62 Point3d& PC() { return m_PC; }
63 const Point3d& PC() const { return m_PC; }
64 Point3d& Hemi() { return m_Hemi; }
65 const Point3d& Hemi() const { return m_Hemi; }
66
67 Point3df& ACmm() { return m_ACmm; }
68 const Point3df& ACmm() const { return m_ACmm; }
69 Point3df& PCmm() { return m_PCmm; }
70 const Point3df& PCmm() const { return m_PCmm; }
71 Point3df& Hemimm() { return m_Hemimm; }
72 const Point3df& Hemimm() const { return m_Hemimm; }
73
74private:
75
76 Point3d m_AC;
77 Point3d m_PC;
78 Point3d m_Hemi;
79
80 Point3df m_ACmm;
81 Point3df m_PCmm;
82 Point3df m_Hemimm;
83};
84
85
86#endif
void setPC(const Point3d &pt)
Definition talPoints.h:55
virtual ~TalairachPoints()
Definition talPoints.h:52
Point3d & Hemi()
Definition talPoints.h:64
TalairachPoints(const Point3d &pAC=Point3d(0, 0, 0), const Point3d &pPC=Point3d(0, 0, 0), const Point3d &pHemi=Point3d(0, 0, 0), float sx=1.0f, float sy=1.0f, float sz=1.0f)
void setAC(const Point3d &pt)
Definition talPoints.h:54
const Point3d & PC() const
Definition talPoints.h:63
const Point3d & AC() const
Definition talPoints.h:61
Point3d & PC()
Definition talPoints.h:62
const Point3df & Hemimm() const
Definition talPoints.h:72
Point3df & ACmm()
Definition talPoints.h:67
Point3df & PCmm()
Definition talPoints.h:69
Point3d & AC()
Definition talPoints.h:60
const Point3df & ACmm() const
Definition talPoints.h:68
void setSizeXYZ(float, float, float)
void setHemi(const Point3d &pt)
Definition talPoints.h:56
const Point3d & Hemi() const
Definition talPoints.h:65
const Point3df & PCmm() const
Definition talPoints.h:70
TalairachPoints(const Point3df &pAC, const Point3df &pPC, const Point3df &pHemi)
Point3df & Hemimm()
Definition talPoints.h:71
AimsVector< float, 3 > Point3df
AimsVector< int16_t, 3 > Point3d