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

#include <zq_lith_column.hpp>

Inheritance diagram for ZqLithColumn:
ZqView ZqbNatGrpMember ZqView ZqbNatGrpMember ZqbView ZqObject ZqbView ZqObject ZqbView ZqObject ZqbView ZqObject

Public Member Functions

 ZqLithColumn (ZqbNatGroup &rDepthGrp, const char *szName=NULL)
 
 ZqLithColumn (ZqbNatGroup &rDepthGrp, ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual bool attachToPlace (ZqbPlaceholder *pPh)
 
virtual void setWidthHint (ZqbSizeHint eWidthHint, int iWidth=0)
 
virtual ZqbSizeHint getWidthHint (int *pWidth=NULL) const
 
virtual void setOrientation (Qt::Orientation eOrient)
 
virtual Qt::Orientation getOrientation () const
 
virtual void setDrawMethod (ZqLithColumnDrawMethod eMethod)
 
virtual ZqLithColumnDrawMethod getDrawMethod () const
 
virtual bool compatibleDoc (const ZdDocument *pDoc) const
 
virtual void attachData (ZdLithData *pData)
 
virtual void detachDoc ()
 
virtual ZdLithDatadata ()
 
virtual void redraw (QPainter &paint)
 
 ZqLithColumn (ZqbNatGroup &rDepthGrp, const char *szName=NULL)
 
 ZqLithColumn (ZqbNatGroup &rDepthGrp, ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual bool attachToPlace (ZqbPlaceholder *pPh)
 
virtual void setWidthHint (ZqbSizeHint eWidthHint, int iWidth=0)
 
virtual ZqbSizeHint getWidthHint (int *pWidth=NULL) const
 
virtual void setOrientation (Qt::Orientation eOrient)
 
virtual Qt::Orientation getOrientation () const
 
virtual void setDrawMethod (ZqLithColumnDrawMethod eMethod)
 
virtual ZqLithColumnDrawMethod getDrawMethod () const
 
virtual bool compatibleDoc (const ZdDocument *pDoc) const
 
virtual void attachData (ZdLithData *pData)
 
virtual void detachDoc ()
 
virtual ZdLithDatadata ()
 
virtual void redraw (QPainter &paint)
 
- Public Member Functions inherited from ZqView
 ZqView (const char *szName=NULL)
 
 ZqView (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual void updateView ()
 
virtual void attachDoc (ZdDocument *pData)
 
 ZqView (const char *szName=NULL)
 
 ZqView (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual void updateView ()
 
virtual void attachDoc (ZdDocument *pData)
 
- Public Member Functions inherited from ZqObject
 ZqObject (const char *szName=NULL)
 
 ZqObject (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual ~ZqObject ()
 
virtual void debugState ()
 
virtual void clearPlace ()
 
virtual ZqbPlaceholderVector * placeholders ()
 
virtual ZqbEventHint input (QEvent &event)
 
virtual void updateLimits (QPainter *paint=NULL)
 
virtual void updateGeometry ()
 
virtual QPainter * getScreenPainter () const
 
virtual void setScreenPainter (QPainter *pPainter)
 
virtual QzqAreagetArea () const
 
virtual QWidget * getAreaWidget () const
 
virtual void setAreaWidget (QWidget *pWidget)
 
virtual bool isHardcopy () const
 
bool isPlaced () const
 
ZqbPlaceholdergetPlace () const
 
ZqbPixGrpMemberpx () const
 
ZqbPixGrpMemberpy () const
 
bool getRect (QRect &rect) const
 
virtual bool detachFromPlace ()
 
virtual void setDirty ()
 
virtual void resetDirty ()
 
virtual bool isDirty () const
 
void setInteractive (bool bInteractive)
 
bool isInteractive () const
 
virtual void fullRedraw (bool bForce=false)
 
virtual void interactiveRedraw ()
 
 ZqObject (const char *szName=NULL)
 
 ZqObject (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual ~ZqObject ()
 
virtual void debugState ()
 
virtual void clearPlace ()
 
virtual ZqbPlaceholderVector * placeholders ()
 
virtual ZqbEventHint input (QEvent &event)
 
virtual void updateLimits (QPainter *paint=NULL)
 
virtual void updateGeometry ()
 
virtual QPainter * getScreenPainter () const
 
virtual void setScreenPainter (QPainter *pPainter)
 
virtual QzqAreagetArea () const
 
virtual QWidget * getAreaWidget () const
 
virtual void setAreaWidget (QWidget *pWidget)
 
virtual bool isHardcopy () const
 
bool isPlaced () const
 
ZqbPlaceholdergetPlace () const
 
ZqbPixGrpMemberpx () const
 
ZqbPixGrpMemberpy () const
 
bool getRect (QRect &rect) const
 
virtual bool detachFromPlace ()
 
virtual void setDirty ()
 
virtual void resetDirty ()
 
virtual bool isDirty () const
 
void setInteractive (bool bInteractive)
 
bool isInteractive () const
 
virtual void fullRedraw (bool bForce=false)
 
virtual void interactiveRedraw ()
 
- 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
 
- Public Member Functions inherited from ZqbVisible
 ZqbVisible (bool bDrawable=false, bool bInputable=false, bool bTipable=false)
 
virtual ~ZqbVisible ()
 
virtual bool isDrawable () const
 
virtual void setDrawable (bool bFlag)
 
virtual void redraw ()
 
virtual void setTipable (bool bFlag)
 
virtual bool isTipable () const
 
virtual bool tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
virtual bool isInputable () const
 
virtual void setInputable (bool bFlag)
 
virtual bool getRect (QRect &)
 
virtual bool setRect (const QRect &)
 
 ZqbVisible (bool bDrawable=false, bool bInputable=false, bool bTipable=false)
 
virtual ~ZqbVisible ()
 
virtual bool isDrawable () const
 
virtual void setDrawable (bool bFlag)
 
virtual void redraw ()
 
virtual void setTipable (bool bFlag)
 
virtual bool isTipable () const
 
virtual bool tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
virtual bool isInputable () const
 
virtual void setInputable (bool bFlag)
 
virtual bool getRect (QRect &)
 
virtual bool setRect (const QRect &)
 
- Public Member Functions inherited from ZqbView
 ZqbView (const char *szName=NULL)
 
virtual ~ZqbView ()
 
virtual ZdDocumentdoc ()
 
virtual void updateDoc ()
 
 ZqbView (const char *szName=NULL)
 
virtual ~ZqbView ()
 
virtual ZdDocumentdoc ()
 
virtual void updateDoc ()
 
- Public Member Functions inherited from ZqbNatGrpMember
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup)
 
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup, void(*CustomOnSetCoord)(void *), void *pUserData=NULL)
 
virtual ~ZqbNatGrpMember ()
 
virtual ZqbNatGroupgroup () const
 
virtual void unsetBounds ()
 
virtual void setBounds (double b[2])
 
void setBounds (double b1, double b2)
 
virtual bool getBounds (double b[2]=NULL) const
 
virtual void onSetCoords ()
 
virtual void onTickChange ()
 
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup)
 
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup, void(*CustomOnSetCoord)(void *), void *pUserData=NULL)
 
virtual ~ZqbNatGrpMember ()
 
virtual ZqbNatGroupgroup () const
 
virtual void unsetBounds ()
 
virtual void setBounds (double b[2])
 
void setBounds (double b1, double b2)
 
virtual bool getBounds (double b[2]=NULL) const
 
virtual void onSetCoords ()
 

Protected Attributes

ZqbSizeHint m_eWidthHint
 
int m_iWidth
 
Qt::Orientation m_eOrient
 
ZqLithColumnDrawMethod m_eDrawMethod
 
- Protected Attributes inherited from ZqObject
ZqbPlaceholderm_pPh
 
ZqbPixGrpMemberm_pPx
 
ZqbPixGrpMemberm_pPy
 
bool m_bInteractive
 
- Protected Attributes inherited from ZqbName
char * m_szName
 
char * m_szRoot
 
- Protected Attributes inherited from ZqbNatGrpMember
ZqbNatGroupm_pNatGroup
 
bool m_bKnownBounds
 
double m_fBounds [2]
 
void(* m_pCustomOnSetCoord )(void *pUserData)
 
void * m_pUserData
 

Additional Inherited Members

- Static Public Member Functions inherited from ZqbView
static bool findTypeAmong (const ZdDocument *pDoc, const char *szExpectedType1,...)
 
static bool findTypeAmong (const ZdDocument *pDoc, const char *szExpectedType1,...)
 

Detailed Description

Class implements drawing of lithology column with help of special data document object ZdLithData.

Constructor & Destructor Documentation

ZqLithColumn::ZqLithColumn ( ZqbNatGroup rDepthGrp,
const char *  szName = NULL 
)

Create lithology column without screen location but with given depth natural group.

ZqLithColumn::ZqLithColumn ( ZqbNatGroup rDepthGrp,
ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create lithology column in given place with given depth natural group.

ZqLithColumn::ZqLithColumn ( ZqbNatGroup rDepthGrp,
const char *  szName = NULL 
)

Create lithology column without screen location but with given depth natural group.

ZqLithColumn::ZqLithColumn ( ZqbNatGroup rDepthGrp,
ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create lithology column in given place with given depth natural group.

Member Function Documentation

virtual void ZqLithColumn::attachData ( ZdLithData pData)
virtual

Attach given lithology data container. Publishes to depth group information about range. Attaching NULL means detach operation.

virtual void ZqLithColumn::attachData ( ZdLithData pData)
virtual

Attach given lithology data container. Publishes to depth group information about range. Attaching NULL means detach operation.

virtual bool ZqLithColumn::attachToPlace ( ZqbPlaceholder pPh)
virtual

Attach to the placeholder and return true. If the object is already attached to some placeholder returns false. On attachment proper setup of width hint and orientation take place.

Reimplemented from ZqObject.

virtual bool ZqLithColumn::attachToPlace ( ZqbPlaceholder pPh)
virtual

Attach to the placeholder and return true. If the object is already attached to some placeholder returns false. On attachment proper setup of width hint and orientation take place.

Reimplemented from ZqObject.

virtual bool ZqLithColumn::compatibleDoc ( const ZdDocument pDoc) const
virtual

Return true if passed object is in list of compatible documents for this view. ZdLithData and subclasses are welcome.

Implements ZqbView.

virtual bool ZqLithColumn::compatibleDoc ( const ZdDocument pDoc) const
virtual

Return true if passed object is in list of compatible documents for this view. ZdLithData and subclasses are welcome.

Implements ZqbView.

virtual ZdLithData* ZqLithColumn::data ( )
virtual

Return pointer to attached data container or NULL if no data were attached.

virtual ZdLithData* ZqLithColumn::data ( )
virtual

Return pointer to attached data container or NULL if no data were attached.

virtual void ZqLithColumn::detachDoc ( )
virtual

Detach function. Withdraws information about depth range.

Reimplemented from ZqView.

virtual void ZqLithColumn::detachDoc ( )
virtual

Detach function. Withdraws information about depth range.

Reimplemented from ZqView.

virtual ZqLithColumnDrawMethod ZqLithColumn::getDrawMethod ( ) const
virtual

Get the method of lithology pattern drawing.

virtual ZqLithColumnDrawMethod ZqLithColumn::getDrawMethod ( ) const
virtual

Get the method of lithology pattern drawing.

virtual Qt::Orientation ZqLithColumn::getOrientation ( ) const
virtual

Get orientation of the lithology column.

virtual Qt::Orientation ZqLithColumn::getOrientation ( ) const
virtual

Get orientation of the lithology column.

virtual ZqbSizeHint ZqLithColumn::getWidthHint ( int *  pWidth = NULL) const
virtual

Get information about width hint and value. If returned value is Z_SH_MIN_SIZE or Z_SH_FIXED_SIZE then recommended value of width will be put to variable pointed by pWidth.

virtual ZqbSizeHint ZqLithColumn::getWidthHint ( int *  pWidth = NULL) const
virtual

Get information about width hint and value. If returned value is Z_SH_MIN_SIZE or Z_SH_FIXED_SIZE then recommended value of width will be put to variable pointed by pWidth.

virtual void ZqLithColumn::redraw ( QPainter &  paint)
virtual

Draw lithology column if some data container is attached.

Reimplemented from ZqObject.

virtual void ZqLithColumn::redraw ( QPainter &  paint)
virtual

Draw lithology column if some data container is attached.

Reimplemented from ZqObject.

virtual void ZqLithColumn::setDrawMethod ( ZqLithColumnDrawMethod  eMethod)
virtual

Set the method used to draw lithology patterns.

virtual void ZqLithColumn::setDrawMethod ( ZqLithColumnDrawMethod  eMethod)
virtual

Set the method used to draw lithology patterns.

virtual void ZqLithColumn::setOrientation ( Qt::Orientation  eOrient)
virtual

Set orientation of the lithology column: Qt::Vertical means the natural group is associated with Y pixel axis (Qt::Horizontal - X pixel axis). Qt::Vertical is a default value.

virtual void ZqLithColumn::setOrientation ( Qt::Orientation  eOrient)
virtual

Set orientation of the lithology column: Qt::Vertical means the natural group is associated with Y pixel axis (Qt::Horizontal - X pixel axis). Qt::Vertical is a default value.

virtual void ZqLithColumn::setWidthHint ( ZqbSizeHint  eWidthHint,
int  iWidth = 0 
)
virtual

Set width of the lithology column. In case of Z_SH_MIN_SIZE or Z_SH_FIXED_SIZE recommended iWidth must be set to positive value (measured in pixels), but for Z_SH_NO_LIMITS iWidth value can be skipped.

virtual void ZqLithColumn::setWidthHint ( ZqbSizeHint  eWidthHint,
int  iWidth = 0 
)
virtual

Set width of the lithology column. In case of Z_SH_MIN_SIZE or Z_SH_FIXED_SIZE recommended iWidth must be set to positive value (measured in pixels), but for Z_SH_NO_LIMITS iWidth value can be skipped.

Member Data Documentation

ZqLithColumnDrawMethod ZqLithColumn::m_eDrawMethod
protected

The method used to draw lithology data.

Qt::Orientation ZqLithColumn::m_eOrient
protected

Lithology column orientation. Qt::Vertical (natural group is translated to Y pixel coordinate; Qt::Horizontal - to X.

ZqbSizeHint ZqLithColumn::m_eWidthHint
protected

Lithology column width management preference.

int ZqLithColumn::m_iWidth
protected

Lithology column width recommended value in pixels. Not used in case of m_eWidthHint==Z_SH_NO_LIMITS.


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