UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Protected Attributes | List of all members
ZdLithVector Class Reference

#include <zd_lith_vector.hpp>

Inheritance diagram for ZdLithVector:
ZdLithData ZdLithData ZdCoordObjStream ZdCoordObjStream ZdCoordObjStream ZdCoordObjStream ZdDocument ZdDocument ZdDocument ZdDocument ZdDocument ZdDocument ZdDocument ZdDocument

Classes

struct  LithLayer
 

Public Member Functions

 ZdLithVector (const char *szDocName=NULL)
 
virtual bool compatibleType (const char *szType) const
 
virtual void addLayer (double top, int code, const QBitmap &pattern, const QColor &color=Qt::black)
 
virtual void addLastLayer (double last)
 
virtual void commit ()
 
virtual bool getCoordRange (double c[2])
 
virtual double averageCoordStep ()
 
virtual bool goFirstCoord ()
 
virtual bool goNextCoord ()
 
virtual double coord ()
 
virtual double layerThickness ()
 
virtual int lithCode ()
 
virtual QBitmap lithTileBitmap ()
 
virtual QColor lithTileColor ()
 
 ZdLithVector (const char *szDocName=NULL)
 
virtual bool compatibleType (const char *szType) const
 
virtual void addLayer (double top, int code, const QBitmap &pattern, const QColor &color=Qt::black)
 
virtual void addLastLayer (double last)
 
virtual void commit ()
 
virtual bool getCoordRange (double c[2])
 
virtual double averageCoordStep ()
 
virtual bool goFirstCoord ()
 
virtual bool goNextCoord ()
 
virtual double coord ()
 
virtual double layerThickness ()
 
virtual int lithCode ()
 
virtual QBitmap lithTileBitmap ()
 
virtual QColor lithTileColor ()
 
- Public Member Functions inherited from ZdLithData
 ZdLithData (const char *szDocName=NULL)
 
virtual int maxEnsembleLength ()
 
virtual int ensembleLength ()
 
 ZdLithData (const char *szDocName=NULL)
 
virtual int maxEnsembleLength ()
 
virtual int ensembleLength ()
 
- Public Member Functions inherited from ZdCoordObjStream
 ZdCoordObjStream (const char *szDocName=NULL)
 
virtual void setCustomCoord (int iCoordId, ZqbOrder eOrder=Z_O_ASCENT)
 
virtual void setSecondaryOrder (int iSecondaryId, ZqbOrder eOrder=Z_O_ASCENT)
 
virtual void setTertiaryOrder (int iTertiaryId, ZqbOrder eOrder=Z_O_ASCENT)
 
virtual void * custom (int ens_index=0, ZqbType *pRetType=NULL)
 
 ZdCoordObjStream (const char *szDocName=NULL)
 
virtual void setCustomCoord (int iCoordId)
 
virtual int getCustomCoord () const
 
virtual void setFirstOrder (int iCoordId, ZqbOrder eOrder=Z_O_ASCENT)
 
virtual bool getFirstOrder (int &iCoordId, ZqbOrder &eOrder) const
 
virtual void setSecondaryOrder (int iSecondaryId, ZqbOrder eOrder=Z_O_ASCENT)
 
virtual bool getSecondaryOrder (int &iCoordId, ZqbOrder &eOrder) const
 
virtual void setTertiaryOrder (int iTertiaryId, ZqbOrder eOrder=Z_O_ASCENT)
 
virtual bool getTertiaryOrder (int &iCoordId, ZqbOrder &eOrder) const
 
virtual void setCoordsSelection (const CoordSelectionVec &selCoords)
 
virtual const CoordSelectionVecgetCoordsSelection () const
 
virtual void setInvisibleCoordinates (const CoordSelectionVec &unvisibleCoords)
 
virtual const CoordSelectionVecgetInvisibleCoordinates () const
 
virtual bool visibleCoord ()
 
virtual void * custom (int ens_index=0, ZqbType *pRetType=NULL)
 
virtual ZqbType coordTypeFromId (int coordId) const
 
- Public Member Functions inherited from ZdDocument
 ZdDocument (const char *szName=NULL)
 
virtual ~ZdDocument ()
 
virtual void updateViews ()
 
virtual bool isChanged ()
 
virtual void setChanges ()
 
virtual void resetChanges ()
 
 ZdDocument (const char *szName=NULL)
 
virtual ~ZdDocument ()
 
virtual void updateViews ()
 
virtual bool isChanged ()
 
virtual void setChanges ()
 
virtual void resetChanges ()
 
- Public Member Functions inherited from ZqbAutoName
 ZqbAutoName (int *pCounter, const char *szRoot, const char *szCustomName=NULL)
 
virtual ~ZqbAutoName ()
 
 ZqbAutoName (int *pCounter, const char *szRoot, const char *szCustomName=NULL)
 
virtual ~ZqbAutoName ()
 
- Public Member Functions inherited from ZqbName
 ZqbName (const char *szRoot, const char *szCustomName=NULL)
 
 ZqbName (const ZqbName &name)
 
virtual ~ZqbName ()
 
ZqbNameoperator= (const ZqbName &name)
 
virtual const char * getName () const
 
virtual const char * getType () const
 
bool hasName (const char *szString) const
 
 ZqbName (const char *szRoot, const char *szCustomName=NULL)
 
 ZqbName (const ZqbName &name)
 
virtual ~ZqbName ()
 
ZqbNameoperator= (const ZqbName &name)
 
virtual const char * getName () const
 
