OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
uiScaleBarItem Class Reference

It adds a graphic scale made from polygons. More...

Inheritance diagram for uiScaleBarItem:
[legend]

Public Member Functions

 uiScaleBarItem (int pxwidth=100, int pxheight=6)
 
 ~uiScaleBarItem ()
 
int getPxHeight () const
 
float getLength () const
 
int getPxWidth () const
 
void setPxHeight (int pxh)
 
void setLength (float len)
 
void setPxWidth (int pxw)
 
void setUnit (const uiString &unit)
 
void setWorld2Ui (const uiWorld2Ui &)
 
void update ()
 

Protected Attributes

float worldwidth_
 
int pxwidth_
 
int pxheight_
 
uiString unitstr_
 
uiRectItemupperright_
 
uiRectItemuppermid_
 
uiRectItemupperleft_
 
uiRectItemlowerright_
 
uiRectItemlowermid_
 
uiRectItemlowerleft_
 
uiAdvancedTextItemstartnr_
 
uiAdvancedTextItemmidnr_
 
uiAdvancedTextItemstopnr_
 

Private Member Functions

void initDefaultScale ()
 
void adjustValues ()
 
void setPolygons (int, int)
 

Private Attributes

uiWorld2Ui w2ui_
 
int preferablepxwidth_
 

Detailed Description

It adds a graphic scale made from polygons.

Constructor & Destructor Documentation

uiScaleBarItem::uiScaleBarItem ( int  pxwidth = 100,
int  pxheight = 6 
)
uiScaleBarItem::~uiScaleBarItem ( )

Member Function Documentation

void uiScaleBarItem::adjustValues ( )
private
float uiScaleBarItem::getLength ( ) const
inline
int uiScaleBarItem::getPxHeight ( ) const
inline
int uiScaleBarItem::getPxWidth ( ) const
inline
void uiScaleBarItem::initDefaultScale ( )
private
void uiScaleBarItem::setLength ( float  len)
inline
void uiScaleBarItem::setPolygons ( int  ,
int   
)
private
void uiScaleBarItem::setPxHeight ( int  pxh)
inline
void uiScaleBarItem::setPxWidth ( int  pxw)
inline
void uiScaleBarItem::setUnit ( const uiString unit)
inline
void uiScaleBarItem::setWorld2Ui ( const uiWorld2Ui )
void uiScaleBarItem::update ( )

Member Data Documentation

uiRectItem* uiScaleBarItem::lowerleft_
protected
uiRectItem* uiScaleBarItem::lowermid_
protected
uiRectItem* uiScaleBarItem::lowerright_
protected
uiAdvancedTextItem* uiScaleBarItem::midnr_
protected
int uiScaleBarItem::preferablepxwidth_
private
int uiScaleBarItem::pxheight_
protected
int uiScaleBarItem::pxwidth_
protected
uiAdvancedTextItem* uiScaleBarItem::startnr_
protected
uiAdvancedTextItem* uiScaleBarItem::stopnr_
protected
uiString uiScaleBarItem::unitstr_
protected
uiRectItem* uiScaleBarItem::upperleft_
protected
uiRectItem* uiScaleBarItem::uppermid_
protected
uiRectItem* uiScaleBarItem::upperright_
protected
uiWorld2Ui uiScaleBarItem::w2ui_
private
float uiScaleBarItem::worldwidth_
protected

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