[Developers] The Tutorial Plugin

Raman Singh raman at opendtect.org
Fri Oct 19 12:26:58 CEST 2007


Dear all,

Encouraged by the increasing number of OpendTect programmers, we have 
made a special plugin to illustrate how plugins can be developed in 
OpendTect. It's called the Tutorial plugin. It serves as an example 
plugin and like other OpendTect plugins it has got a non-UI plugin Tut 
and its UI counterpart uiTut. It consists of four functional parts:

1) Tut Seis Tools: It deals with direct manipulation of seismic traces 
with following operations:
   -- Scaling -> scales the data values using a factor and a shift.
   -- Squaring -> just takes the square of data values at each sample.
   -- Smoothing -> smoothes the traces vertically by taking an average 
of 3 or 5 samples depending on filter strength.

2) Tutorial attribute: It performs the same operations as in Tut Seis 
Tools, but via the attribute route. The biggest advantage is 
multi-threading which expedites the process.
   Multiple traces can be processed wtth ease, which allows us to 
introduce another operation -> horizontal smoothing which can also make 
use of a Steering Cube. This part of the plugin also introduces the 
concept of factories. In this case, it shows how to add a new attribute 
from a plugin to the attribute factory and eventually to the list of 
standard OpendTect attributes without touching the OpendTect code.

3) Tut Horizon Tools: This involves handing of horizon data and involves 
two operations:
   -- Smoothing -> It's a unary operation. Smoothing is done similar to 
Tut Seis Tools by taking the average of data values within a window 
specified by the filter strength.
   -- Thickness computation -> A binary operation, it subtracts the Z 
values of one horizon from the other. Results are stored as an attribute 
to one of the input horizons...

4) Tut Well Tools: This one deals with handling of well-log data and 
smoothing it. It also shows how to add a menu item to an object tree menu.

Throughout the Tutorial plugin, the emphasis has been on keeping the 
code as simple as possible rather than its actual utility. It is aimed 
at getting a programmer started with his first plugin. Developers are 
also advised to go through the plugin section of the programmer's manual 
at http://www2.opendtect.org/devel/html/Programmer/plugins.html.

For further queries and assistance, you can always get back to us.

Regards,
Raman

-- 
Raman K Singh
dGB India
304, Gateway Plaza
Hiranandani Gardens, Powai
Mumbai  400 076
India

Ph.  +91 22 25704984
Mob: +91 98190 82417
www.opendtect.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendtect.org/pipermail/developers/attachments/20071019/0be07122/attachment.html>


More information about the Developers mailing list