OpendTect-6_4  6.4
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 (int r, int c)
 
 RowCol (const Pos::IdxPair &)
 
RowCol operator+ (const RowCol &) const
 
RowCol operator- (const RowCol &) const
 
RowCol operator+ () const
 
RowCol operator- () const
 
RowCol operator* (const RowCol &) const
 
RowCol operator* (int) const
 
RowCol operator/ (const RowCol &) const
 
RowCol operator/ (int) const
 
const RowColoperator+= (const RowCol &)
 
const RowColoperator-= (const RowCol &)
 
const RowColoperator*= (const RowCol &)
 
const RowColoperator*= (int)
 
const RowColoperator/= (const RowCol &)
 
const char * toString (bool onlycol=false) const
 
bool fromString (const char *)
 
int toInt32 () const
 
RowCol getDirection () const
 
float angleTo (const RowCol &) const
 
float clockwiseAngleTo (const RowCol &rc) const
 
float counterClockwiseAngleTo (const RowCol &) const
 
- Public Member Functions inherited from Pos::IdxPair
 IdxPair ()
 
 IdxPair (IdxType f, IdxType s)
 
bool operator== (const IdxPair &) const
 
bool operator!= (const IdxPair &oth) const
 
bool operator< (const IdxPair &oth) const
 
bool operator> (const IdxPair &oth) const
 
IdxTypeinl ()
 
IdxTypelineNr ()
 
IdxTyperow ()
 
IdxTypecrl ()
 
IdxTypetrcNr ()
 
IdxTypecol ()
 
IdxType inl () const
 
IdxType crl () const
 
IdxType lineNr () const
 
IdxType trcNr () const
 
IdxType row () const
 
IdxType col () const
 
int64_t toInt64 () const
 
int64_t sqDistTo (const IdxPair &) const
 
bool isNeighborTo (const IdxPair &, const IdxPairStep &, bool conn8=true) const
 
- Public Member Functions inherited from IdxPair
 IdxPair ()
 
 IdxPair (IdxType f, IdxType s)
 
bool operator== (const IdxPair &) const
 
bool operator!= (const IdxPair &oth) const
 
bool isUdf () const
 
void setUdf ()
 
IdxTypeoperator[] (int idx)
 
IdxType operator[] (int idx) const
 
const char * getUsrStr (const char *prefx, const char *sep, const char *postfx, bool only2nd) const
 
bool parseUsrStr (const char *str, const char *prefx, const char *sep, const char *postfx)
 

Static Public Member Functions

static RowCol fromInt64 (int64_t)
 
static RowCol fromInt32 (int)
 
static const TypeSet< RowCol > & clockWiseSequence ()
 
- Static Public Member Functions inherited from Pos::IdxPair
static IdxPair fromInt64 (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::RowCol ( )
inline
RowCol::RowCol ( int  r,
int  c 
)
inline
RowCol::RowCol ( const Pos::IdxPair p)
inline

Member Function Documentation

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.
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.
static const TypeSet<RowCol>& RowCol::clockWiseSequence ( )
static
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.
RowCol RowCol::fromInt32 ( int  ll)
inlinestatic
RowCol RowCol::fromInt64 ( int64_t  i64)
inlinestatic
bool RowCol::fromString ( const char *  str)
inline
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.
RowCol RowCol::operator* ( const RowCol rc) const
inline
RowCol RowCol::operator* ( int  factor) const
inline
const RowCol & RowCol::operator*= ( const RowCol rc)
inline
const RowCol & RowCol::operator*= ( int  factor)
inline
RowCol RowCol::operator+ ( const RowCol rc) const
inline
RowCol RowCol::operator+ ( ) const
inline
const RowCol & RowCol::operator+= ( const RowCol rc)
inline
RowCol RowCol::operator- ( const RowCol rc) const
inline
RowCol RowCol::operator- ( ) const
inline
const RowCol & RowCol::operator-= ( const RowCol rc)
inline
RowCol RowCol::operator/ ( const RowCol rc) const
inline
RowCol RowCol::operator/ ( int  denominator) const
inline
const RowCol & RowCol::operator/= ( const RowCol rc)
inline
int RowCol::toInt32 ( ) const
inline
const char * RowCol::toString ( bool  onlycol = false) const
inline

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