TTK
Loading...
Searching...
No Matches
DeprecatedDataTypes.h
Go to the documentation of this file.
1
19
20#pragma once
21
22#include <DataTypes.h>
23#include <limits>
24#include <tuple>
25
26namespace ttk {
27 namespace cf {
28
29 // Types
30 // --------
31
33 using idSuperArc = long unsigned int;
35 using idNode = unsigned int;
36
38 // Warning, in long long int the max super arc is -1, might not be able to
39 // deal with too large data
40 using idCorresp = long long int;
41
45
51
53 using ufDataType = long int;
54
55 // Special values for types
56 // --------------------------
57
58 // QUESTION impact on performance using max (0 would be faster alloacted)
59 static const idSuperArc nullSuperArc
60 = std::numeric_limits<idSuperArc>::max();
61 static const idNode nullNodes = std::numeric_limits<idNode>::max();
62 static const SimplexId nullVertex = std::numeric_limits<SimplexId>::max();
63 static const idCorresp nullCorresp = std::numeric_limits<idCorresp>::max();
64 static const idSegment nullSegment = std::numeric_limits<idSegment>::max();
65 static const idInterface nullInterface
66 = std::numeric_limits<idInterface>::max();
67 static const idPartition nullPartition
68 = std::numeric_limits<idPartition>::max();
69 static const ufDataType nullUfData = std::numeric_limits<ufDataType>::max();
70 static constexpr ufDataType specialUfData
71 = std::numeric_limits<ufDataType>::max() - 1;
72
73 // Enum data
74 // ----------
75
76 enum TreeType : char { Join = 0, Split = 1, Contour = 2, JoinAndSplit = 3 };
77
78 enum SimplifMethod : char { Persist = 0, Span = 1, NbVert = 2, NbArc = 3 };
79
81
82 enum class TreeComponent {
83 Arc = -1,
85 Saddle1,
86 Saddle2,
88 };
89
90 enum class ArcType {
91 Min_arc = 0,
92 Max_arc,
96 };
97 } // namespace cf
98} // namespace ttk
numThread idInterface
index of the interface/partition in vect_interfaces_
idSuperArc idSegment
for the segmentation, we have an array of segment containing area of the mesh
long long int idCorresp
type used to recover Node/Arc in vert2tree SIGNED ONLY
numThread idPartition
long unsigned int idSuperArc
SuperArc index in vect_superArcs_.
long int ufDataType
type stored by UnionFind
unsigned int idNode
Node index in vect_nodes_.
ThreadId numThread
type use to store threads related numbers
The Topology ToolKit.
int ThreadId
Identifier type for threads (i.e. with OpenMP).
Definition DataTypes.h:26
int SimplexId
Identifier type for simplices of any dimension.
Definition DataTypes.h:22