[OpendTect_Developers] Documentation for Plugin Programmers

Nanne Hemstra nanne.hemstra at dgbes.com
Tue Apr 8 03:10:40 CEST 2014


Hi Jim,

Let me see if I can answer some of your questions here.



> I am trying to use the Tutorial Plugin to gain some understanding, & I
> have compiled it in debug mode. However, when I use Utilities->Plugins to
> load it & then use Utilities->Tools->TutTools->Seismic (Direct) to start
> it, OpendTect crashes. See attached dump file. Do you have any hints on how
> to get it to not crash?
>


Windows is very picky. Did you perhaps try to load your dll (compiled in
debug mode) into an OpendTect compiled in release mode?
The OpendTect developers package for Windows also contains the debug dll`s
and executables (bin/win64/Debug). Please start od_main from there and try
to load your plugin.
In any case, avoid mixing dlls from different compile modes.




>
> Most of my programs for the last several years have been nominally in C++,
> but I have mostly used C with just a little of the object oriented features
> of C++. So I'm finding the documentation in
> http://opendtect.org/rel/doc/Programmer/Generated/html/modules.html
> to be a rather cryptic, & not very helpful in telling me how to call the
> functions & classes if I rewrite my programs to be plugins. Is there any
> more basic documentation that might be helpful?
>
>
We tried to make the tutorial plugin as basic as possible. The programmers
documentation has all classes from all modules and I can see that you
easily get lost there. The code documentation is work in progress. For some
modules we added some information about the most used classes on the module
main page (for instance
http://opendtect.org/rel/doc/Programmer/Generated/html/group__uiODMain.html),
but this has to be expanded.




> Although this
> http://lists.opendtect.org/pipermail/developers/2011-April/000251.html
> tells me that I need to use SeisTrcReader & SeisTrcWriter to get the trace
> data into my programs, I haven't yet found what I need to use to get the
> sort of data that in SEGY format is in the binary or trace headers, like XY
> data, inline & crossline numbers, sample interval, number of samples per
> trace etc.
>
> Where can I find this sort of information?
>

The SeisTrcReader fills a SeisTrc. You can ask a SeisTrc for its info
(SeisTrc::info()) which is a SeisTrcInfo object. See also
include\Seis\seisinfo.h
This object has the information you're looking for, like sampling, inl/crl
numbers, X/Y.
sampling is in SampleData, which has a value for the start and the step.
The number of samples can be found by asking the SeisTrc for its size. A
trace can have multiple components, so it needs a component index as
argument.


If you have more questions, please let us know.

Best regards,
Nanne



-- 
Nanne Hemstra
OpendTect developer

dGB Earth Sciences
Av. José Silva de Azevedo Neto, 200 - Bl. 4 - Sala 104, Evolution V
Barra da Tijuca, Rio de Janeiro - RJ, CEP: 22775-056, Brasil
T: +55 21 2430-5946 , F: +55 21 2430-5901 , M: +55 21 998993220
http://www.dgbes.com , http://www.opendtect.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendtect.org/pipermail/developers/attachments/20140407/3e732325/attachment.html>


More information about the Developers mailing list