IdxPair used for its row() and col().
More...
|
| RowCol () |
|
| RowCol (const Pos::IdxPair &) |
|
| RowCol (int r, int c) |
|
float | angleTo (const RowCol &) const |
|
float | clockwiseAngleTo (const RowCol &rc) const |
|
float | counterClockwiseAngleTo (const RowCol &) const |
|
bool | fromString (const char *) |
|
RowCol | getDirection () const |
|
RowCol | operator* (const RowCol &) const |
|
RowCol | operator* (int) const |
|
const RowCol & | operator*= (const RowCol &) |
|
const RowCol & | operator*= (int) |
|
RowCol | operator+ () const |
|
RowCol | operator+ (const RowCol &) const |
|
const RowCol & | operator+= (const RowCol &) |
|
RowCol | operator- () const |
|
RowCol | operator- (const RowCol &) const |
|
const RowCol & | operator-= (const RowCol &) |
|
RowCol | operator/ (const RowCol &) const |
|
RowCol | operator/ (int) const |
|
const RowCol & | operator/= (const RowCol &) |
|
int | toInt32 () const |
|
const char * | toString (bool onlycol=false) const |
|
| IdxPair () |
|
| IdxPair (IdxType f, IdxType s) |
|
IdxType & | col () |
|
IdxType | col () const |
|
IdxType & | crl () |
|
IdxType | crl () const |
|
IdxType & | inl () |
|
IdxType | inl () const |
|
bool | isNeighborTo (const IdxPair &, const IdxPairStep &, bool conn8=true) const |
|
IdxType & | lineNr () |
|
IdxType | lineNr () const |
|
bool | operator!= (const IdxPair &oth) const |
|
bool | operator< (const IdxPair &oth) const |
|
bool | operator== (const IdxPair &) const |
|
bool | operator> (const IdxPair &oth) const |
|
IdxType & | row () |
|
IdxType | row () const |
|
int64_t | sqDistTo (const IdxPair &) const |
|
int64_t | toInt64 () const |
|
IdxType & | trcNr () |
|
IdxType | trcNr () const |
|
| IdxPair () |
|
| IdxPair (IdxType f, IdxType s) |
|
const char * | getUsrStr (const char *prefx, const char *sep, const char *postfx, bool only2nd) const |
|
bool | isUdf () const |
|
bool | operator!= (const IdxPair &oth) const |
|
bool | operator== (const IdxPair &) const |
|
IdxType & | operator[] (int idx) |
|
IdxType | operator[] (int idx) const |
|
bool | parseUsrStr (const char *str, const char *prefx, const char *sep, const char *postfx) |
|
void | setUdf () |
|
IdxPair used for its row() and col().
<>
◆ RowCol() [1/3]
◆ RowCol() [2/3]
RowCol::RowCol |
( |
int |
r, |
|
|
int |
c |
|
) |
| |
|
inline |
◆ RowCol() [3/3]
◆ angleTo()
float RowCol::angleTo |
( |
const RowCol & |
| ) |
const |
- Returns
- the smallest angle between the vector going from 0,0 to the object and the vector going from 0,0 to rc.
◆ clockwiseAngleTo()
float RowCol::clockwiseAngleTo |
( |
const RowCol & |
rc | ) |
const |
- Returns
- the angle between the vector going from 0,0 to the object and the vector going from 0,0 to rc in the clockwise direction.
◆ clockWiseSequence()
◆ counterClockwiseAngleTo()
float RowCol::counterClockwiseAngleTo |
( |
const RowCol & |
| ) |
const |
- Returns
- the angle between the vector going from 0,0 to the object and the vector going from 0,0 to rc in the counterclockwise direction.
◆ fromInt32()
RowCol RowCol::fromInt32 |
( |
int |
ll | ) |
|
|
inlinestatic |
◆ fromInt64()
RowCol RowCol::fromInt64 |
( |
int64_t |
i64 | ) |
|
|
inlinestatic |
◆ fromString()
bool RowCol::fromString |
( |
const char * |
str | ) |
|
|
inline |
◆ getDirection()
RowCol RowCol::getDirection |
( |
| ) |
const |
- Returns
- a rowcol where row/col are either -1, 0 or 1 where depending on if row/col of the object is negative, zero or positive.
◆ operator*() [1/2]
◆ operator*() [2/2]
RowCol RowCol::operator* |
( |
int |
factor | ) |
const |
|
inline |
◆ operator*=() [1/2]
◆ operator*=() [2/2]
const RowCol & RowCol::operator*= |
( |
int |
factor | ) |
|
|
inline |
◆ operator+() [1/2]
RowCol RowCol::operator+ |
( |
| ) |
const |
|
inline |
◆ operator+() [2/2]
◆ operator+=()
◆ operator-() [1/2]
RowCol RowCol::operator- |
( |
| ) |
const |
|
inline |
◆ operator-() [2/2]
◆ operator-=()
◆ operator/() [1/2]
◆ operator/() [2/2]
RowCol RowCol::operator/ |
( |
int |
denominator | ) |
const |
|
inline |
◆ operator/=()
◆ toInt32()
int RowCol::toInt32 |
( |
| ) |
const |
|
inline |
◆ toString()
const char * RowCol::toString |
( |
bool |
onlycol = false | ) |
const |
|
inline |