DGtal 2.0.0
|
Aim: defines the concept of separable metrics. More...
#include <DGtal/geometry/volumes/distance/CSeparableMetric.h>
Public Types | |
typedef T::Point | Point |
Public Types inherited from DGtal::concepts::CMetricSpace< T > | |
typedef T::Point | Point |
typedef T::Space | Space |
typedef T::Value | Value |
typedef T::RawValue | RawValue |
Public Member Functions | |
BOOST_CONCEPT_USAGE (CSeparableMetric) | |
void | checkConstConstraints () const |
Public Member Functions inherited from DGtal::concepts::CMetricSpace< T > | |
BOOST_CONCEPT_ASSERT ((CSpace< Space >)) | |
BOOST_CONCEPT_ASSERT ((CQuantity< Value >)) | |
BOOST_CONCEPT_ASSERT ((CQuantity< RawValue >)) | |
BOOST_CONCEPT_USAGE (CMetricSpace) | |
void | checkConstConstraints () const |
Private Attributes | |
T | myX |
Point | u |
Point | v |
Point | w |
Point | start |
Point | end |
bool | myBool |
DGtal::Dimension | dim |
Aim: defines the concept of separable metrics.
Description of concept 'CSeparableMetric'
Separable metrics are metrics satsifying the monotonicity property. More formally, in dimension 2, consider two points p(x,y), q(x',y') with x<x. Let r( x'',0) be a point on the x-axis such that d(p,r) = d(q,r) and s(u,0) be another point on the x-axis. A metric d is monotonic if
u < x'' \implies d(p,s) \leq d(q,s)
and
u > x'' \implies d(p,s) \geq d(q,s)
Name | Expression | Type requirements | Return type | Precondition | Semantics | Post condition | Complexity |
---|---|---|---|---|---|---|---|
hiddenBy predicate | hiddenBy(u,v,w,startingPoint,endPoint,dim) | u,v,w,startingPoint,endPoint of type Point, dim of type DGtal::Dimension | startingPoint and endPoint only differ by their dim-th coordinate | returns true if the intersection between the segment [startingPoint,endPoint] and the Voronoi cell associated with v is empty (hidden on the segment by u and w Voronoi cells). | - |
ExactPredicateLpSeparableMetric, InexactPredicateLpSeparableMetric
T | the type that should be a model of concepts::CSeparableMetric. |
Definition at line 101 of file CSeparableMetric.h.
typedef T::Point DGtal::concepts::CSeparableMetric< T >::Point |
Definition at line 105 of file CSeparableMetric.h.
|
inline |
Definition at line 106 of file CSeparableMetric.h.
References checkConstConstraints().
|
inline |
Definition at line 110 of file CSeparableMetric.h.
References dim, end, myBool, myX, DGtal::concepts::ConceptUtils::sameType(), start, u, v, and w.
Referenced by BOOST_CONCEPT_USAGE().
|
private |
Definition at line 121 of file CSeparableMetric.h.
Referenced by checkConstConstraints().
|
private |
Definition at line 119 of file CSeparableMetric.h.
Referenced by checkConstConstraints().
|
private |
Definition at line 120 of file CSeparableMetric.h.
Referenced by checkConstConstraints().
|
private |
Definition at line 118 of file CSeparableMetric.h.
Referenced by checkConstConstraints().
|
private |
Definition at line 119 of file CSeparableMetric.h.
Referenced by checkConstConstraints().
|
private |
Definition at line 119 of file CSeparableMetric.h.
Referenced by checkConstConstraints().
|
private |
Definition at line 119 of file CSeparableMetric.h.
Referenced by checkConstConstraints().
|
private |
Definition at line 119 of file CSeparableMetric.h.
Referenced by checkConstConstraints().