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

User interface element for storing attribute desc selection. More...

Inheritance diagram for uiAttrSel:
[legend]

Public Member Functions

 uiAttrSel (uiParent *, const Attrib::DescSet &, const char *txt=0, Attrib::DescID curid=Attrib::DescID::undef(), bool isinp4otherattrib=true)
 
 uiAttrSel (uiParent *, const char *, const uiAttrSelData &, bool isinp4otherattrib=true)
 
 ~uiAttrSel ()
 
Attrib::DescID attribID () const
 
int outputNr () const
 
bool is2D () const
 
bool is3D () const
 
void setDescSet (const Attrib::DescSet *)
 This function has to be called before getHistory ! More...
 
void setDesc (const Attrib::Desc *)
 
void setSelSpec (const Attrib::SelSpec *)
 
void setNLAModel (const NLAModel *)
 
void setIgnoreDesc (const Attrib::Desc *)
 
void setIgnoreID (Attrib::DescID id)
 
void setPossibleDataPacks (const TypeSet< DataPack::FullID > &)
 
void showSteeringData (bool yn)
 
void setGeomID (Pos::GeomID id)
 
Pos::GeomID getGeomID () const
 
virtual void getHistory (const IOPar &)
 
virtual void processInput ()
 
const char * errMsg ()
 
bool getRanges (TrcKeyZSampling &) const
 Tries to determine ranges of currently selected. More...
 
void fillSelSpec (Attrib::SelSpec &) const
 
bool checkOutput (const IOObj &) const
 
const char * getAttrName () const
 
void setObjectName (const char *)
 
const Attrib::DescSetgetAttrSet () const
 
- Public Member Functions inherited from uiIOSelect
 uiIOSelect (uiParent *, const Setup &, const CallBack &)
 
 ~uiIOSelect ()
 
void addExtSelBut (uiButton *)
 
bool isEmpty () const
 
const char * getInput () const
 
const char * getKey () const
 
void setInput (const char *key)
 Will fetch user name using userNameFromKey. More...
 
void setInputText (const char *)
 As if user typed it manually. More...
 
void setEntries (const BufferStringSet &keys, const BufferStringSet &names)
 
int nrItems () const
 
int getCurrentItem () const
 
void setCurrentItem (int)
 
const char * getItem (int) const
 
bool isChecked () const
 only useful when optional_ More...
 
void setChecked (bool yn)
 does something when optional_ More...
 
virtual void updateHistory (IOPar &) const
 
void addToHistory (const char *)
 
void addToHistory (const BufferStringSet &)
 
virtual void setEmpty ()
 
void setReadOnly (bool readonly=true)
 
void doSel (CallBacker *)
 
const uiStringlabelText () const
 
void setLabelText (const uiString &)
 
void setLabelSelectable (bool yn=true)
 
void setHSzPol (uiObject::SzPolicy)
 
uiComboBoxinpBox ()
 
virtual uiObjectendObj (bool left)
 
- Public Member Functions inherited from uiGroup
 uiGroup (uiParent *, const char *nm="uiGroup", bool manage=true)
 
virtual ~uiGroup ()
 
 operator const uiGroupObj * () const
 
 operator uiGroupObj * ()
 
 operator const uiObject & () const
 
 operator uiObject & ()
 
uiObjectattachObj ()
 
const uiObjectattachObj () const
 
uiParentparent ()
 
const uiParentparent () const
 
void setHSpacing (int)
 
void setVSpacing (int)
 
void setSpacing (int s=0)
 
void setBorder (int)
 
void setFrame (bool yn=true)
 
void setNoBackGround ()
 
uiObjecthAlignObj ()
 
void setHAlignObj (uiObject *o)
 
void setHAlignObj (uiGroup *o)
 
uiObjecthCenterObj ()
 
void setHCenterObj (uiObject *o)
 
void setHCenterObj (uiGroup *o)
 
void setIsMain (bool)
 internal use only. Tells the layout manager it's a toplevel mngr. More...
 
virtual uiMainWinmainwin ()
 
