OpendTect  7.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
PosVecDataSet Class Reference

Data set consisting of data vectors. More...

Public Types

enum  ColMatchPol { NameExact , RefExact , NameStart , RefStart }
 
enum  OvwPolicy { Keep , OvwIfUdf , Ovw }
 

Public Member Functions

 PosVecDataSet (const char *nm=0)
 
 PosVecDataSet (const PosVecDataSet &)
 
virtual ~PosVecDataSet ()
 
int add (DataColDef *)
 
DataColDefcolDef (int idx)
 
const DataColDefcolDef (int idx) const
 
void copyStructureFrom (const PosVecDataSet &)
 
BinIDValueSetdata ()
 
const BinIDValueSetdata () const
 
int findColDef (const DataColDef &, ColMatchPol p=RefExact) const
 returns -1 if no match More...
 
bool getFrom (const char *, BufferString &errmsg)
 
bool getFrom (const char *, uiString &errmsg)
 
bool insert (int idx, DataColDef *)
 
bool isEmpty () const
 
void merge (const PosVecDataSet &, OvwPolicy pol=OvwIfUdf, ColMatchPol cmp=NameExact)
 This is a rather intelligent method. More...
 
const char * name () const
 
int nrCols () const
 
PosVecDataSetoperator= (const PosVecDataSet &)
 
IOParpars ()
 
const IOParpars () const
 
bool putTo (const char *, BufferString &errmsg, bool tabstyle) const
 
bool putTo (const char *, uiString &errmsg, bool tabstyle) const
 
void removeColumn (int)
 "Z" col (idx=0) can't be removed More...
 
void setEmpty ()
 
void setName (const char *nm)
 

Static Public Member Functions

static bool getColNames (const char *, BufferStringSet &bss, BufferString &errmsg, bool refs=false)
 
static bool getIOPar (const char *, IOPar &iop, BufferString &errmsg)
 

Protected Member Functions

void mergeColDefs (const PosVecDataSet &, ColMatchPol, int *)
 

Protected Attributes

ObjectSet< DataColDefcoldefs_
 
BinIDValueSet data_
 
BufferString name_
 
IOParpars_
 

Friends

class DataPointSet
 

Detailed Description

Data set consisting of data vectors.

Every data vector has an inline, crossline and a Z (which may be undefined). The "Z" column is automatically added.

<>

Member Enumeration Documentation

◆ ColMatchPol

Enumerator
NameExact 
RefExact 
NameStart 
RefStart 

◆ OvwPolicy

Enumerator
Keep 
OvwIfUdf 
Ovw 

Constructor & Destructor Documentation

◆ PosVecDataSet() [1/2]

PosVecDataSet::PosVecDataSet ( const char *  nm = 0)

◆ PosVecDataSet() [2/2]

PosVecDataSet::PosVecDataSet ( const PosVecDataSet )

◆ ~PosVecDataSet()

virtual PosVecDataSet::~PosVecDataSet ( )
virtual

Member Function Documentation

◆ add()

int PosVecDataSet::add ( DataColDef )

◆ colDef() [1/2]

DataColDef& PosVecDataSet::colDef ( int  idx)
inline

◆ colDef() [2/2]

const DataColDef& PosVecDataSet::colDef ( int  idx) const
inline

◆ copyStructureFrom()

void PosVecDataSet::copyStructureFrom ( const PosVecDataSet )

◆ data() [1/2]

BinIDValueSet& PosVecDataSet::data ( )
inline

◆ data() [2/2]

const BinIDValueSet& PosVecDataSet::data ( ) const
inline

◆ findColDef()

int PosVecDataSet::findColDef ( const DataColDef ,
ColMatchPol  p = RefExact 
) const

returns -1 if no match

◆ getColNames()

static bool PosVecDataSet::getColNames ( const char *  ,
BufferStringSet bss,
BufferString errmsg,
bool  refs = false 
)
static

◆ getFrom() [1/2]

bool PosVecDataSet::getFrom ( const char *  ,
BufferString errmsg 
)

◆ getFrom() [2/2]

bool PosVecDataSet::getFrom ( const char *  ,
uiString errmsg 
)

◆ getIOPar()

static bool PosVecDataSet::getIOPar ( const char *  ,
IOPar iop,
BufferString errmsg 
)
static

◆ insert()

bool PosVecDataSet::insert ( int  idx,
DataColDef  
)
Returns
index

◆ isEmpty()

bool PosVecDataSet::isEmpty ( ) const
inline

◆ merge()

void PosVecDataSet::merge ( const PosVecDataSet ,
OvwPolicy  pol = OvwIfUdf,
ColMatchPol  cmp = NameExact 
)

This is a rather intelligent method.

◆ mergeColDefs()

void PosVecDataSet::mergeColDefs ( const PosVecDataSet ,
ColMatchPol  ,
int *   
)
protected

◆ name()

const char* PosVecDataSet::name ( ) const
inline

◆ nrCols()

int PosVecDataSet::nrCols ( ) const
inline

◆ operator=()

PosVecDataSet& PosVecDataSet::operator= ( const PosVecDataSet )

◆ pars() [1/2]

IOPar& PosVecDataSet::pars ( )
inline

◆ pars() [2/2]

const IOPar& PosVecDataSet::pars ( ) const
inline

◆ putTo() [1/2]

bool PosVecDataSet::putTo ( const char *  ,
BufferString errmsg,
bool  tabstyle 
) const

◆ putTo() [2/2]

bool PosVecDataSet::putTo ( const char *  ,
uiString errmsg,
bool  tabstyle 
) const

tabstyle -> for spreadsheet import (looses info) !tabstyle: dTect style (preserves all)

◆ removeColumn()

void PosVecDataSet::removeColumn ( int  )

"Z" col (idx=0) can't be removed

◆ setEmpty()

void PosVecDataSet::setEmpty ( )

◆ setName()

void PosVecDataSet::setName ( const char *  nm)
inline

Friends And Related Function Documentation

◆ DataPointSet

friend class DataPointSet
friend

Member Data Documentation

◆ coldefs_

ObjectSet<DataColDef> PosVecDataSet::coldefs_
protected

◆ data_

BinIDValueSet PosVecDataSet::data_
protected

◆ name_

BufferString PosVecDataSet::name_
protected

◆ pars_

IOPar& PosVecDataSet::pars_
protected

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