DGtal
1.0.beta
|
#include <DGtal/kernel/domains/HyperRectDomain.h>
Data Structures | |
struct | ConstSubRange |
Public Types | |
typedef HyperRectDomain< TSpace > | Self |
typedef TSpace | Space |
typedef HyperRectDomain< Space > | Domain |
typedef Space::Point | Point |
typedef Space::Integer | Integer |
typedef Space::Vector | Vector |
typedef Space::Dimension | Dimension |
typedef Space::Size | Size |
typedef Point::Coordinate | Coordinate |
typedef HyperRectDomain_Iterator< Point > | Iterator |
typedef myreverse_iterator< Iterator > | ReverseIterator |
typedef Iterator | ConstIterator |
typedef ReverseIterator | ConstReverseIterator |
typedef functors::IsWithinPointPredicate< Point > | Predicate |
Public Member Functions | |
BOOST_STATIC_CONSTANT (Dimension, dimension=Space::dimension) | |
HyperRectDomain () | |
HyperRectDomain (const Point &aPointA, const Point &aPointB) | |
~HyperRectDomain () | |
HyperRectDomain (const HyperRectDomain &other) | |
HyperRectDomain & | operator= (const HyperRectDomain &other) |
const ConstIterator & | begin () const |
ConstIterator | begin (const Point &aPoint) const |
const ConstIterator & | end () const |
ConstReverseIterator | rbegin () const |
ConstReverseIterator | rbegin (const Point &aPoint) const |
ConstReverseIterator | rend () const |
ConstSubRange | subRange (const std::vector< Dimension > &permutation) const |
ConstSubRange | subRange (const std::vector< Dimension > &permutation, const Point &startingPoint) const |
ConstSubRange | subRange (Dimension adim, const Point &startingPoint) const |
ConstSubRange | subRange (Dimension adim1, Dimension adim2, const Point &startingPoint) const |
ConstSubRange | subRange (Dimension adim1, Dimension adim2, Dimension adim3, const Point &startingPoint) const |
ConstSubRange | subRange (std::initializer_list< Dimension > permutation) |
ConstSubRange | subRange (std::initializer_list< Dimension > permutation, const Point &startingPoint) |
Size | size () const |
const Point & | lowerBound () const |
const Point & | upperBound () const |
bool | isInside (const Point &p) const |
bool | isEmpty () const |
const Predicate & | predicate () const |
std::string | className () const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Data Fields | |
Point | myLowerBound |
Point | myUpperBound |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CSpace< TSpace >)) | |
Private Attributes | |
Predicate | myPredicate |
ConstIterator | myIteratorBegin |
ConstIterator | myIteratorEnd |
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
Description of class 'HyperRectDomain'
The following code snippet demonstrates how to use HyperRectDomain
Definition at line 92 of file HyperRectDomain.h.
typedef Iterator DGtal::HyperRectDomain< TSpace >::ConstIterator |
Definition at line 118 of file HyperRectDomain.h.
typedef ReverseIterator DGtal::HyperRectDomain< TSpace >::ConstReverseIterator |
Definition at line 119 of file HyperRectDomain.h.
typedef Point::Coordinate DGtal::HyperRectDomain< TSpace >::Coordinate |
Definition at line 111 of file HyperRectDomain.h.
typedef Space::Dimension DGtal::HyperRectDomain< TSpace >::Dimension |
Definition at line 109 of file HyperRectDomain.h.
typedef HyperRectDomain<Space> DGtal::HyperRectDomain< TSpace >::Domain |
Definition at line 105 of file HyperRectDomain.h.
typedef Space::Integer DGtal::HyperRectDomain< TSpace >::Integer |
Definition at line 107 of file HyperRectDomain.h.
typedef HyperRectDomain_Iterator<Point> DGtal::HyperRectDomain< TSpace >::Iterator |
Typedef of domain iterators.
Definition at line 116 of file HyperRectDomain.h.
typedef Space::Point DGtal::HyperRectDomain< TSpace >::Point |
Definition at line 106 of file HyperRectDomain.h.
typedef functors::IsWithinPointPredicate<Point> DGtal::HyperRectDomain< TSpace >::Predicate |
Definition at line 121 of file HyperRectDomain.h.
typedef myreverse_iterator<Iterator> DGtal::HyperRectDomain< TSpace >::ReverseIterator |
Definition at line 117 of file HyperRectDomain.h.
typedef HyperRectDomain<TSpace> DGtal::HyperRectDomain< TSpace >::Self |
Definition at line 99 of file HyperRectDomain.h.
typedef Space::Size DGtal::HyperRectDomain< TSpace >::Size |
Definition at line 110 of file HyperRectDomain.h.
typedef TSpace DGtal::HyperRectDomain< TSpace >::Space |
Definition at line 103 of file HyperRectDomain.h.
typedef Space::Vector DGtal::HyperRectDomain< TSpace >::Vector |
Definition at line 108 of file HyperRectDomain.h.
DGtal::HyperRectDomain< TSpace >::HyperRectDomain | ( | ) |
Default Constructor.
DGtal::HyperRectDomain< TSpace >::HyperRectDomain | ( | const Point & | aPointA, |
const Point & | aPointB | ||
) |
Constructor from two points
aPointA | and |
aPointB | defining the space diagonal. |
DGtal::HyperRectDomain< TSpace >::~HyperRectDomain | ( | ) |
Destructor.
DGtal::HyperRectDomain< TSpace >::HyperRectDomain | ( | const HyperRectDomain< TSpace > & | other | ) |
Copy constructor.
other | the object to clone. Forbidden by default. |
|
inline |
begin method.
Definition at line 161 of file HyperRectDomain.h.
Referenced by DGtal::functions::generateSimplicityTable(), DGtal::functions::generateVoxelComplexTable(), DGtal::Shortcuts< TKSpace >::makeBinaryImage(), DGtal::HyperRectDomain< Space >::rbegin(), DGtal::HyperRectDomain< Space >::rend(), and DGtal::ImageFactoryFromHDF5< TImageContainer >::requestImage().
|
inline |
begin method from a given point.
aPoint | the initial point. |
Definition at line 172 of file HyperRectDomain.h.
|
private |
DGtal::HyperRectDomain< TSpace >::BOOST_STATIC_CONSTANT | ( | Dimension | , |
dimension | = Space::dimension |
||
) |
std::string DGtal::HyperRectDomain< TSpace >::className | ( | ) | const |
Default drawing style object.
|
inline |
end method.
Definition at line 186 of file HyperRectDomain.h.
Referenced by DGtal::functions::generateSimplicityTable(), DGtal::functions::generateVoxelComplexTable(), DGtal::Shortcuts< TKSpace >::makeBinaryImage(), DGtal::HyperRectDomain< Space >::rbegin(), and DGtal::ImageFactoryFromHDF5< TImageContainer >::requestImage().
bool DGtal::HyperRectDomain< TSpace >::isEmpty | ( | ) | const |
bool DGtal::HyperRectDomain< TSpace >::isInside | ( | const Point & | p | ) | const |
p | any point. |
Referenced by DGtal::HyperRectDomain< Space >::begin(), DGtal::HyperRectDomain< TSpace >::ConstSubRange::ConstSubRange(), and DGtal::HyperRectDomain< Space >::rbegin().
bool DGtal::HyperRectDomain< TSpace >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
const Point& DGtal::HyperRectDomain< TSpace >::lowerBound | ( | ) | const |
Returns the lowest point of the space diagonal.
Referenced by DGtal::Shortcuts< TKSpace >::getKSpace().
HyperRectDomain& DGtal::HyperRectDomain< TSpace >::operator= | ( | const HyperRectDomain< TSpace > & | other | ) |
Assignment.
other | the object to copy. |
const Predicate& DGtal::HyperRectDomain< TSpace >::predicate | ( | ) | const |
NB: Could have used template class DomainPredicate but, for performance reason, directly used the IsWithinPointPredicate which fits perfectly.
|
inline |
reverse begin method.
Definition at line 195 of file HyperRectDomain.h.
|
inline |
reverse begin method from a given point.
aPoint | the initial point. |
Definition at line 206 of file HyperRectDomain.h.
|
inline |
reverse end method.
Definition at line 221 of file HyperRectDomain.h.
void DGtal::HyperRectDomain< TSpace >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
inline |
Definition at line 550 of file HyperRectDomain.h.
|
inline |
get a subRange.
permutation | a vector containing the dimensions used for the subrange. Dimensions are iterated in the given order. |
Definition at line 457 of file HyperRectDomain.h.
Referenced by DGtal::ImageFactoryFromHDF5< TImageContainer >::flushImage().
|
inline |
get a subRange from an initial point.
permutation | a vector containing the dimensions used for the subrange. Dimensions are iterated in the given order. |
startingPoint | the initial point. |
Definition at line 470 of file HyperRectDomain.h.
|
inline |
get a subRange of one dimension.
adim | the dimension of the subrange. |
startingPoint | the initial point. |
Definition at line 483 of file HyperRectDomain.h.
|
inline |
get a subRange of two dimensions.
adim1 | the first dimension of the subrange. |
adim2 | the second dimension of the subrange. |
startingPoint | the initial point. |
Definition at line 497 of file HyperRectDomain.h.
|
inline |
get a subRange of three dimensions.
adim1 | the first dimension of the subrange. |
adim2 | the second dimension of the subrange. |
adim3 | the third dimension of the subrange. |
startingPoint | the initial point. |
Definition at line 512 of file HyperRectDomain.h.
|
inline |
get a subRange.
permutation | an initializer_list containing the dimensions used for the subrange. Dimensions are iterated in the given order. |
Definition at line 524 of file HyperRectDomain.h.
|
inline |
get a subRange from an initial point.
permutation | an initializer_list containing the dimensions used for the subrange. Dimensions are iterated in the given order. |
startingPoint | the initial point. |
Definition at line 537 of file HyperRectDomain.h.
const Point& DGtal::HyperRectDomain< TSpace >::upperBound | ( | ) | const |
Returns the highest point of the space diagonal.
Referenced by DGtal::Shortcuts< TKSpace >::getKSpace().
|
private |
Begin iterator.
Definition at line 642 of file HyperRectDomain.h.
Referenced by DGtal::HyperRectDomain< Space >::begin().
|
private |
End iterator.
Definition at line 644 of file HyperRectDomain.h.
Referenced by DGtal::HyperRectDomain< Space >::end().
Point DGtal::HyperRectDomain< TSpace >::myLowerBound |
The lowest point of the space diagonal.
Definition at line 632 of file HyperRectDomain.h.
Referenced by DGtal::HyperRectDomain< Space >::begin(), DGtal::HyperRectDomain< Space >::rbegin(), DGtal::HyperRectDomain< Space >::size(), and DGtal::HyperRectDomain< Space >::subRange().
|
private |
"IsInside" predicate.
Definition at line 639 of file HyperRectDomain.h.
Point DGtal::HyperRectDomain< TSpace >::myUpperBound |
The highest point of the space diagonal.
Definition at line 634 of file HyperRectDomain.h.
Referenced by DGtal::HyperRectDomain< Space >::begin(), DGtal::HyperRectDomain< Space >::rbegin(), and DGtal::HyperRectDomain< Space >::size().