![]() |
ICF 3.1.1.10
Technical documentation of ICF Libraries
|
Index implementation for addressing elements in 2D-space. More...
#include <CIndex2d.h>
Public Types | |
| typedef TIndex< 2 > | BaseClass |
Public Types inherited from istd::TIndex< 2 > | |
| enum | |
| typedef int | IndexType |
| typedef int * | iterator |
Public Member Functions | |
| CIndex2d () | |
| CIndex2d (int x, int y) | |
| CIndex2d (const TIndex< 2 > &index) | |
| CIndex2d (const QPoint &point) | |
| CIndex2d (const QSize &size) | |
| int | GetX () const |
| void | SetX (int value) |
| int | GetY () const |
| void | SetY (int value) |
| bool | operator< (const CIndex2d &index) const |
| bool | operator> (const CIndex2d &index) const |
| bool | operator<= (const CIndex2d &index) const |
| bool | operator>= (const CIndex2d &index) const |
| operator QSize () const | |
| Cast/convert index to QSize object. | |
| operator QPoint () const | |
| Cast/convert index to QPoint object. | |
| operator QPointF () const | |
| Cast/convert index to QPointF object. | |
| CIndex2d & | operator= (const CIndex2d &index) |
| Assign value from another index. | |
| CIndex2d & | operator= (const TIndex< 2 > &index) |
| Assign value from a general defined 2D-index. | |
Public Member Functions inherited from istd::TIndex< 2 > | |
| TIndex () | |
| Default constructor with initialization of member to 0. | |
| TIndex (int value) | |
| Constructor initializing all members to specified value. | |
| TIndex (const TIndex &index) | |
| Copy constructor. | |
| bool | IsValid () const |
| Check if this index is valid. | |
| bool | IsZero () const |
| Check if this index point at zero element. | |
| bool | IsSizeEmpty () const |
| Check if this index interpreted as size is empty. | |
| void | Reset () |
| Reset this object. | |
| void | Clear () |
| Set all components to 0. | |
| bool | IsDimensionsCountFixed () const |
| Check, if number dimensions is fixed. | |
| int | GetDimensionsCount () const |
| Get number of dimensions of this index. | |
| bool | SetDimensionsCount (int count) const |
| Set number of dimensions of this index. | |
| int | GetAt (int index) const |
| Get element stored at specified index. | |
| void | SetAt (int index, int value) |
| Set element at specified index. | |
| void | SetAllTo (int value) |
| Set all components to specified value. | |
| bool | IncreaseAt (int index) |
| Increase single component at specified position. | |
| bool | DecreaseAt (int index) |
| Decrease single component at specified position. | |
| bool | IsInside (const TIndex &boundaries) const |
| Check if index is inside boundaries. | |
| bool | Increase (const TIndex &boundaries) |
| Increase this index inside the boundaries. | |
| bool | Decrease (const TIndex &boundaries) |
| Decrease this index inside the boundaries. | |
| int | GetProductVolume () const |
| Get total number of elements if this index is treated as size. | |
| int | GetIterationIndex (const TIndex &boundaries) const |
| Get index of iteration from zero to current index inside some boundaries. | |
| iterator | Begin () const |
| Get begin value of element access iterator. | |
| iterator | End () const |
| Get end value of element access iterator. | |
| int | operator[] (int index) const |
| int & | operator[] (int index) |
| bool | operator== (const TIndex &index) const |
| bool | operator!= (const TIndex &index) const |
| TIndex | operator+ (const TIndex &index) const |
| TIndex & | operator+= (const TIndex &index) |
| TIndex | operator- (const TIndex &index) const |
| TIndex & | operator-= (const TIndex &index) |
Additional Inherited Members | |
Static Public Member Functions inherited from istd::TIndex< 2 > | |
| static const TIndex< Dimensions > & | GetZero () |
| Get global instance of zero index. | |
| static const TIndex< Dimensions > & | GetInvalid () |
| Get global instance of invalid index. | |
Index implementation for addressing elements in 2D-space.
Definition at line 24 of file CIndex2d.h.
Definition at line 27 of file CIndex2d.h.
|
inline |
Definition at line 74 of file CIndex2d.h.
|
inline |
Definition at line 79 of file CIndex2d.h.
References istd::TIndex< 2 >::SetAt().
|
inline |
Definition at line 86 of file CIndex2d.h.
|
inline |
Definition at line 91 of file CIndex2d.h.
References istd::TIndex< 2 >::SetAt().
|
inline |
Definition at line 98 of file CIndex2d.h.
References istd::TIndex< 2 >::SetAt().
|
inline |
Definition at line 105 of file CIndex2d.h.
References istd::TIndex< 2 >::GetAt().
Referenced by ialgo::CHoughSpace2d::ApplyOperation(), iimg::CScanlineMask::CalculateMaskFromBitmap(), ialgo::CHoughSpace2d::CombineWithSpace(), i2d::CRect::CRect(), i2d::CRect::CRect(), i2d::CRect::CRect(), i2d::CVector2d::CVector2d(), ialgo::TGeneralHoughSpace< Dimensions, Element >::ExtractToBitmap(), iview::CScreenTransform::GetClientPosition(), ialgo::CHoughSpace2d::GetSpaceDistance2(), i2d::CRect::IsInside(), operator<(), iipr::TUnaryTransformProcessorComp< PixelType, Predicate >::ProcessImage(), i2d::CRect::SetLeftBottom(), i2d::CRect::SetLeftTop(), i2d::CRect::SetRightBottom(), i2d::CRect::SetRightTop(), iipr::TImagePixelInterpolator< PixelComponentType >::TImagePixelInterpolator(), i2d::CRect::Translate(), and i2d::CRect::Union().
|
inline |
Definition at line 117 of file CIndex2d.h.
References istd::TIndex< 2 >::GetAt().
Referenced by ialgo::CHoughSpace2d::ApplyOperation(), iimg::CScanlineMask::CalculateMaskFromBitmap(), ialgo::CHoughSpace2d::CombineWithSpace(), i2d::CRect::CRect(), i2d::CRect::CRect(), i2d::CRect::CRect(), i2d::CVector2d::CVector2d(), ialgo::TGeneralHoughSpace< Dimensions, Element >::ExtractToBitmap(), iview::CScreenTransform::GetClientPosition(), iimg::CGeneralBitmap::GetLinePtr(), iimg::CGeneralBitmap::GetLinePtr(), ialgo::CHoughSpace2d::GetSpaceDistance2(), i2d::CRect::IsInside(), operator<(), iipr::TUnaryTransformProcessorComp< PixelType, Predicate >::ProcessImage(), i2d::CRect::SetLeftBottom(), i2d::CRect::SetLeftTop(), i2d::CRect::SetRightBottom(), i2d::CRect::SetRightTop(), iipr::TImagePixelInterpolator< PixelComponentType >::TImagePixelInterpolator(), i2d::CRect::Translate(), and i2d::CRect::Union().
|
inline |
Cast/convert index to QPoint object.
Definition at line 185 of file CIndex2d.h.
|
inline |
Cast/convert index to QPointF object.
Definition at line 191 of file CIndex2d.h.
|
inline |
Cast/convert index to QSize object.
Definition at line 179 of file CIndex2d.h.
|
inline |
Definition at line 129 of file CIndex2d.h.
|
inline |
Definition at line 151 of file CIndex2d.h.
Assign value from another index.
Definition at line 163 of file CIndex2d.h.
Assign value from a general defined 2D-index.
Definition at line 171 of file CIndex2d.h.
|
inline |
Definition at line 145 of file CIndex2d.h.
|
inline |
Definition at line 157 of file CIndex2d.h.
|
inline |
Definition at line 111 of file CIndex2d.h.
References istd::TIndex< 2 >::SetAt().
|
inline |
Definition at line 123 of file CIndex2d.h.
References istd::TIndex< 2 >::SetAt().
© Witold Gantzke and Kirill Lepskiy