MorphoGraphX
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 
22 #include <Geometry.hpp>
23 
24 namespace mgx {
31 class VertexData {
32 public:
36  float tsignal;
37  float signal;
38  int label;
39  char type;
40  float area;
41  int saveId;
42  int labcount;
43  bool margin;
44  bool inqueue;
45  bool selected;
46  ulong minb;
47 
48  // Constructor, set initial values
49  VertexData()
50  : pos(0, 0, 0)
51  , nrml(0, 0, 0)
52  , txpos(0, 0)
53  , tsignal(0)
54  , signal(1)
55  , label(0)
56  , type('j')
57  , area(0)
58  , saveId(0)
59  , labcount(0)
60  , margin(false)
61  , inqueue(false)
62  , selected(false)
63  , minb(0)
64  {
65  }
66 
67  virtual ~VertexData() {
68  }
69 };
70 } // namespace mgx
71 
72 #endif /*VERTEX_DATA_H*/
ulong minb
Closest border vertex.
Definition: VertexData.hpp:46
int labcount
of labels (cells) vertex connected to
Definition: VertexData.hpp:42
bool margin
Is vertex on the margin?
Definition: VertexData.hpp:43
float signal
Projected signal.
Definition: VertexData.hpp:37
Point3f pos
Position in space.
Definition: VertexData.hpp:33
char type
Type of vertex.
Definition: VertexData.hpp:39
float tsignal
Temp signal.
Definition: VertexData.hpp:36
bool inqueue
Is this in the queue? Used for segmentation.
Definition: VertexData.hpp:44
This class defines the content of a vertex.
Definition: VertexData.hpp:31
Common definitions and utilities for all geometry algorithms This file is shared by cuda...
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
bool selected
Is vertex selected?
Definition: VertexData.hpp:45
float area
Area of cell.
Definition: VertexData.hpp:40
int label
Region to which vertex belongs.
Definition: VertexData.hpp:38
int saveId
Used when saving vertex.
Definition: VertexData.hpp:41
Point2f txpos
Texture coordinates.
Definition: VertexData.hpp:35
Point3f nrml
Normal vector.
Definition: VertexData.hpp:34