DGtal
1.5.beta
|
Aim: Constructs a domain limited to the given digital set. More...
#include <DGtal/kernel/sets/DigitalSetDomain.h>
Public Types | |
typedef TDigitalSet | DigitalSet |
typedef DigitalSet::Domain | Domain |
typedef Domain::Space | Space |
typedef Domain::Integer | Integer |
typedef NumberTraits< Integer >::IsBounded | IsBounded |
typedef Domain::Point | Point |
typedef Domain::Vector | Vector |
typedef Domain::Size | Size |
typedef Domain::Dimension | Dimension |
typedef DigitalSet::ConstIterator | ConstIterator |
typedef DigitalSet | Predicate |
Public Member Functions | |
~DigitalSetDomain () | |
DigitalSetDomain (ConstAlias< DigitalSet > aSet) | |
DigitalSetDomain (const DigitalSetDomain &other) | |
ConstIterator | begin (const Point &aPoint) const |
ConstIterator | begin () const |
ConstIterator | end () const |
const Point & | lowerBound () const |
const Point & | upperBound () const |
Size | size () const |
bool | isInside (const Point &p) const |
const Predicate & | predicate () const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Protected Member Functions | |
DigitalSetDomain () | |
Private Member Functions | |
DigitalSetDomain & | operator= (const DigitalSetDomain &other) |
Private Attributes | |
const DigitalSet * | mySet |
Point | myUpperBound |
Point | myLowerBound |
Aim: Constructs a domain limited to the given digital set.
Description of template class 'DigitalSetDomain'
Definition at line 59 of file DigitalSetDomain.h.
typedef DigitalSet::ConstIterator DGtal::DigitalSetDomain< TDigitalSet >::ConstIterator |
Definition at line 72 of file DigitalSetDomain.h.
typedef TDigitalSet DGtal::DigitalSetDomain< TDigitalSet >::DigitalSet |
Definition at line 63 of file DigitalSetDomain.h.
typedef Domain::Dimension DGtal::DigitalSetDomain< TDigitalSet >::Dimension |
Definition at line 71 of file DigitalSetDomain.h.
typedef DigitalSet::Domain DGtal::DigitalSetDomain< TDigitalSet >::Domain |
Definition at line 64 of file DigitalSetDomain.h.
typedef Domain::Integer DGtal::DigitalSetDomain< TDigitalSet >::Integer |
Definition at line 66 of file DigitalSetDomain.h.
typedef NumberTraits<Integer>::IsBounded DGtal::DigitalSetDomain< TDigitalSet >::IsBounded |
Definition at line 67 of file DigitalSetDomain.h.
typedef Domain::Point DGtal::DigitalSetDomain< TDigitalSet >::Point |
Definition at line 68 of file DigitalSetDomain.h.
typedef DigitalSet DGtal::DigitalSetDomain< TDigitalSet >::Predicate |
Definition at line 73 of file DigitalSetDomain.h.
typedef Domain::Size DGtal::DigitalSetDomain< TDigitalSet >::Size |
Definition at line 70 of file DigitalSetDomain.h.
typedef Domain::Space DGtal::DigitalSetDomain< TDigitalSet >::Space |
Definition at line 65 of file DigitalSetDomain.h.
typedef Domain::Vector DGtal::DigitalSetDomain< TDigitalSet >::Vector |
Definition at line 69 of file DigitalSetDomain.h.
DGtal::DigitalSetDomain< TDigitalSet >::~DigitalSetDomain | ( | ) |
Destructor.
DGtal::DigitalSetDomain< TDigitalSet >::DigitalSetDomain | ( | ConstAlias< DigitalSet > | aSet | ) |
Constructor from set.
aSet | the digital set (only aliased). |
DGtal::DigitalSetDomain< TDigitalSet >::DigitalSetDomain | ( | const DigitalSetDomain< TDigitalSet > & | other | ) |
Copy constructor.
other | the object to clone. |
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
ConstIterator DGtal::DigitalSetDomain< TDigitalSet >::begin | ( | ) | const |
ConstIterator DGtal::DigitalSetDomain< TDigitalSet >::begin | ( | const Point & | aPoint | ) | const |
aPoint | the point to get an iterator on. |
ConstIterator DGtal::DigitalSetDomain< TDigitalSet >::end | ( | ) | const |
bool DGtal::DigitalSetDomain< TDigitalSet >::isInside | ( | const Point & | p | ) | const |
p | any point. |
bool DGtal::DigitalSetDomain< TDigitalSet >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
const Point& DGtal::DigitalSetDomain< TDigitalSet >::lowerBound | ( | ) | const |
Returns the lowest point of the space diagonal.
|
private |
Assignment.
other | the object to copy. |
const Predicate& DGtal::DigitalSetDomain< TDigitalSet >::predicate | ( | ) | const |
void DGtal::DigitalSetDomain< TDigitalSet >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Size DGtal::DigitalSetDomain< TDigitalSet >::size | ( | ) | const |
Returns the size.
const Point& DGtal::DigitalSetDomain< TDigitalSet >::upperBound | ( | ) | const |
Returns the highest point of the space diagonal.
|
private |
lower bound of the bounding box.
Definition at line 178 of file DigitalSetDomain.h.
|
private |
The set describing the points of the domain.
Definition at line 168 of file DigitalSetDomain.h.
|
private |
upper bound of the bounding box.
Definition at line 173 of file DigitalSetDomain.h.