DGtal 1.4.0
|
Aim: A point predicate which tells whether a point belongs to the set of pointels of a given digital surface or not. More...
#include <DGtal/geometry/surfaces/DigitalSurfacePredicate.h>
Public Types | |
using | Surface = TSurface |
using | Point = typename Surface::Point |
using | Integer = typename Point::Coordinate |
using | KSpace = typename Surface::KSpace |
Public Member Functions | |
DigitalSurfacePredicate () | |
DigitalSurfacePredicate (ConstAlias< Surface > aSurface) | |
~DigitalSurfacePredicate () | |
DigitalSurfacePredicate (const DigitalSurfacePredicate &other) | |
DigitalSurfacePredicate & | operator= (const DigitalSurfacePredicate &other) |
bool | operator() (Point const &aPoint) const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Private Member Functions | |
KSpace const & | space () const |
void | buildPointSet () |
Private Attributes | |
CountedConstPtrOrConstPtr< Surface > | mySurface |
UnorderedSetByBlock< Point > | myPointSet |
Aim: A point predicate which tells whether a point belongs to the set of pointels of a given digital surface or not.
Description of template class 'DigitalSurfacePredicate'
Internally the set of pointels is stored in a DGtal::UnorderedSetByBlock.
TSurface | any digital surface type. |
Models: A DigitalSurfacePredicate is a model of concepts::CPointPredicate.
Definition at line 65 of file DigitalSurfacePredicate.h.
using DGtal::DigitalSurfacePredicate< TSurface >::Integer = typename Point::Coordinate |
Definition at line 71 of file DigitalSurfacePredicate.h.
using DGtal::DigitalSurfacePredicate< TSurface >::KSpace = typename Surface::KSpace |
Definition at line 72 of file DigitalSurfacePredicate.h.
using DGtal::DigitalSurfacePredicate< TSurface >::Point = typename Surface::Point |
Definition at line 70 of file DigitalSurfacePredicate.h.
using DGtal::DigitalSurfacePredicate< TSurface >::Surface = TSurface |
Definition at line 69 of file DigitalSurfacePredicate.h.
DGtal::DigitalSurfacePredicate< TSurface >::DigitalSurfacePredicate | ( | ) |
Default constructor.
DGtal::DigitalSurfacePredicate< TSurface >::DigitalSurfacePredicate | ( | ConstAlias< Surface > | aSurface | ) |
Constructor.
aSurface | a digital surface. |
DGtal::DigitalSurfacePredicate< TSurface >::~DigitalSurfacePredicate | ( | ) |
Destructor.
DGtal::DigitalSurfacePredicate< TSurface >::DigitalSurfacePredicate | ( | const DigitalSurfacePredicate< TSurface > & | other | ) |
Copy constructor.
other | the object to clone. |
|
private |
Computes the set of pointels, fills the myPointSet object.
bool DGtal::DigitalSurfacePredicate< TSurface >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
bool DGtal::DigitalSurfacePredicate< TSurface >::operator() | ( | Point const & | aPoint | ) | const |
Test whether a point is a pointel of a digital surface or not.
aPoint | any digital point. |
DigitalSurfacePredicate & DGtal::DigitalSurfacePredicate< TSurface >::operator= | ( | const DigitalSurfacePredicate< TSurface > & | other | ) |
Copy assignment operator.
other | the object to copy. |
void DGtal::DigitalSurfacePredicate< TSurface >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
private |
Get the Khalimsky space associated with the digital surface.
|
private |
The set of pointels.
Definition at line 138 of file DigitalSurfacePredicate.h.
|
private |
A pointer on the digital surface.
Definition at line 137 of file DigitalSurfacePredicate.h.