void setChildrenSensitive (bool)
 
virtual Notifier< uiBaseObject > & preFinalise ()
 
virtual Notifier< uiBaseObject > & postFinalise ()
 
virtual void setSize (const uiSize &)
 
- Public Member Functions inherited from uiParent
 uiParent (const char *nm, uiParentBody *)
 
void addChild (uiBaseObject &)
 
void manageChld (uiBaseObject &, uiObjectBody &)
 
void attachChild (constraintType tp, uiObject *child, uiObject *other, int margin, bool reciprocal)
 
const ObjectSet< uiBaseObject > * childList () const
 
uiObjectmainObject ()
 
const uiObjectmainObject () const
 
uiParentBodypbody ()
 
const uiParentBodypbody () const
 
void attach (constraintType t, int margin=-1)
 
void attach (constraintType t, uiParent *oth, int margin=-1, bool reciprocal=true)
 
void attach (constraintType t, uiObject *oth, int margin=-1, bool reciprocal=true)
 
virtual void display (bool yn, bool shrk=false, bool maximize=false)
 
bool isDisplayed () const
 
void setFocus ()
 
bool hasFocus () const
 
void setSensitive (bool yn=true)
 
bool sensitive () const
 
const uiFontfont () const
 
void setFont (const uiFont &f)
 
void setCaption (const uiString &c)
 
void setCursor (const MouseCursor &c)
 
uiSize actualsize (bool include_border) const
 
int prefHNrPics () const
 
int prefVNrPics () const
 
void setPrefHeight (int h)
 
void setPrefWidth (int w)
 
void setPrefHeightInChar (int h)
 
void setPrefHeightInChar (float h)
 
void setPrefWidthInChar (float w)
 
void setPrefWidthInChar (int w)
 
virtual void reDraw (bool deep)
 
void shallowRedraw (CallBacker *=0)
 
void deepRedraw (CallBacker *=0)
 
void setStretch (int h, int v)
 
Color backgroundColor () const
 
Color roBackgroundColor () const
 
void setBackgroundColor (const Color &c)
 
void translateText ()
 

Protected Member Functions

void updateInput ()
 
void update2D ()
 
void doSel (CallBacker *)
 
virtual const char * userNameFromKey (const char *) const
 
- Protected Member Functions inherited from uiIOSelect
void optCheck (CallBacker *)
 
void selDone (CallBacker *)
 
int nrSpec () const
 
void checkState () const
 
void updateFromEntries ()
 
bool haveEntry (const char *) const
 
virtual void objSel ()
 notification when user selects from combo More...
 
void doFinalise (CallBacker *)
 
- Protected Member Functions inherited from uiGroup
virtual uiObjectmainobject ()
 
virtual void attach_ (constraintType, uiObject *oth, int margin=-1, bool reciprocal=true)
 
virtual void reDraw_ (bool deep)
 
void setShrinkAllowed (bool)
 
bool shrinkAllowed ()
 
void bodyDel (CallBacker *)
 
void uiobjDel (CallBacker *)
 
void setFrameStyle (int)
 
void reSizeChildren (const uiObject *, float, float)
 

Static Protected Member Functions

static uiString cDefLabel ()
 

Protected Attributes

uiAttrSelData attrdata_
 
bool is2d_
 
Attrib::DescID ignoreid_
 
bool usedasinput_
 
BufferString errmsg_
 
BufferString usrnm_
 
int seltype_
 
bool showsteeringdata_
 
Pos::GeomID geomid_
 
TypeSet< DataPack::FullIDdpfids_
 
- Protected Attributes inherited from uiIOSelect
BufferStringSet entries_
 
bool haveempty_
 
bool selok_
 
bool keepmytxt_
 
CallBack doselcb_
 
uiComboBoxinp_
 
uiButton * selbut_
 
ObjectSet< uiButton > extselbuts_
 
uiLabellbl_
 
uiCheckBoxoptbox_
 
- Protected Attributes inherited from uiGroup
uiGroupObjgrpobj_
 
uiGroupParentBodybody_
 

