|
| | IdxPairValueSet (int nr_vals, bool allow_dupl_idxpairs) |
| |
| virtual | ~IdxPairValueSet () |
| |
| IdxPairValueSet & | operator= (const IdxPairValueSet &) |
| |
| void | allowDuplicateIdxPairs (bool yn) |
| |
| bool | allowsDuplicateIdxPairs () const |
| |
| void | setEmpty () |
| |
| bool | append (const IdxPairValueSet &oth) |
| |
| void | remove (const IdxPairValueSet &oth) |
| |
| void | copyStructureFrom (const IdxPairValueSet &) |
| | will also empty this set More...
|
| |
| SPos | find (const IdxPair &ip) const |
| |
| SPos | findOccurrence (const IdxPair &ip, int occ=0) const |
| |
| bool | next (SPos &spos, bool skip_dupl_idxpairs=false) const |
| |
| bool | prev (SPos &spos, bool skip_dupl_idxpairs=false) const |
| |
| bool | isValid (const IdxPair &spos) const |
| |
| void | get (const SPos &, float *v=0, int mxnrvals=-1) const |
| |
| void | get (const SPos &, IdxPair &, float *v=0, int mxnrv=-1) const |
| |
| IdxPair | getIdxPair (const SPos &spos) const |
| |
| SPos | getPos (GlobIdxType global_idx) const |
| |
| SPos | add (const IdxPair &, const float *vs=0) |
| | Either pass sufficient data or pass null. More...
|
| |
| SPos | add (const DataRow &) |
| | Wrong-sized will be handled correctly. More...
|
| |
| void | set (SPos, const float *vs=0) |
| |
| int | nrVals () const |
| |
| IdxType | nrFirst () const |
| |
| IdxType | nrSecond (IdxType firstidx) const |
| |
| bool | isEmpty () const |
| |
| bool | includes (const IdxPair &ip) const |
| |
| bool | hasFirst (IdxType inl) const |
| |
| bool | hasSecond (IdxType crl) const |
| |
| IdxPair | firstIdxPair () const |
| |
| GlobIdxType | totalSize () const |
| |
| Interval< IdxType > | firstRange () const |
| |
| Interval< IdxType > | secondRange (IdxType frstidx=-1) const |
| |
| Interval< float > | valRange (int valnr) const |
| |
| bool | insertVal (int) |
| |
| bool | setNrVals (int) |
| |
| bool | hasDuplicateIdxPairs () const |
| |
| ArrIdxType | nrDuplicateIdxPairs () const |
| |
| void | removeDuplicateIdxPairs () |
| |
| void | randomSubselect (od_int64 maxsz) |
| |
| void | extend (const IdxPairDelta &stepout, const IdxPairStep &, bool avoiddups=true) |
| |
| void | add (const PosInfo::CubeData &) |
| |
| void | remove (const SPos &spos) |
| |
| void | remove (const TypeSet< SPos > &torem) |
| |
| void | removeRange (int valnr, const Interval< float > &, bool inside=true) |
| |
| void | remove (const TrcKeySampling &hrg, bool inside) |
| |
| void | removeVal (int) |
| | Will remove entire 'column'. More...
|
| |
| SPos | add (const PairVal &) |
| |
| SPos | add (const IdxPair &, float) |
| |
| SPos | add (const IdxPair &, double) |
| |
| SPos | add (const IdxPair &, float, float) |
| |
| SPos | add (const IdxPair &, const TypeSet< float > &) |
| |
| void | get (const SPos &, DataRow &) const |
| |
| void | get (const SPos &, PairVal &) const |
| |
| void | get (const SPos &, IdxPair &, float &) const |
| |
| void | get (const SPos &, IdxPair &, float &, float &) const |
| |
| void | get (const SPos &, IdxPair &, TypeSet< float > &, int mxnrvals=-1) const |
| |
| void | get (const SPos &, TypeSet< float > &, int maxnrvals=-1) const |
| |
| void | set (const SPos &, float) |
| |
| void | set (const SPos &, float, float) |
| |
| void | set (const SPos &, const TypeSet< float > &) |
| |
| void | getColumn (int valnr, TypeSet< float > &, bool incudf) const |
| |
| void | fillPar (IOPar &, const char *key) const |
| |
| void | usePar (const IOPar &, const char *key) |
| |
| bool | getFrom (od_istream &, Pos::GeomID=mUdf(Pos::GeomID)) |
| | detects/converts coords if geomid passed More...
|
| |
| bool | putTo (od_ostream &) const |
| |
| ArrIdxType | nrPos (ArrIdxType lineidx) const |
| |
| float * | getVals (const SPos &) |
| | Direct access to value arrays. More...
|
| |
| const float * | getVals (const SPos &) const |
| | Direct access to value arrays. More...
|
| |
| float | getVal (const SPos &pos, int valnr) const |
| | Direct access to value arrays. More...
|
| |
| bool | haveDataRow (const DataRow &) const |
| |
| ArrIdxType | nrInls () const |
| |
| ArrIdxType | nrCrls (IdxType inl) const |
| |
| ArrIdxType | nrRows () const |
| |
| ArrIdxType | nrCols (IdxType row) const |
| |
| bool | hasInl (IdxType inl) const |
| |
| bool | hasCrl (IdxType crl) const |
| |
| bool | hasRow (IdxType row) const |
| |
| bool | hasCol (IdxType col) const |
| |
| Interval< IdxType > | inlRange () const |
| |
| Interval< IdxType > | rowRange () const |
| |
| Interval< IdxType > | crlRange (IdxType inl=-1) const |
| |
| Interval< IdxType > | colRange (IdxType row=-1) const |
| |
uses an IdxPairDataSet to hold arrays of floats
When you construct a IdxPairValueSet, you must provide the number of values (which can be changed later) and whether duplicate IdxPairs are allowed. In the set, new uninitialized values will be set to mUdf(float).
Note: if one of the values is Z, make it the first value. Not that this is enforced by the set, but it will be assumed sooner or later.