[Developers] Attribute plugin question

Tracy Stark tstark3 at attglobal.net
Mon Jul 31 00:46:09 CEST 2006


Can anyone help me with the following:

In the coherency plugin "uicoherencyattrib.cc" and in the following routine
in particular, 

bool uiCoherencyAttrib::setParameters( const Attrib::Desc& desc )
{
    if ( strcmp(desc.attribName(),Coherency::attribName()) )
    return false;

    mIfGetInt(Coherency::typeStr(),type,is1fld->setValue(type==1?
true:false));
    mIfGetFloatInterval( Coherency::gateStr(), gate, tgfld->setValue(gate)
);
    mIfGetFloat( Coherency::maxdipStr(),maxdip,maxdipfld->setValue(maxdip)
);
    mIfGetFloat( Coherency::ddipStr(),ddip,deltadipfld->setValue(ddip) );
    mIfGetBinID(Coherency::stepoutStr(), stepout,
stepoutfld->setBinID(stepout))

    is1Sel(0);
    return true;
}
 
The variables ³type, gate, maxdip, ddip, and stepout² are all defined in
coherencyattrib.h as protected variables.  How are they even seen at this
point in the code?

Thanks,

Tracy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendtect.org/pipermail/developers/attachments/20060730/7ca27522/attachment.html>


More information about the Developers mailing list