[OpendTect_Developers] uiFlatViewer issue

Geovane Frez Ouverney geovane at invisiongeo.com.br
Wed Nov 27 13:33:29 CET 2013


Dear,

I have this piece of code that works pretty well on 4.4.x versions, but 
on 4.6.x, the gather is not showed:



PreStack::Gather gather = new PreStack::Gather;
DPM( DataPackMgr::FlatID() ).addAndObtain( gather );

gather->readFrom( mid, bid ); // mid, bid from scene

mainviewer_ = new uiObjectItemView( this );
...
mainviewer_->enableScrollBars( false );
mainviewer_->disableScrollZoom();


uiFlatViewer* viewer = new uiFlatViewer( 0 );
viewer->appearance().setGeoDefaults( true );
viewer->appearance().setDarkBG( false );
...
viewer->addPack( gather->id(), false );
viewer->usePack( false, gather->id() );
viewer->usePack( true, gather->id() );

mainviewer_->addItem( new uiObjectItem( viewer ) );



I appreciate any tips.


Best regards,


-- 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendtect.org/pipermail/developers/attachments/20131127/d43c4c34/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 22121 bytes
Desc: not available
URL: <http://lists.opendtect.org/pipermail/developers/attachments/20131127/d43c4c34/attachment-0001.jpe>


More information about the Developers mailing list