Working with Well Log Visuals

Note: you will need to include WellData and WellTrack2D in your Module Dependencies list in addition to Viewer2D.

Creating a Well Log window

IWellLogWindowFactory wellLogf = IWellLogWindow.factory;
IWellLogWindow wellLogWindow = wellLogf.createWindow();

Creating a Well Log Visual

In this example, we assume you have already created a well data wellData and well log window wellLogWindow.

IWellLogVisualFactory lf = IWellLogVisual.factory;
IWellLogVisual visual =(IWellLogVisual)  lf.createVisual(wellLogWindow, wellData, null, false);

Adding Tracks to a Well Log Window

In this example, we assume you have already created a well log window wellLogWindow.

ITrack track = wellLogWindow.addTrack(ITrack.TrackType.LINEAR);

Adding Log Curves to a Track

In this example, we assume you have already created a well data wellData and a track track.

ILogCurve logCurve = wellData.getCurve("DEPT");
ILogCurveShape logCurveShape = ILogCurveShape.Factory.createLogCurveShape(track, logCurve);
track.addTrackShape(logCurveShape);

Adding Markers to a Track

In this example, we assume you have already created a well data wellData and a track track.

IMarker marker = wellData.getMarker("FAULT");
IMarkerShape markerShape = IMarkerShape.Factory.createMarkerShape(track, marker);
track.addTrackShape(markerShape);