DGtal  1.1.0
SurfelSetPredicate.h
1 
17 #pragma once
18 
31 #if defined(SurfelSetPredicate_RECURSES)
32 #error Recursive header files inclusion detected in SurfelSetPredicate.h
33 #else // defined(SurfelSetPredicate_RECURSES)
34 
35 #define SurfelSetPredicate_RECURSES
36 
37 #if !defined SurfelSetPredicate_h
38 
39 #define SurfelSetPredicate_h
40 
42 // Inclusions
43 #include <iostream>
44 #include "DGtal/base/Common.h"
45 #include "DGtal/base/ConstAlias.h"
46 #include "DGtal/kernel/BasicPointPredicates.h"
48 
49 // @since 0.8 In DGtal::functors
50 namespace DGtal {
51  namespace functors {
52 
54  // template class SurfelSetPredicate
62  template < typename TSurfelSet,
63  typename TSurfel = typename TSurfelSet::Surfel >
65  {
66  // ----------------------- Standard services ------------------------------
67  public:
68  typedef TSurfelSet SurfelSet;
69  typedef TSurfel Surfel;
70 
76 
82 
89 
94  bool operator()( const Surfel & s ) const;
95 
96  // ------------------------- Hidden services ------------------------------
97  protected:
98 
104 
105  // ------------------------- Internals ------------------------------------
106  private:
107  const SurfelSet* mySet;
108 
109  }; // end of struct SurfelSetPredicate
110 
111 
112 } // namespace functors
113 } // namespace DGtal
114 
115 
117 // Includes inline functions.
118 #include "DGtal/topology/SurfelSetPredicate.ih"
119 
120 // //
122 
123 #endif // !defined SurfelSetPredicate_h
124 
125 #undef SurfelSetPredicate_RECURSES
126 #endif // else defined(SurfelSetPredicate_RECURSES)
DGtal::functors::SurfelSetPredicate::SurfelSetPredicate
SurfelSetPredicate()
DGtal::ConstAlias
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Definition: ConstAlias.h:187
DGtal::functors::SurfelSetPredicate::SurfelSetPredicate
SurfelSetPredicate(ConstAlias< SurfelSet > aSet)
DGtal::functors::SurfelSetPredicate
Aim: The predicate returning true iff the point is in the domain given at construction.
Definition: SurfelSetPredicate.h:65
DGtal::functors::SurfelSetPredicate::operator()
bool operator()(const Surfel &s) const
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition: ClosedIntegerHalfPlane.h:49
DGtal::functors::SurfelSetPredicate::SurfelSetPredicate
SurfelSetPredicate(const SurfelSetPredicate &other)
DGtal::functors::SurfelSetPredicate::SurfelSet
TSurfelSet SurfelSet
Definition: SurfelSetPredicate.h:68
DGtal::functors::SurfelSetPredicate::mySet
const SurfelSet * mySet
Definition: SurfelSetPredicate.h:107
DGtal::functors::SurfelSetPredicate::Surfel
TSurfel Surfel
Definition: SurfelSetPredicate.h:69
DGtal::functors::SurfelSetPredicate::operator=
SurfelSetPredicate & operator=(const SurfelSetPredicate &other)
SurfelSet
MyDigitalSurface::SurfelSet SurfelSet
Definition: greedy-plane-segmentation-ex2.cpp:95