DGtal
1.5.beta
|
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value. More...
#include <DGtal/topology/KhalimskySpaceND.h>
Public Types | |
using | Integer = TInteger |
using | UnsignedInteger = typename NumberTraits< Integer >::UnsignedVersion |
using | Point = PointVector< dim, Integer > |
using | SPreCell = SignedKhalimskyPreCell< dim, Integer > |
using | CellularGridSpace = KhalimskySpaceND< dim, TInteger > |
using | PreCellularGridSpace = KhalimskyPreSpaceND< dim, TInteger > |
using | Self = SignedKhalimskyCell< dim, Integer > |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CInteger< TInteger >)) | |
Integer must be a model of the concept CInteger. More... | |
operator SPreCell const & () const | |
Constant conversion to SignedKhalimskyPreCell. More... | |
SPreCell const & | preCell () const |
Returns the underlying constant signed pre-cell. More... | |
SignedKhalimskyCell (Integer dummy=0) | |
Default constructor. More... | |
SignedKhalimskyCell (const SignedKhalimskyCell &other)=default | |
Copy constructor. More... | |
SignedKhalimskyCell & | operator= (const SignedKhalimskyCell &other)=default |
Copy operator. More... | |
SignedKhalimskyCell (SignedKhalimskyCell &&other)=default | |
Move constructor. More... | |
SignedKhalimskyCell & | operator= (SignedKhalimskyCell &&other)=default |
Move operator. More... | |
bool | operator== (const SignedKhalimskyCell &other) const |
Equality operator. More... | |
bool | operator!= (const SignedKhalimskyCell &other) const |
Difference operator. More... | |
bool | operator< (const SignedKhalimskyCell &other) const |
Inferior operator. (lexicographic order). More... | |
std::string | className () const |
Return the style name used for drawing this object. More... | |
Private Member Functions | |
SignedKhalimskyCell (const Point &aPoint, bool positive) | |
Explicit constructor from its Khalimsky coordinates. More... | |
SignedKhalimskyCell (const SPreCell &aCell) | |
Explicit constructor from a SignedKhalimskyPreCell. More... | |
operator SPreCell & () | |
Mutable conversion to SignedKhalimskyPreCell. More... | |
Private Attributes | |
SPreCell | mySPreCell |
Underlying signed pre-cell. More... | |
Friends | |
class | KhalimskySpaceND< dim, TInteger > |
class | KhalimskySpaceNDHelper< CellularGridSpace > |
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
dim | the dimension of the digital space. |
TInteger | the Integer class used to specify the arithmetic computations (default type = int32). |
Definition at line 208 of file KhalimskySpaceND.h.
using DGtal::SignedKhalimskyCell< dim, TInteger >::CellularGridSpace = KhalimskySpaceND< dim, TInteger > |
Definition at line 219 of file KhalimskySpaceND.h.
using DGtal::SignedKhalimskyCell< dim, TInteger >::Integer = TInteger |
Definition at line 215 of file KhalimskySpaceND.h.
using DGtal::SignedKhalimskyCell< dim, TInteger >::Point = PointVector< dim, Integer > |
Definition at line 217 of file KhalimskySpaceND.h.
using DGtal::SignedKhalimskyCell< dim, TInteger >::PreCellularGridSpace = KhalimskyPreSpaceND< dim, TInteger > |
Definition at line 220 of file KhalimskySpaceND.h.
using DGtal::SignedKhalimskyCell< dim, TInteger >::Self = SignedKhalimskyCell< dim, Integer > |
Definition at line 221 of file KhalimskySpaceND.h.
using DGtal::SignedKhalimskyCell< dim, TInteger >::SPreCell = SignedKhalimskyPreCell< dim, Integer > |
Definition at line 218 of file KhalimskySpaceND.h.
using DGtal::SignedKhalimskyCell< dim, TInteger >::UnsignedInteger = typename NumberTraits<Integer>::UnsignedVersion |
Definition at line 216 of file KhalimskySpaceND.h.
|
explicitprivate |
Explicit constructor from its Khalimsky coordinates.
aPoint | any point. |
positive | if cell has positive sign. |
|
explicitprivate |
Explicit constructor from a SignedKhalimskyPreCell.
aCell | a pre-cell. |
|
explicit |
Default constructor.
|
default |
Copy constructor.
other | any other cell. |
|
default |
Move constructor.
other | any other cell. |
DGtal::SignedKhalimskyCell< dim, TInteger >::BOOST_CONCEPT_ASSERT | ( | (concepts::CInteger< TInteger >) | ) |
Integer must be a model of the concept CInteger.
std::string DGtal::SignedKhalimskyCell< dim, TInteger >::className | ( | ) | const |
Return the style name used for drawing this object.
Default drawing style object.
Referenced by main(), testCellDrawOnBoard(), and testDigitization().
|
explicitprivate |
Mutable conversion to SignedKhalimskyPreCell.
DGtal::SignedKhalimskyCell< dim, TInteger >::operator SPreCell const & | ( | ) | const |
Constant conversion to SignedKhalimskyPreCell.
bool DGtal::SignedKhalimskyCell< dim, TInteger >::operator!= | ( | const SignedKhalimskyCell< dim, TInteger > & | other | ) | const |
Difference operator.
other | any other cell. |
bool DGtal::SignedKhalimskyCell< dim, TInteger >::operator< | ( | const SignedKhalimskyCell< dim, TInteger > & | other | ) | const |
Inferior operator. (lexicographic order).
other | any other cell. |
|
default |
Copy operator.
other | any other cell. |
|
default |
Move operator.
other | any other cell. |
bool DGtal::SignedKhalimskyCell< dim, TInteger >::operator== | ( | const SignedKhalimskyCell< dim, TInteger > & | other | ) | const |
Equality operator.
other | any other cell. |
SPreCell const& DGtal::SignedKhalimskyCell< dim, TInteger >::preCell | ( | ) | const |
Returns the underlying constant signed pre-cell.
Referenced by std::hash< DGtal::SignedKhalimskyCell< dim, TInteger > >::operator()(), boost::hash< DGtal::SignedKhalimskyCell< dim, TInteger > >::operator()(), DGtal::RayIntersectionPredicate< TPoint >::operator()(), and DGtal::TransformedPrism::TransformedPrism().
|
friend |
Definition at line 211 of file KhalimskySpaceND.h.
|
friend |
Definition at line 211 of file KhalimskySpaceND.h.
|
private |
Underlying signed pre-cell.
Definition at line 229 of file KhalimskySpaceND.h.