[OpendTect_Developers] Fwd: uiFlatViewer issue

Mahant Mothey mahant.mothey at dgbes.com
Mon Dec 2 12:36:19 CET 2013


---------- Forwarded message ----------
From: Mahant Mothey <mahant.mothey at dgbes.com>
Date: Mon, Dec 2, 2013 at 9:42 AM
Subject: Re: [OpendTect_Developers] uiFlatViewer issue
To: Raman Singh <raman.singh at dgbes.com>
Cc: Geovane Frez Ouverney <geovane at invisiongeo.com.br>, Nanne Hemstra <
nanne.hemstra at dgbes.com>


Hi Geovane,

I think including viewer->setViewToBoundingBox(); after viewer->usePack( *
); would solve the issue. Please check if this works.

Best regards,
Mahant



On 11/27/2013 06:03 PM, Geovane Frez Ouverney wrote:
>
>
> 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,
>
>
> --
>
>
>
>
> _____________________________________________________________
> OpendTect Developers mailing list Developers at opendtect.orghttp://lists.opendtect.org/mailman/listinfo/developers
>
> You receive this mail because you are listed on developers at opendtect.org To unsubscribe please go to http://lists.opendtect.org/mailman/options/developers . If you encounter any problems, please contact support at opendtect.org .
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opendtect.org/pipermail/developers/attachments/20131202/fc28719f/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/20131202/fc28719f/attachment-0001.jpe>


More information about the Developers mailing list