OpendTect  7.0
Public Member Functions | Static Public Member Functions | List of all members
RowCol Class Reference

IdxPair used for its row() and col().
More...

Inheritance diagram for RowCol:
[legend]

Public Member Functions

 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 RowColoperator*= (const RowCol &)
 
const RowColoperator*= (int)
 
RowCol operator+ () const
 
RowCol operator+ (const RowCol &) const
 
const RowColoperator+= (const RowCol &)
 
RowCol operator- () const
 
RowCol operator- (const RowCol &) const
 
const RowColoperator-= (const RowCol &)
 
RowCol operator/ (const RowCol &) const
 
RowCol operator/ (int) const
 
const RowColoperator/= (const RowCol &)
 
int toInt32 () const
 
const char * toString (bool onlycol=false) const
 
- Public Member Functions inherited from Pos::IdxPair
 IdxPair ()
 
 IdxPair (IdxType f, IdxType s)
 
IdxTypecol ()
 
IdxType col () const
 
IdxTypecrl ()
 
IdxType crl () const
 
IdxTypeinl ()
 
IdxType inl () const
 
bool isNeighborTo (const IdxPair &, const IdxPairStep &, bool conn8=true) const
 
IdxTypelineNr ()
 
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
 
IdxTyperow ()
 
IdxType row () const
 
std::int64_t sqDistTo (const IdxPair &) const
 
std::int64_t toInt64 () const
 
IdxTypetrcNr ()
 
IdxType trcNr () const
 
- Public Member Functions inherited from IdxPair
 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
 
IdxTypeoperator[] (int idx)
 
IdxType operator[] (int idx) const
 
bool parseUsrStr (const char *str, const char *prefx, const char *sep, const char *postfx)
 
void setUdf ()
 

Static Public Member Functions

static const TypeSet< RowCol > & clockWiseSequence ()
 
static RowCol fromInt32 (int)
 
static RowCol fromInt64 (std::int64_t)
 
- Static Public Member Functions inherited from Pos::IdxPair
static IdxPair fromInt64 (std::int64_t)
 
static const IdxPairudf ()
 
- Static Public Member Functions inherited from IdxPair
static const IdxPairudf ()
 

Additional Inherited Members

- Public Types inherited from IdxPair
typedef Index_Type IdxType
 

Detailed Description

IdxPair used for its row() and col().

<>

Constructor & Destructor Documentation

◆ RowCol() [1/3]

RowCol::RowCol ( )
inline

◆ RowCol() [2/3]

RowCol::RowCol ( int  r,
int  c 
)
inline

◆ RowCol() [3/3]

RowCol::RowCol ( const Pos::IdxPair p)
inline

Member Function Documentation

◆ 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()

static const TypeSet<RowCol>& RowCol::clockWiseSequence ( )
static

◆ 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 ( std::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]

RowCol RowCol::operator* ( const RowCol rc) const
inline

◆ operator*() [2/2]

RowCol RowCol::operator* ( int  factor) const
inline

◆ operator*=() [1/2]

const RowCol & RowCol::operator*= ( const RowCol rc)
inline

◆ operator*=() [2/2]

const RowCol & RowCol::operator*= ( int  factor)
inline

◆ operator+() [1/2]

RowCol RowCol::operator+ ( ) const
inline

◆ operator+() [2/2]

RowCol RowCol::operator+ ( const RowCol rc) const
inline

◆ operator+=()

const RowCol & RowCol::operator+= ( const RowCol rc)
inline

◆ operator-() [1/2]

RowCol RowCol::operator- ( ) const
inline

◆ operator-() [2/2]

RowCol RowCol::operator- ( const RowCol rc) const
inline

◆ operator-=()

const RowCol & RowCol::operator-= ( const RowCol rc)
inline

◆ operator/() [1/2]

RowCol RowCol::operator/ ( const RowCol rc) const
inline

◆ operator/() [2/2]

RowCol RowCol::operator/ ( int  denominator) const
inline

◆ operator/=()

const RowCol & RowCol::operator/= ( const RowCol rc)
inline

◆ toInt32()

int RowCol::toInt32 ( ) const
inline

◆ toString()

const char * RowCol::toString ( bool  onlycol = false) const
inline

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024