TTK
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
z
Functions
a
c
d
f
g
i
l
m
o
p
r
s
t
u
v
z
Variables
b
c
d
e
f
g
i
l
m
o
p
r
s
u
v
w
y
Typedefs
b
c
d
e
g
i
l
m
n
o
p
r
s
t
u
v
Enumerations
Enumerator
a
b
c
f
g
h
j
l
m
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
c
e
g
i
k
n
p
q
r
s
t
v
w
Enumerations
b
c
d
e
f
m
p
r
s
t
v
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
j
m
n
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
Macros
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
core
base
contourForestsTree
ContourForestsTree.h
Go to the documentation of this file.
1
19
20
#pragma once
21
22
#include <memory>
23
#include <queue>
24
#include <set>
25
26
// base code includes
27
#include <
Geometry.h
>
28
#include <
Triangulation.h
>
29
#include <
Wrapper.h
>
30
31
#include "
DeprecatedDataTypes.h
"
32
#include "
ExtendedUF.h
"
33
#include "
MergeTree.h
"
34
35
namespace
ttk
{
36
namespace
cf {
37
class
ContourForestsTree
:
public
MergeTree
{
38
friend
class
ContourForests
;
39
40
protected
:
41
MergeTree
jt_
,
st_
;
42
43
public
:
44
// -----------------
45
// Constructors
46
// -----------------
47
// {
48
49
ContourForestsTree
(
const
std::shared_ptr<Params> ¶ms,
50
const
std::shared_ptr<Scalars> &scalars,
51
idPartition
part = nullPartition);
52
~ContourForestsTree
()
override
;
53
54
// }
55
// -----------------
56
// INITIALIZE
57
// -----------------
58
// {
59
60
void
flush
() {
61
MergeTree::flush
();
62
jt_
.
flush
();
63
st_
.
flush
();
64
}
60
void
flush
() {
…
}
65
66
// }
67
// -----------------
68
// ACCESSOR
69
// -----------------
70
// {
71
72
inline
MergeTree
*
getJoinTree
() {
73
return
&
jt_
;
74
}
72
inline
MergeTree
*
getJoinTree
() {
…
}
75
76
inline
MergeTree
*
getSplitTree
() {
77
return
&
st_
;
78
}
76
inline
MergeTree
*
getSplitTree
() {
…
}
79
80
inline
MergeTree
*
getTree
(
const
TreeType
&tt) {
81
switch
(tt) {
82
case
TreeType::JoinAndSplit
:
83
case
TreeType::Split
:
84
return
getSplitTree
();
85
break
;
86
case
TreeType::Join
:
87
return
getJoinTree
();
88
break
;
89
case
TreeType::Contour
:
90
return
this
;
91
break
;
92
}
93
return
this
;
94
}
80
inline
MergeTree
*
getTree
(
const
TreeType
&tt) {
…
}
95
96
// }
97
// -----------------
98
// PROCESS
99
// -----------------
100
// {
101
103
int
combine
(
const
SimplexId
&seed0,
104
const
SimplexId
&seed1,
105
std::list<std::vector<std::pair<SimplexId, bool>>> &storage);
106
107
private
:
108
// -----------------
109
// PROCESS
110
// -----------------
111
// {
112
114
template
<
typename
scalarType>
115
void
initDataMT();
116
117
// }
118
};
37
class
ContourForestsTree
:
public
MergeTree
{
…
};
119
}
// namespace cf
120
}
// namespace ttk
DeprecatedDataTypes.h
ExtendedUF.h
Geometry.h
MergeTree.h
Triangulation.h
Wrapper.h
ttk::cf::ContourForestsTree
Definition
ContourForestsTree.h:37
ttk::cf::ContourForestsTree::getJoinTree
MergeTree * getJoinTree()
Definition
ContourForestsTree.h:72
ttk::cf::ContourForestsTree::getSplitTree
MergeTree * getSplitTree()
Definition
ContourForestsTree.h:76
ttk::cf::ContourForestsTree::~ContourForestsTree
~ContourForestsTree() override
ttk::cf::ContourForestsTree::jt_
MergeTree jt_
Definition
ContourForestsTree.h:41
ttk::cf::ContourForestsTree::st_
MergeTree st_
Definition
ContourForestsTree.h:41
ttk::cf::ContourForestsTree::flush
void flush()
Definition
ContourForestsTree.h:60
ttk::cf::ContourForestsTree::combine
int combine(const SimplexId &seed0, const SimplexId &seed1, std::list< std::vector< std::pair< SimplexId, bool > > > &storage)
Combine tree with Natarajan's algorithm.
Definition
ContourForestsTree.cpp:30
ttk::cf::ContourForestsTree::getTree
MergeTree * getTree(const TreeType &tt)
Definition
ContourForestsTree.h:80
ttk::cf::ContourForests
Definition
ContourForests.h:117
ttk::cf::MergeTree
Definition
MergeTree.h:37
ttk::cf::MergeTree::ContourForestsTree
friend class ContourForestsTree
Definition
MergeTree.h:39
ttk::cf::MergeTree::flush
void flush()
clear local data for new computation
Definition
MergeTree.h:87
ttk::cf::TreeType
TreeType
Definition
DeprecatedDataTypes.h:76
ttk::cf::JoinAndSplit
@ JoinAndSplit
Definition
DeprecatedDataTypes.h:76
ttk::cf::Join
@ Join
Definition
DeprecatedDataTypes.h:76
ttk::cf::Contour
@ Contour
Definition
DeprecatedDataTypes.h:76
ttk::cf::Split
@ Split
Definition
DeprecatedDataTypes.h:76
ttk::cf::idPartition
numThread idPartition
Definition
DeprecatedDataTypes.h:50
ttk
The Topology ToolKit.
Definition
AbstractTriangulation.h:51
ttk::SimplexId
int SimplexId
Identifier type for simplices of any dimension.
Definition
DataTypes.h:22
Generated on Thu Sep 26 2024 06:50:17 for TTK by
1.9.8