[Developers] Creating an horizon from scratch

Kristofer Tingdahl kristofer.tingdahl at dgb-group.com
Tue Nov 27 21:00:46 CET 2007


Dear Fernando,
> This approach works but it isn't what I want. I want to create an 
> horizon from scratch, without specifying an existing horizon.
> I've tried creating a new Horizon2D instance but it didn't work as I 
> expected:
>    EM::EMManager& em = EM::EMM();
>    EM::EMObject* emobj = EM::Horizon2D::create(em);
>    mDynamicCastGet(EM::Horizon*,h1,emobj)
This should work. You should note that this horizon is in memory only, 
i.e. it is not saved to disk. If you want to do save it, you have to do 
the trick above with the uiIoObjSel. In what sense did it not work?

Best regards,

Kristofer Tingdahl

-- 
Dr. Kristofer Tingdahl
dGB Earth Sciences
1 Sugar Creek Center BLVD #935; Sugar Land, TX 77478; USA
+1 281 652 5318





More information about the Developers mailing list