TTK
Loading...
Searching...
No Matches
FTRSegmentation.h
Go to the documentation of this file.
1
10
11#pragma once
12
13#include "FTRDataTypes.h"
14#include "FTRScalars.h"
15
16#ifndef TTK_ENABLE_KAMIKAZE
17#include <iostream>
18#endif
19#include <sstream>
20
21#include <list>
22#include <tuple>
23#include <vector>
24
25namespace ttk {
26 namespace ftr {
27 using segm_it = std::vector<idVertex>::iterator;
28 using segm_rev_it = std::vector<idVertex>::reverse_iterator;
29 using segm_const_it = std::vector<idVertex>::const_iterator;
30 using segm_const_rev_it = std::vector<idVertex>::const_reverse_iterator;
31
32 class Segment {
33 private:
34 std::vector<idVertex> vertices_;
35
36 public:
37 explicit Segment(idVertex size);
39
40 segm_const_it begin() const;
41 segm_const_it end() const;
42 segm_it begin();
43 segm_it end();
44 idVertex size() const;
45 void reserve(const idVertex size);
46 void emplace_back(const idVertex v);
47
48 idVertex operator[](const size_t &idx) const;
49 idVertex &operator[](const size_t &idx);
50 };
51
52 } // namespace ftr
53} // namespace ttk
TTK processing package that deal with segmentation of an arc in the Reeb Graph.
idVertex operator[](const size_t &idx) const
segm_const_it begin() const
idVertex size() const
segm_const_it end() const
void emplace_back(const idVertex v)
void reserve(const idVertex size)
std::vector< idVertex >::const_iterator segm_const_it
std::vector< idVertex >::reverse_iterator segm_rev_it
std::vector< idVertex >::iterator segm_it
std::vector< idVertex >::const_reverse_iterator segm_const_rev_it
SimplexId idVertex
Vertex index in scalars_.
The Topology ToolKit.