Private Member Functions

 mODTextTranslationClass (uiAttrSel)
 

Additional Inherited Members

- Static Public Member Functions inherited from uiGroup
static uiGroupgtDynamicCastToGrp (mQtclass(QWidget *))
 
- Public Attributes inherited from uiIOSelect
Notifier< uiIOSelectselectionDone
 
Notifier< uiIOSelectoptionalChecked
 

Detailed Description

User interface element for storing attribute desc selection.

It can be used to select an attribute or the input for an attribute. In the latter case you must provide the attrib desc and the input number.

Constructor & Destructor Documentation

uiAttrSel::uiAttrSel ( uiParent ,
const Attrib::DescSet ,
const char *  txt = 0,
Attrib::DescID  curid = Attrib::DescID::undef(),
bool  isinp4otherattrib = true 
)
uiAttrSel::uiAttrSel ( uiParent ,
const char *  ,
const uiAttrSelData ,
bool  isinp4otherattrib = true 
)
uiAttrSel::~uiAttrSel ( )
inline

Member Function Documentation

Attrib::DescID uiAttrSel::attribID ( ) const
inline
static uiString uiAttrSel::cDefLabel ( )
staticprotected
bool uiAttrSel::checkOutput ( const IOObj ) const
void uiAttrSel::doSel ( CallBacker )
protected
const char* uiAttrSel::errMsg ( )
inline
void uiAttrSel::fillSelSpec ( Attrib::SelSpec ) const
const char* uiAttrSel::getAttrName ( ) const
const Attrib::DescSet& uiAttrSel::getAttrSet ( ) const
inline
Pos::GeomID uiAttrSel::getGeomID ( ) const
inline
virtual void uiAttrSel::getHistory ( const IOPar )
virtual

Reimplemented from uiIOSelect.

bool uiAttrSel::getRanges ( TrcKeyZSampling ) const

Tries to determine ranges of currently selected.

bool uiAttrSel::is2D ( ) const
inline
bool uiAttrSel::is3D ( ) const
inline
uiAttrSel::mODTextTranslationClass ( uiAttrSel  )
private
int uiAttrSel::outputNr ( ) const
inline
virtual void uiAttrSel::processInput ( )
virtual

Reimplemented from uiIOSelect.

void uiAttrSel::setDesc ( const Attrib::Desc )

If called, it has to be called before getHistory ! If you call it, you don't need to call setDescSet.

void uiAttrSel::setDescSet ( const Attrib::DescSet )

This function has to be called before getHistory !

void uiAttrSel::setGeomID ( Pos::GeomID  id)
inline
void uiAttrSel::setIgnoreDesc ( const Attrib::Desc )
void uiAttrSel::setIgnoreID ( Attrib::DescID  id)
inline
void uiAttrSel::setNLAModel ( const NLAModel )
void uiAttrSel::setObjectName ( const char *  )
void uiAttrSel::setPossibleDataPacks ( const TypeSet< DataPack::FullID > &  )
void uiAttrSel::setSelSpec ( const Attrib::SelSpec )
void uiAttrSel::showSteeringData ( bool  yn)
inline
void uiAttrSel::update2D ( )
protected
void uiAttrSel::updateInput ( )
protected
virtual const char* uiAttrSel::userNameFromKey ( const char *  s) const
protectedvirtual

If 0 returned, then if possible, that entry is not entered in the entries_.

Reimplemented from uiIOSelect.

Member Data Documentation

uiAttrSelData uiAttrSel::attrdata_
protected
TypeSet<DataPack::FullID> uiAttrSel::dpfids_
protected
BufferString uiAttrSel::errmsg_
protected
Pos::GeomID uiAttrSel::geomid_
protected
Attrib::DescID uiAttrSel::ignoreid_
protected
bool uiAttrSel::is2d_
protected
int uiAttrSel::seltype_
protected
bool uiAttrSel::showsteeringdata_
protected
bool uiAttrSel::usedasinput_
protected
BufferString uiAttrSel::usrnm_
mutableprotected

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