Skeleton_blocker_simple_geometric_traits.h
1 /* This file is part of the Gudhi Library. The Gudhi library
2  * (Geometric Understanding in Higher Dimensions) is a generic C++
3  * library for computational topology.
4  *
5  * Author(s): David Salinas
6  *
7  * Copyright (C) 2014 Inria
8  *
9  * This program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program. If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_GEOMETRIC_TRAITS_H_
24 #define SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_GEOMETRIC_TRAITS_H_
25 
26 #include <gudhi/Skeleton_blocker/Skeleton_blocker_simple_traits.h>
27 
28 #include <string>
29 #include <sstream>
30 
31 namespace Gudhi {
32 
33 namespace skeleton_blocker {
34 
41 template<typename GeometryTrait>
44  public:
45  typedef GeometryTrait GT;
46  typedef typename GT::Point Point;
48  typedef typename Skeleton_blocker_simple_traits::Graph_vertex Simple_vertex;
49 
53  class Simple_geometric_vertex : public Simple_vertex {
54  template<class ComplexGeometricTraits> friend class Skeleton_blocker_geometric_complex;
55  private:
56  Point point_;
57 
58  Point& point() {
59  return point_;
60  }
61 
62  const Point& point() const {
63  return point_;
64  }
65  };
66 
67  class Simple_geometric_edge :
68  public Skeleton_blocker_simple_traits::Graph_edge {
69  int index_;
70  public:
71  Simple_geometric_edge()
72  : Skeleton_blocker_simple_traits::Graph_edge(),
73  index_(-1) { }
74 
80  int& index() {
81  return index_;
82  }
83 
84  int index() const {
85  return index_;
86  }
87  };
88 
90  typedef Skeleton_blocker_simple_traits::Graph_edge Graph_edge;
91 };
92 
93 } // namespace skeleton_blocker
94 
95 namespace skbl = skeleton_blocker;
96 
97 } // namespace Gudhi
98 
99 #endif // SKELETON_BLOCKER_SKELETON_BLOCKER_SIMPLE_GEOMETRIC_TRAITS_H_
GeometryTrait GT
Definition: SkeletonBlockerGeometricDS.h:44
Vertex with a point attached.
Definition: Skeleton_blocker_simple_geometric_traits.h:53
Definition: SimplicialComplexForAlpha.h:26
Class that represents a geometric complex that can be simplified. The class allows access to points o...
Definition: Skeleton_blocker_geometric_complex.h:40
GeometryTrait::Point Point
Definition: SkeletonBlockerGeometricDS.h:49
Global and local handle similar to boost subgraphs. Vertices are stored in a vector. For the root simplicial complex, the local and global descriptors are the same. For a subcomplex L and one of its vertices &#39;v&#39;, the local descriptor of &#39;v&#39; is its position in the vertex vector of the subcomplex L whereas its global descriptor is the position of &#39;v&#39; in the vertex vector of the root simplicial complex.
Definition: Skeleton_blocker_simple_traits.h:50
Simple traits that is a model of SkeletonBlockerDS and can be passed as a template argument to Skelet...
Definition: Skeleton_blocker_simple_traits.h:41
Simple traits that is a model of SkeletonBlockerGeometricDS and can be passed as a template argument ...
Definition: Skeleton_blocker_simple_geometric_traits.h:42
GUDHI  Version 2.2.0  - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding.  - Copyright : GPL v3 Generated on Thu Jun 14 2018 15:00:55 for GUDHI by Doxygen 1.8.13