[OpendTect_Developers] Connection between Crossplot & 3D Visualisation in OpendTect for uiDPSDemo plugin

Satyaki Maitra satyaki at opendtect.org
Thu Jan 14 09:58:05 CET 2010


Hi all

Going along with the chain of mails initiated by Bert regarding 
uiDPSDemo plugin
in this mail I will focus on how to make a connection between the 
CrossPlot and the
3D workspace in OpendTect.

As you know the uiDPSDemo plugin shows you how to create DataPointSets,
view the data via the uiDataPointSet and crossplot certain colums from 
the set.
By making a connection to a 3D viewer you can see where the selected data
is located in 3D space. This connection can simply be established
by passing a pointer of a DataPointSetDisplayMgr 
(include/General/dpsdispmgr.h )
to the constructor of the uiDataPointSet.

DataPointSetDisplayMgr is the class which manages the display of the 
selected points
in the datapointset. But it is virtually an empty class.To display a 
selection in
OpendTect's 3D scene we have derived uiVisDataPointSetDisplayMgr
(include/uiVis/uivisdatapointsetdisplaymgr.h) from DataPointSetDisplayMgr.
The uiODApplMgr already has uiVisDataPointSetDisplayMgr
(include/uiODMain/uiodapplmgr.h) ready to be used. The same display 
manager is used in the
uiDPSDemo plugin as well as other places in OpendTect where a 3D 
connection with the
CrossPlot is established .


Thus if you are creating a uiDataPointSet you can do it in the following 
manner:

/*
uiDataPointSet uidps( uiparent, dps, dpssetup, dpsdispmgr );
uidps.show();
*/


The file plugins/uiDPSDemo/uidpsdemo.cc has a example of the above. If 
you don't
want a dpsdispmgr you can pass a null pointer instead.

Note that uiVisDataPointSetDisplayMgr only looks after the display in 
OpendTect's 3D
scene. For other displays or viewers, you can make your own subclass of 
DataPointSetDisplayMgr
in the same manner and pass it to your uiDataPointSet.

I guess this amount of information is enough to establish a connection 
between a Crossplot
and 3D workspace in OpendTect. For further details please don't hesitate 
to contact us.

Best Regards,

Satyaki

-- 
- Satyaki Maitra
- OpendTect Developer
- 
- dGB Earth Sciences
- 304, Gateway Plaza, Hiranandani Gardens, Powai, Mumbai 400 076, India
- Phone: +91 22 25704984 , Fax: +91 22 25704977, Mobile: +91 9930856158
- mailto:satyaki.maitra at opendtect.org, http://www.opendtect.org






More information about the Developers mailing list