DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
PlaneProbingRNeighborhood.h
1
16
17
#pragma once
18
30
31
#if defined(PlaneProbingRNeighborhood_RECURSES)
32
#error Recursive header files inclusion detected in PlaneProbingRNeighborhood.h
33
#else
// defined(PlaneProbingRNeighborhood_RECURSES)
35
#define PlaneProbingRNeighborhood_RECURSES
36
37
#if !defined PlaneProbingRNeighborhood_h
39
#define PlaneProbingRNeighborhood_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/geometry/helpers/PlaneProbingEstimatorHelper.h"
46
#include "DGtal/geometry/surfaces/estimation/PlaneProbingNeighborhood.h"
47
#include "DGtal/kernel/CPointPredicate.h"
49
50
namespace
DGtal
51
{
52
54
// template class PlaneProbingRNeighborhood
61
template
<
typename
TPredicate>
62
class
PlaneProbingRNeighborhood
:
public
PlaneProbingNeighborhood
<TPredicate>
63
{
64
BOOST_CONCEPT_ASSERT
((
concepts::CPointPredicate<TPredicate>
));
65
66
// ----------------------- Public types ------------------------------
67
public
:
68
using
Predicate
= TPredicate;
69
using
Point
=
typename
TPredicate::Point;
70
using
Triangle
=
typename
PlaneProbingNeighborhood<TPredicate>::Triangle
;
71
using
Integer
=
typename
PlaneProbingNeighborhood<TPredicate>::Integer
;
72
using
PointOnProbingRay
=
typename
PlaneProbingNeighborhood<TPredicate>::PointOnProbingRay
;
73
using
HexagonState
=
typename
PlaneProbingNeighborhood<TPredicate>::HexagonState
;
74
75
// ----------------------- Standard services ------------------------------
76
public
:
80
PlaneProbingRNeighborhood
() =
delete
;
81
89
PlaneProbingRNeighborhood
(
Predicate
const
& aPredicate,
Point
const
& aQ,
Triangle
const
& aM);
90
94
~PlaneProbingRNeighborhood
();
95
100
PlaneProbingRNeighborhood
(
const
PlaneProbingRNeighborhood
& other ) =
delete
;
101
106
PlaneProbingRNeighborhood
(
PlaneProbingRNeighborhood
&& other ) =
delete
;
107
113
PlaneProbingRNeighborhood
&
operator=
(
const
PlaneProbingRNeighborhood
& other ) =
delete
;
114
120
PlaneProbingRNeighborhood
&
operator=
(
PlaneProbingRNeighborhood
&& other ) =
delete
;
121
122
// ----------------------- Plane Probing services ------------------------------
123
public
:
124
virtual
HexagonState
hexagonState
()
override
;
125
126
// ----------------------- Interface --------------------------------------
127
public
:
128
133
void
selfDisplay
( std::ostream & out )
const
;
134
139
bool
isValid
()
const
;
140
141
// ------------------------- Protected Data ------------------------------
142
protected
:
143
144
// ------------------------- Private Data --------------------------------
145
private
:
146
147
// ------------------------- Hidden services ------------------------------
148
protected
:
155
template
<
typename
TPo
int
Adapter>
156
TPointAdapter
closestPointOnRayLogWithPredicate
(TPointAdapter
const
& aRay)
const
;
157
164
template
<
typename
TPo
int
Adapter>
165
TPointAdapter
closestPointOnRayLinearWithPredicate
(TPointAdapter
const
& aRay)
const
;
166
167
// ------------------------- Internals ------------------------------------
168
private
:
169
170
};
// end of class PlaneProbingRNeighborhood
171
172
179
template
<
typename
TPredicate>
180
std::ostream&
181
operator<<
( std::ostream & out,
const
PlaneProbingRNeighborhood<TPredicate>
&
object
);
182
183
}
// namespace DGtal
184
185
187
// Includes inline functions.
188
#include "DGtal/geometry/surfaces/estimation/PlaneProbingRNeighborhood.ih"
189
190
// //
192
193
#endif
// !defined PlaneProbingRNeighborhood_h
194
195
#undef PlaneProbingRNeighborhood_RECURSES
196
#endif
// else defined(PlaneProbingRNeighborhood_RECURSES)
DGtal::PlaneProbingNeighborhood::PointOnProbingRay
detail::PointOnProbingRay< Integer, Index > PointOnProbingRay
Definition
PlaneProbingNeighborhood.h:77
DGtal::PlaneProbingNeighborhood::Triangle
std::array< Vector, 3 > Triangle
Definition
PlaneProbingNeighborhood.h:75
DGtal::PlaneProbingNeighborhood::PlaneProbingNeighborhood
PlaneProbingNeighborhood()=delete
DGtal::PlaneProbingNeighborhood::HexagonState
HexagonState
Definition
PlaneProbingNeighborhood.h:83
DGtal::PlaneProbingNeighborhood::Integer
typename Point::Coordinate Integer
Definition
PlaneProbingNeighborhood.h:74
DGtal::PlaneProbingRNeighborhood
Aim: Represent a way to probe the R-neighborhood.
Definition
PlaneProbingRNeighborhood.h:63
DGtal::PlaneProbingRNeighborhood::PointOnProbingRay
typename PlaneProbingNeighborhood< TPredicate >::PointOnProbingRay PointOnProbingRay
Definition
PlaneProbingRNeighborhood.h:72
DGtal::PlaneProbingRNeighborhood::PlaneProbingRNeighborhood
PlaneProbingRNeighborhood()=delete
DGtal::PlaneProbingRNeighborhood::~PlaneProbingRNeighborhood
~PlaneProbingRNeighborhood()
DGtal::PlaneProbingRNeighborhood::PlaneProbingRNeighborhood
PlaneProbingRNeighborhood(Predicate const &aPredicate, Point const &aQ, Triangle const &aM)
DGtal::PlaneProbingRNeighborhood::Point
typename TPredicate::Point Point
Definition
PlaneProbingRNeighborhood.h:69
DGtal::PlaneProbingRNeighborhood::Predicate
TPredicate Predicate
Definition
PlaneProbingRNeighborhood.h:68
DGtal::PlaneProbingRNeighborhood::isValid
bool isValid() const
DGtal::PlaneProbingRNeighborhood::selfDisplay
void selfDisplay(std::ostream &out) const
DGtal::PlaneProbingRNeighborhood::closestPointOnRayLinearWithPredicate
TPointAdapter closestPointOnRayLinearWithPredicate(TPointAdapter const &aRay) const
DGtal::PlaneProbingRNeighborhood::Integer
typename PlaneProbingNeighborhood< TPredicate >::Integer Integer
Definition
PlaneProbingRNeighborhood.h:71
DGtal::PlaneProbingRNeighborhood::PlaneProbingRNeighborhood
PlaneProbingRNeighborhood(const PlaneProbingRNeighborhood &other)=delete
DGtal::PlaneProbingRNeighborhood::closestPointOnRayLogWithPredicate
TPointAdapter closestPointOnRayLogWithPredicate(TPointAdapter const &aRay) const
DGtal::PlaneProbingRNeighborhood::HexagonState
typename PlaneProbingNeighborhood< TPredicate >::HexagonState HexagonState
Definition
PlaneProbingRNeighborhood.h:73
DGtal::PlaneProbingRNeighborhood::PlaneProbingRNeighborhood
PlaneProbingRNeighborhood(PlaneProbingRNeighborhood &&other)=delete
DGtal::PlaneProbingRNeighborhood::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((concepts::CPointPredicate< TPredicate >))
DGtal::PlaneProbingRNeighborhood::Triangle
typename PlaneProbingNeighborhood< TPredicate >::Triangle Triangle
Definition
PlaneProbingRNeighborhood.h:70
DGtal::PlaneProbingRNeighborhood::operator=
PlaneProbingRNeighborhood & operator=(const PlaneProbingRNeighborhood &other)=delete
DGtal::PlaneProbingRNeighborhood::hexagonState
virtual HexagonState hexagonState() override
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::operator<<
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
DGtal::concepts::CPointPredicate
Aim: Defines a predicate on a point.
Definition
CPointPredicate.h:81
src
DGtal
geometry
surfaces
estimation
PlaneProbingRNeighborhood.h
Generated on
for DGtal by
1.18.0