Fixed (#583) and improved (#585) and (#592)

Also a renamed typo allign -> align
This commit is contained in:
Jacob Støren 2015-10-28 10:06:35 +01:00
parent 0a45354bd9
commit 44463f3a41
5 changed files with 10 additions and 13 deletions

View File

@ -121,7 +121,7 @@ void RicDeleteItemExec::redo()
parentObj->firstAnchestorOrThisOfType(wellLogPlotTrack);
if (wellLogPlotTrack)
{
wellLogPlotTrack->allignDepthZoomToPlotAndZoomAllX();
wellLogPlotTrack->alignDepthZoomToPlotAndZoomAllX();
}
RimWellLogPlotCollection* wellLogPlotCollection = NULL;

View File

@ -46,8 +46,8 @@ void RicWellLogPlotTrackFeatureImpl::moveCurvesToWellLogPlotTrack(RimWellLogPlot
wellLogPlotTrack->insertCurve(curves[cIdx], cIdx);
}
wellLogPlotTrack->allignDepthZoomToPlotAndZoomAllX();
wellLogPlotTrack->loadDataAndUpdate();
wellLogPlotTrack->alignDepthZoomToPlotAndZoomAllX();
wellLogPlotTrack->updateConnectedEditors();
}
@ -59,7 +59,8 @@ void RicWellLogPlotTrackFeatureImpl::moveCurvesToWellLogPlotTrack(RimWellLogPlot
CVF_ASSERT(wellLogPlotTrack && insertAfterCurve);
wellLogPlotTrack->moveCurves(insertAfterCurve, curves);
wellLogPlotTrack->allignDepthZoomToPlotAndZoomAllX();
wellLogPlotTrack->loadDataAndUpdate();
wellLogPlotTrack->alignDepthZoomToPlotAndZoomAllX();
wellLogPlotTrack->updateConnectedEditors();
}

View File

@ -252,20 +252,15 @@ void RimWellLogPlotCurve::updateTrackAndPlotFromCurveData()
firstAnchestorOrThisOfType(wellLogPlot);
if (wellLogPlot)
{
bool setDepthRange = !wellLogPlot->hasAvailableDepthRange();
wellLogPlot->calculateAvailableDepthRange();
if (setDepthRange)
{
wellLogPlot->zoomAllDepth();
}
wellLogPlot->zoomAllDepth();
}
RimWellLogPlotTrack* plotTrack;
firstAnchestorOrThisOfType(plotTrack);
if (plotTrack)
{
plotTrack->allignDepthZoomToPlotAndZoomAllX();
plotTrack->alignDepthZoomToPlotAndZoomAllX();
}
}

View File

@ -124,6 +124,7 @@ void RimWellLogPlotTrack::addCurve(RimWellLogPlotCurve* curve)
void RimWellLogPlotTrack::insertCurve(RimWellLogPlotCurve* curve, size_t index)
{
curves.insert(index, curve);
// Todo: Mark curve data to use either TVD or MD
if (m_wellLogTrackPlotWidget)
{
@ -274,7 +275,7 @@ void RimWellLogPlotTrack::detachAllCurves()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogPlotTrack::allignDepthZoomToPlotAndZoomAllX()
void RimWellLogPlotTrack::alignDepthZoomToPlotAndZoomAllX()
{
if (m_wellLogTrackPlotWidget)
{

View File

@ -57,7 +57,7 @@ public:
void loadDataAndUpdate();
bool availableDepthRange(double* minimumDepth, double* maximumDepth);
void allignDepthZoomToPlotAndZoomAllX();
void alignDepthZoomToPlotAndZoomAllX();
RiuWellLogTrackPlot* viewer();