MorphoGraphX
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VertexData.hpp
Go to the documentation of this file.
1 #ifndef VERTEXDATA_HPP
2 #define VERTEXDATA_HPP
3 
10 #include <Config.hpp>
11 
12 #include <Geometry.hpp>
13 
14 namespace mgx {
21 class VertexData {
22 public:
26  float tsignal;
27  float signal;
28  int label;
29  char type;
30  float area;
31  int saveId;
32  int labcount;
33  bool margin;
34  bool inqueue;
35  bool selected;
36  ulong minb;
37 
38  // Constructor, set initial values
39  VertexData()
40  : pos(0, 0, 0)
41  , nrml(0, 0, 0)
42  , txpos(0, 0)
43  , tsignal(0)
44  , signal(1)
45  , label(0)
46  , type('j')
47  , area(0)
48  , saveId(0)
49  , labcount(0)
50  , margin(false)
51  , inqueue(false)
52  , selected(false)
53  , minb(0)
54  {
55  }
56 
57  virtual ~VertexData() {
58  }
59 };
60 } // namespace mgx
61 
62 #endif /*VERTEX_DATA_H*/
ulong minb
Closest border vertex.
Definition: VertexData.hpp:36
int labcount
of labels (cells) vertex connected to
Definition: VertexData.hpp:32
bool margin
Is vertex on the margin?
Definition: VertexData.hpp:33
float signal
Projected signal.
Definition: VertexData.hpp:27
Point3f pos
Position in space.
Definition: VertexData.hpp:23
char type
Type of vertex.
Definition: VertexData.hpp:29
float tsignal
Temp signal.
Definition: VertexData.hpp:26
bool inqueue
Is this in the queue? Used for segmentation.
Definition: VertexData.hpp:34
This class defines the content of a vertex.
Definition: VertexData.hpp:21
Common definitions and utilities for all geometry algorithms This file is shared by cuda...
bool selected
Is vertex selected?
Definition: VertexData.hpp:35
float area
Area of cell.
Definition: VertexData.hpp:30
int label
Region to which vertex belongs.
Definition: VertexData.hpp:28
int saveId
Used when saving vertex.
Definition: VertexData.hpp:31
Point2f txpos
Texture coordinates.
Definition: VertexData.hpp:25
Point3f nrml
Normal vector.
Definition: VertexData.hpp:24