virtual const char * getType () const
 
bool hasName (const char *szString) const
 

Protected Attributes

std::vector< LithLayerm_vLayers
 
int m_iCurLayer
 
- Protected Attributes inherited from ZdDocument
ZqbViewVector m_Views
 
- Protected Attributes inherited from ZqbName
char * m_szName
 
char * m_szRoot
 

Additional Inherited Members

- Public Types inherited from ZdCoordObjStream
typedef std::vector
< CoordSelection
CoordSelectionVec
 

Detailed Description

The class implements vector-like storage for lithology data.

Constructor & Destructor Documentation

ZdLithVector::ZdLithVector ( const char *  szDocName = NULL)

Create the object with zero number of layers.

ZdLithVector::ZdLithVector ( const char *  szDocName = NULL)

Create the object with zero number of layers.

Member Function Documentation

virtual void ZdLithVector::addLastLayer ( double  last)
virtual

Finish the sequence of layers by given depth.

virtual void ZdLithVector::addLastLayer ( double  last)
virtual

Finish the sequence of layers by given depth.

virtual void ZdLithVector::addLayer ( double  top,
int  code,
const QBitmap &  pattern,
const QColor &  color = Qt::black 
)
virtual

Add one more layer with the bottom on next added layer's top.

virtual void ZdLithVector::addLayer ( double  top,
int  code,
const QBitmap &  pattern,
const QColor &  color = Qt::black 
)
virtual

Add one more layer with the bottom on next added layer's top.

virtual double ZdLithVector::averageCoordStep ( )
virtual

Get average step between layers.

Implements ZdCoordObjStream.

virtual double ZdLithVector::averageCoordStep ( )
virtual

Get average step between layers.

Implements ZdCoordObjStream.

virtual void ZdLithVector::commit ( )
virtual

Commit changes: sort and calculate.

virtual void ZdLithVector::commit ( )
virtual

Commit changes: sort and calculate.

virtual bool ZdLithVector::compatibleType ( const char *  szType) const
virtual

Return true if given type is compatible with this document.

Reimplemented from ZdLithData.

virtual bool ZdLithVector::compatibleType ( const char *  szType) const
virtual

Return true if given type is compatible with this document.

Reimplemented from ZdLithData.

virtual double ZdLithVector::coord ( )
virtual

Get current layer top depth in case of previous go???Coord() succeeded.

Implements ZdCoordObjStream.

virtual double ZdLithVector::coord ( )
virtual

Get current layer top depth in case of previous go???Coord() succeeded.

Implements ZdCoordObjStream.

virtual bool ZdLithVector::getCoordRange ( double  c[2])
virtual

Get range of layer depths. Condition c[0] <= c[1] must always true. If c[0] == c[1] then false must be returned.

Implements ZdCoordObjStream.

virtual bool ZdLithVector::getCoordRange ( double  c[2])
virtual

Get range of layer depths. Condition c[0] <= c[1] must always true. If c[0] == c[1] then false must be returned.

Implements ZdCoordObjStream.

virtual bool ZdLithVector::goFirstCoord ( )
virtual

Reset iterator. Returns true on success and false on failure (empty stream).

Implements ZdCoordObjStream.

virtual bool ZdLithVector::goFirstCoord ( )
virtual

Reset iterator. Returns true on success and false on failure (empty stream).

Implements ZdCoordObjStream.

virtual bool ZdLithVector::goNextCoord ( )
virtual

Go to next iteration. Returns true on success and false on failure (end of stream).

Implements ZdCoordObjStream.

virtual bool ZdLithVector::goNextCoord ( )
virtual

Go to next iteration. Returns true on success and false on failure (end of stream).

Implements ZdCoordObjStream.

virtual double ZdLithVector::layerThickness ( )
virtual

Return thickness of the current layer. This value will be added to coord() to produce bottom coordinate of the layer.

Implements ZdLithData.

virtual double ZdLithVector::layerThickness ( )
virtual

Return thickness of the current layer. This value will be added to coord() to produce bottom coordinate of the layer.

Implements ZdLithData.

virtual int ZdLithVector::lithCode ( )
virtual

Return lithology code of the current layer. ZD_LITH_UNKNOWN means unknown lithology code.

Implements ZdLithData.

virtual int ZdLithVector::lithCode ( )
virtual

Return lithology code of the current layer. ZD_LITH_UNKNOWN means unknown lithology code.

Implements ZdLithData.

virtual QBitmap ZdLithVector::lithTileBitmap ( )
virtual

Return graphics pattern used for lithology tiling of the current layer. If code ZD_LITH_UNKNOWN is returned by lithCode() then blank tile bitmap is returned by this method.

Implements ZdLithData.

virtual QBitmap ZdLithVector::lithTileBitmap ( )
virtual

Return graphics pattern used for lithology tiling of the current layer. If code ZD_LITH_UNKNOWN is returned by lithCode() then blank tile bitmap is returned by this method.

Implements ZdLithData.

virtual QColor ZdLithVector::lithTileColor ( )
virtual

Return color of graphics pattern of the current layer. Qt::black by default.

Reimplemented from ZdLithData.

virtual QColor ZdLithVector::lithTileColor ( )
virtual

Return color of graphics pattern of the current layer. Qt::black by default.

Reimplemented from ZdLithData.

Member Data Documentation

int ZdLithVector::m_iCurLayer
protected

Current layer index.

std::vector< LithLayer > ZdLithVector::m_vLayers
protected

Lithology storage vector.


The documentation for this class was generated from the following files: