OpenMEEG
OpenMEEG
include
vertex.h
Go to the documentation of this file.
1
/*
2
Project Name : OpenMEEG
3
4
© INRIA and ENPC (contributors: Geoffray ADDE, Maureen CLERC, Alexandre
5
GRAMFORT, Renaud KERIVEN, Jan KYBIC, Perrine LANDREAU, Théodore PAPADOPOULO,
6
Emmanuel OLIVI
7
Maureen.Clerc.AT.inria.fr, keriven.AT.certis.enpc.fr,
8
kybic.AT.fel.cvut.cz, papadop.AT.inria.fr)
9
10
The OpenMEEG software is a C++ package for solving the forward/inverse
11
problems of electroencephalography and magnetoencephalography.
12
13
This software is governed by the CeCILL-B license under French law and
14
abiding by the rules of distribution of free software. You can use,
15
modify and/ or redistribute the software under the terms of the CeCILL-B
16
license as circulated by CEA, CNRS and INRIA at the following URL
17
"http://www.cecill.info".
18
19
As a counterpart to the access to the source code and rights to copy,
20
modify and redistribute granted by the license, users are provided only
21
with a limited warranty and the software's authors, the holders of the
22
economic rights, and the successive licensors have only limited
23
liability.
24
25
In this respect, the user's attention is drawn to the risks associated
26
with loading, using, modifying and/or developing or reproducing the
27
software by the user in light of its specific status of free software,
28
that may mean that it is complicated to manipulate, and that also
29
therefore means that it is reserved for developers and experienced
30
professionals having in-depth computer knowledge. Users are therefore
31
encouraged to load and test the software's suitability as regards their
32
requirements in conditions enabling the security of their systems and/or
33
data to be ensured and, more generally, to use and operate it in the
34
same conditions as regards security.
35
36
The fact that you are presently reading this means that you have had
37
knowledge of the CeCILL-B license and that you accept its terms.
38
*/
39
40
#pragma once
41
42
#include <vector>
43
#include <
vect3.h
>
44
45
namespace
OpenMEEG
{
46
51
52
class
OPENMEEG_EXPORT
Vertex
:
public
Vect3
{
53
public
:
54
55
Vertex
(): ind(-1) {};
56
57
Vertex
(
const
double
& x,
const
double
& y,
const
double
& z):
Vect3
(x,y,z),ind(-1) { }
58
59
Vertex
(
const
double
& x,
const
double
& y,
const
double
& z,
const
unsigned
&
id
):
Vect3
(x,y,z),ind(id) { }
60
61
Vertex
(
const
Vect3
& v):
Vect3
(v),ind(-1) { }
62
63
~Vertex
() {};
64
65
unsigned
&
index
() {
return
ind; }
66
const
unsigned
&
index
()
const
{
return
ind; }
67
68
private
:
69
70
unsigned
ind
;
71
};
72
73
typedef
std::vector<Vertex>
Vertices
;
74
}
OpenMEEG::Vertices
std::vector< Vertex > Vertices
Definition:
vertex.h:73
OpenMEEG::Vertex
Vertex.
Definition:
vertex.h:52
vect3.h
OpenMEEG::Vertex::ind
unsigned ind
Index of the vertex.
Definition:
vertex.h:70
OpenMEEG::Vertex::~Vertex
~Vertex()
Definition:
vertex.h:63
OpenMEEG
Definition:
analytics.h:45
OpenMEEG::Vect3
Vect3.
Definition:
vect3.h:62
OpenMEEG::Vertex::index
const unsigned & index() const
Definition:
vertex.h:66
OpenMEEG::Vertex::Vertex
Vertex(const double &x, const double &y, const double &z, const unsigned &id)
Definition:
vertex.h:59
OpenMEEG::Vertex::index
unsigned & index()
Definition:
vertex.h:65
OpenMEEG::Vertex::Vertex
Vertex()
Definition:
vertex.h:55
OpenMEEG::Vertex::Vertex
Vertex(const Vect3 &v)
Definition:
vertex.h:61
OpenMEEG::Vertex::Vertex
Vertex(const double &x, const double &y, const double &z)
Definition:
vertex.h:57
Generated by
1.8.17