MorphoGraphX
2.0-1-227
src
VertexData.hpp
Go to the documentation of this file.
1
//
2
// This file is part of MorphoGraphX - http://www.MorphoGraphX.org
3
// Copyright (C) 2012-2015 Richard S. Smith and collaborators.
4
//
5
// If you use MorphoGraphX in your work, please cite:
6
// http://dx.doi.org/10.7554/eLife.05864
7
//
8
// MorphoGraphX is free software, and is licensed under under the terms of the
9
// GNU General (GPL) Public License version 2.0, http://www.gnu.org/licenses.
10
//
11
#ifndef VERTEXDATA_HPP
12
#define VERTEXDATA_HPP
13
20
#include <Config.hpp>
21
#include <
Geometry.hpp
>
22
#include <stdint.h>
23
#include <
Colors.hpp
>
24
25
namespace
mgx
26
{
32
class
VertexData
33
{
34
public
:
35
Point3d
pos
;
36
Point3d
nrml
;
37
intptr_t
minb
;
38
intptr_t
cId
;
39
40
float
signal
;
41
int
label
;
42
Colorb
color
;
43
int
saveId
;
44
45
char
type
;
46
bool
selected
;
47
bool
margin
;
48
49
// Constructor, set initial values
50
VertexData
() :
pos
(0, 0, 0),
nrml
(0, 0, 0),
minb
(0),
cId
(0),
51
signal
(.5),
label
(0),
color
(0,0,0,0),
saveId
(0),
type
(
'j'
),
selected
(false),
margin
(false) {}
52
53
~VertexData
() {}
54
};
55
}
56
57
#endif
mgx::VertexData::color
Colorb color
Color to draw point.
Definition:
VertexData.hpp:42
mgx::VertexData::saveId
int saveId
Used when saving vertex.
Definition:
VertexData.hpp:43
mgx::VertexData::VertexData
VertexData()
Definition:
VertexData.hpp:50
mgx::VertexData
Definition:
VertexData.hpp:32
mgx::VertexData::cId
intptr_t cId
Id in cell graph.
Definition:
VertexData.hpp:38
mgx::VertexData::margin
bool margin
Is vertex on the margin?
Definition:
VertexData.hpp:47
Colors.hpp
mgx::VertexData::label
int label
Cell to which vertex belongs.
Definition:
VertexData.hpp:41
Geometry.hpp
mgx
Distributed matrix library.
Definition:
Assert.hpp:26
mgx::VertexData::nrml
Point3d nrml
Normal vector.
Definition:
VertexData.hpp:36
mgx::VertexData::minb
intptr_t minb
Closest border vertex.
Definition:
VertexData.hpp:37
mgx::VertexData::pos
Point3d pos
Position in space.
Definition:
VertexData.hpp:35
mgx::VertexData::selected
bool selected
Is vertex selected?
Definition:
VertexData.hpp:46
mgx::VertexData::type
char type
Type of vertex.
Definition:
VertexData.hpp:45
mgx::Vector< 3, double >
mgx::Color< uchar >
mgx::VertexData::signal
float signal
Projected signal.
Definition:
VertexData.hpp:40
mgx::VertexData::~VertexData
~VertexData()
Definition:
VertexData.hpp:53
Generated on Fri Jul 9 2021 18:34:54 for MorphoGraphX by
1.8.17