[OpendTect_Developers] service functions and macros to make attribute implementation easier
Hélène Huck
helene.huck at dgbes.com
Thu Dec 22 17:11:37 CET 2011
Hi all,
When it comes to plugin development to OpendTect, one of our main goals
is to try as much as possible to facilitate your work.
This is certainly true for those of you who would want to code their own
Attributes: it should be as quick and easy as possible so that you can
rather focus on your algorithm.
Let's take a quick example to illustrate this:
/BufferString zDepLabel(const char* pre,const char* post) const/
is a small service function which allows you to add, in the user
interface of your attribute, a field for a parameter in the Z direction
without having to bother coding yourself for all the possibilities
(survey in time/depth, which units...)
I write in the code:
/zDepLabel("Maximum","shift") [to be found in
/uiAttributes/uiattrdesced.h]/
and depending on the survey settings the user will see "maximum time
shift (ms)" or maybe "maximum depth shift (ft)", quick and easy, your
interface is correct with very little effort.
There are lots of other service functions and macros designed to make
your coding life easy (for instance in /AttributeEngine/attribdesc.h and
/uiAttributes/paramsetget.h); at least those we thought of! Should you
think of another function or macro missing which would be profitable for
everyone implementing an attribute plugin, please do not hesitate to
reply to this email!
Best regards,
Hélène
--
-- Helene Huck
-- Geophysical software engineer
-- dGB Earth Sciences B.V.
-- Nijverheidstraat 11-2, 7511 JM Enschede, The Netherlands
-- mailto: helene.huck at dgbes.com, http://www.dgbes.com
-- Tel: +31 53 4315155 , Fax: +31 53 4315104
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendtect.org/pipermail/developers/attachments/20111222/ff9e246e/attachment.html>
More information about the Developers
mailing list