mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Renaming of more methods in Rim3dView.
Removed virtual method from RiuViewerToViewInterface as it was not used from the interface.
This commit is contained in:
parent
7f3f6419ac
commit
b51e054ffd
@ -551,7 +551,7 @@ void Rim2dIntersectionView::onCreateDisplayModel()
|
||||
void Rim2dIntersectionView::onUpdateCurrentTimeStep()
|
||||
{
|
||||
update3dInfo();
|
||||
updateLegends();
|
||||
onUpdateLegends();
|
||||
|
||||
if ( m_flatSimWellPipePartMgr.notNull() )
|
||||
{
|
||||
@ -623,7 +623,7 @@ void Rim2dIntersectionView::onUpdateCurrentTimeStep()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void Rim2dIntersectionView::updateLegends()
|
||||
void Rim2dIntersectionView::onUpdateLegends()
|
||||
{
|
||||
m_legendObjectToSelect = nullptr;
|
||||
|
||||
@ -705,10 +705,6 @@ void Rim2dIntersectionView::onResetLegendsInViewer()
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void Rim2dIntersectionView::onCreatePartCollectionFromSelection( cvf::Collection<cvf::Part>* parts ) {}
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void Rim2dIntersectionView::onTimeStepChanged() {}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
@ -82,7 +82,7 @@ public:
|
||||
bool handleOverlayItemPicked( const cvf::OverlayItem* pickedOverlayItem ) const;
|
||||
|
||||
protected:
|
||||
void updateLegends() override;
|
||||
void onUpdateLegends() override;
|
||||
|
||||
bool isGridVisualizationMode() const override;
|
||||
void axisLabels( cvf::String* xLabel, cvf::String* yLabel, cvf::String* zLabel ) override;
|
||||
@ -90,7 +90,6 @@ protected:
|
||||
void onCreatePartCollectionFromSelection( cvf::Collection<cvf::Part>* parts ) override;
|
||||
void onClampCurrentTimestep() override;
|
||||
void onUpdateCurrentTimeStep() override;
|
||||
void onTimeStepChanged() override;
|
||||
void onUpdateStaticCellColors() override;
|
||||
void onUpdateScaleTransform() override;
|
||||
cvf::Transform* scaleTransform() override;
|
||||
|
@ -432,31 +432,6 @@ void Rim3dView::setComparisonView( Rim3dView* compView )
|
||||
m_comparisonView.uiCapability()->updateConnectedEditors();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void Rim3dView::setCurrentTimeStepAndUpdate( int frameIndex )
|
||||
{
|
||||
setCurrentTimeStep( frameIndex );
|
||||
|
||||
this->onUpdateCurrentTimeStep();
|
||||
|
||||
if ( Rim3dView* depView = prepareComparisonView() )
|
||||
{
|
||||
depView->onUpdateCurrentTimeStep();
|
||||
depView->appendAnnotationsToModel();
|
||||
depView->appendMeasurementToModel();
|
||||
|
||||
restoreComparisonView();
|
||||
}
|
||||
|
||||
RimProject* project;
|
||||
firstAncestorOrThisOfTypeAsserted( project );
|
||||
project->mainPlotCollection()->updateCurrentTimeStepInPlots();
|
||||
|
||||
appendAnnotationsToModel();
|
||||
appendMeasurementToModel();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
@ -499,6 +474,32 @@ void Rim3dView::setCurrentTimeStep( int frameIndex )
|
||||
this->hasUserRequestedAnimation = true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void Rim3dView::setCurrentTimeStepAndUpdate( int frameIndex )
|
||||
{
|
||||
setCurrentTimeStep( frameIndex );
|
||||
|
||||
this->onUpdateCurrentTimeStep();
|
||||
|
||||
if ( Rim3dView* depView = prepareComparisonView() )
|
||||
{
|
||||
depView->onUpdateCurrentTimeStep();
|
||||
depView->appendAnnotationsToModel();
|
||||
depView->appendMeasurementToModel();
|
||||
|
||||
restoreComparisonView();
|
||||
}
|
||||
|
||||
RimProject* project;
|
||||
firstAncestorOrThisOfTypeAsserted( project );
|
||||
project->mainPlotCollection()->updateCurrentTimeStepInPlots();
|
||||
|
||||
appendAnnotationsToModel();
|
||||
appendMeasurementToModel();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -752,6 +753,14 @@ caf::PdmFieldHandle* Rim3dView::userDescriptionField()
|
||||
return m_nameConfig->nameField();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::PdmFieldHandle* Rim3dView::backgroundColorField()
|
||||
{
|
||||
return &m_backgroundColor;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -1147,7 +1156,7 @@ void Rim3dView::applyBackgroundColorAndFontChanges()
|
||||
}
|
||||
updateGridBoxData();
|
||||
updateAnnotationItems();
|
||||
updateLegends();
|
||||
onUpdateLegends();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -1207,6 +1216,8 @@ void Rim3dView::updateDisplayModelVisibility()
|
||||
viewer()->setEnableMask( mask, false );
|
||||
viewer()->setEnableMask( mask, true );
|
||||
|
||||
this->onUpdateDisplayModelVisibility();
|
||||
|
||||
viewer()->update();
|
||||
}
|
||||
|
||||
|
@ -144,7 +144,7 @@ public:
|
||||
bool isTimeStepDependentDataVisibleInThisOrComparisonView() const;
|
||||
|
||||
// Updating
|
||||
void updateCurrentTimeStepAndRedraw() override;
|
||||
virtual void updateCurrentTimeStepAndRedraw();
|
||||
virtual void scheduleGeometryRegen( RivCellSetEnum geometryType ) = 0;
|
||||
void scheduleCreateDisplayModelAndRedraw();
|
||||
|
||||
@ -191,6 +191,7 @@ protected:
|
||||
bool hasVisibleTimeStepDependent3dWellLogCurves() const;
|
||||
void addWellPathsToModel( cvf::ModelBasicList* wellPathModelBasicList,
|
||||
const cvf::BoundingBox& wellPathClipBoundingBox );
|
||||
void updateDisplayModelVisibility();
|
||||
|
||||
void addDynamicWellPathsToModel( cvf::ModelBasicList* wellPathModelBasicList,
|
||||
const cvf::BoundingBox& wellPathClipBoundingBox );
|
||||
@ -203,18 +204,15 @@ protected:
|
||||
RiuViewer* nativeOrOverrideViewer() const;
|
||||
bool isUsingOverrideViewer() const;
|
||||
|
||||
// Implementation of RimNameConfigHolderInterface
|
||||
void performAutoNameUpdate() override;
|
||||
|
||||
// Abstract methods to implement in subclasses
|
||||
|
||||
virtual void axisLabels( cvf::String* xLabel, cvf::String* yLabel, cvf::String* zLabel ) = 0;
|
||||
|
||||
virtual void onCreateDisplayModel() = 0;
|
||||
virtual void updateDisplayModelVisibility();
|
||||
virtual void onUpdateDisplayModelVisibility(){};
|
||||
virtual void onClampCurrentTimestep() = 0;
|
||||
virtual void onUpdateCurrentTimeStep() = 0;
|
||||
virtual void onTimeStepChanged() = 0;
|
||||
virtual void onTimeStepChanged(){};
|
||||
virtual bool isTimeStepDependentDataVisible() const = 0;
|
||||
|
||||
virtual void onCreatePartCollectionFromSelection( cvf::Collection<cvf::Part>* parts ) = 0;
|
||||
@ -224,12 +222,13 @@ protected:
|
||||
virtual cvf::Transform* scaleTransform() = 0;
|
||||
|
||||
virtual void onResetLegendsInViewer() = 0;
|
||||
virtual void updateLegends() = 0;
|
||||
|
||||
protected: // Fields
|
||||
caf::PdmField<int> m_currentTimeStep;
|
||||
virtual void onUpdateLegends() = 0;
|
||||
|
||||
protected:
|
||||
// Timestep Field. Children clamps this differently
|
||||
caf::PdmField<int> m_currentTimeStep;
|
||||
|
||||
// 3D display model data
|
||||
cvf::ref<cvf::ModelBasicList> m_wellPathPipeVizModel;
|
||||
cvf::ref<cvf::ModelBasicList> m_crossSectionVizModel;
|
||||
cvf::ref<cvf::ModelBasicList> m_highlightVizModel;
|
||||
@ -238,17 +237,11 @@ protected:
|
||||
cvf::ref<RivAnnotationsPartMgr> m_annotationsPartManager;
|
||||
cvf::ref<RivMeasurementPartMgr> m_measurementPartManager;
|
||||
|
||||
private:
|
||||
protected:
|
||||
// Overridden PdmObject methods:
|
||||
|
||||
void setupBeforeSave() override;
|
||||
|
||||
protected:
|
||||
caf::PdmFieldHandle* userDescriptionField() override;
|
||||
caf::PdmFieldHandle* backgroundColorField()
|
||||
{
|
||||
return &m_backgroundColor;
|
||||
}
|
||||
caf::PdmFieldHandle* backgroundColorField();
|
||||
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
const QVariant& oldValue,
|
||||
@ -258,6 +251,9 @@ protected:
|
||||
QWidget* createViewWidget( QWidget* mainWindowParent ) override;
|
||||
void initAfterRead() override;
|
||||
|
||||
private:
|
||||
void setupBeforeSave() override;
|
||||
|
||||
private:
|
||||
// Overridden ViewWindow methods:
|
||||
|
||||
@ -265,6 +261,9 @@ private:
|
||||
void deleteViewWidget() override;
|
||||
QWidget* viewWidget() override;
|
||||
|
||||
// Implementation of RimNameConfigHolderInterface
|
||||
void performAutoNameUpdate() override final;
|
||||
|
||||
// Implementation of RiuViewerToViewInterface
|
||||
void setCameraPosition( const cvf::Mat4d& cameraPosition ) override;
|
||||
|
||||
|
@ -251,7 +251,7 @@ void RimEclipseContourMapView::updateGeometry()
|
||||
progress.setProgress( 30 );
|
||||
}
|
||||
|
||||
updateLegends(); // To make sure the scalar mappers are set up correctly
|
||||
onUpdateLegends(); // To make sure the scalar mappers are set up correctly
|
||||
appendWellsAndFracturesToModel();
|
||||
|
||||
{ // Step 2: generate geometry. Takes about 60% of the time.
|
||||
@ -373,7 +373,7 @@ void RimEclipseContourMapView::appendPickPointVisToModel()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseContourMapView::updateLegends()
|
||||
void RimEclipseContourMapView::onUpdateLegends()
|
||||
{
|
||||
if ( nativeOrOverrideViewer() )
|
||||
{
|
||||
@ -459,7 +459,7 @@ void RimEclipseContourMapView::fieldChangedByUi( const caf::PdmFieldHandle* chan
|
||||
}
|
||||
else if ( changedField == &m_showScaleLegend )
|
||||
{
|
||||
updateLegends();
|
||||
onUpdateLegends();
|
||||
scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ protected:
|
||||
void appendContourMapProjectionToModel();
|
||||
void appendContourLinesToModel();
|
||||
void appendPickPointVisToModel();
|
||||
void updateLegends() override;
|
||||
void onUpdateLegends() override;
|
||||
void updateViewWidgetAfterCreation() override;
|
||||
void updateViewFollowingRangeFilterUpdates() override;
|
||||
void onLoadDataAndUpdate() override;
|
||||
|
@ -561,7 +561,7 @@ void RimEclipseView::onCreateDisplayModel()
|
||||
else
|
||||
{
|
||||
m_overlayInfoConfig()->update3DInfo();
|
||||
updateLegends();
|
||||
onUpdateLegends();
|
||||
}
|
||||
|
||||
std::vector<RimFlowCharacteristicsPlot*> characteristicsPlots;
|
||||
@ -596,7 +596,7 @@ void RimEclipseView::onUpdateCurrentTimeStep()
|
||||
|
||||
m_propertyFilterCollection()->updateFromCurrentTimeStep();
|
||||
|
||||
updateLegends(); // To make sure the scalar mappers are set up correctly
|
||||
onUpdateLegends(); // To make sure the scalar mappers are set up correctly
|
||||
|
||||
updateVisibleGeometriesAndCellColors();
|
||||
|
||||
@ -1070,10 +1070,8 @@ QString RimEclipseView::createAutoName() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseView::updateDisplayModelVisibility()
|
||||
void RimEclipseView::onUpdateDisplayModelVisibility()
|
||||
{
|
||||
Rim3dView::updateDisplayModelVisibility();
|
||||
|
||||
faultCollection()->updateConnectedEditors();
|
||||
|
||||
// This is required to update the read-only state of simulation wells
|
||||
@ -1159,7 +1157,7 @@ std::vector<size_t> RimEclipseView::indicesToVisibleGrids() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseView::updateLegends()
|
||||
void RimEclipseView::onUpdateLegends()
|
||||
{
|
||||
if ( nativeOrOverrideViewer() )
|
||||
{
|
||||
|
@ -166,7 +166,7 @@ protected:
|
||||
private:
|
||||
QString createAutoName() const override;
|
||||
|
||||
void updateDisplayModelVisibility() override;
|
||||
void onUpdateDisplayModelVisibility() override;
|
||||
|
||||
std::vector<size_t> indicesToVisibleGrids() const;
|
||||
void onUpdateScaleTransform() override;
|
||||
@ -175,7 +175,7 @@ private:
|
||||
void onUpdateStaticCellColors() override;
|
||||
void updateStaticCellColors( RivCellSetEnum geometryType );
|
||||
|
||||
void updateLegends() override;
|
||||
void onUpdateLegends() override;
|
||||
void updateMinMaxValuesAndAddLegendToView( QString legendLabel,
|
||||
RimEclipseCellColors* resultColors,
|
||||
RigCaseCellResultsData* cellResultsData );
|
||||
|
@ -254,7 +254,7 @@ void RimGeoMechContourMapView::updateGeometry()
|
||||
{
|
||||
m_contourMapProjection->generateResultsIfNecessary( m_currentTimeStep() );
|
||||
}
|
||||
updateLegends();
|
||||
onUpdateLegends();
|
||||
|
||||
progress.setProgress( 30 );
|
||||
}
|
||||
@ -366,7 +366,7 @@ void RimGeoMechContourMapView::appendPickPointVisToModel()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimGeoMechContourMapView::updateLegends()
|
||||
void RimGeoMechContourMapView::onUpdateLegends()
|
||||
{
|
||||
if ( nativeOrOverrideViewer() )
|
||||
{
|
||||
@ -452,7 +452,7 @@ void RimGeoMechContourMapView::fieldChangedByUi( const caf::PdmFieldHandle* chan
|
||||
}
|
||||
else if ( changedField == &m_showScaleLegend )
|
||||
{
|
||||
updateLegends();
|
||||
onUpdateLegends();
|
||||
scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ protected:
|
||||
void appendContourMapProjectionToModel();
|
||||
void appendContourLinesToModel();
|
||||
void appendPickPointVisToModel();
|
||||
void updateLegends() override;
|
||||
void onUpdateLegends() override;
|
||||
void updateViewWidgetAfterCreation() override;
|
||||
void updateViewFollowingRangeFilterUpdates() override;
|
||||
void onLoadDataAndUpdate() override;
|
||||
|
@ -297,7 +297,7 @@ void RimGeoMechView::onCreateDisplayModel()
|
||||
}
|
||||
else
|
||||
{
|
||||
updateLegends();
|
||||
onUpdateLegends();
|
||||
m_vizLogic->updateStaticCellColors( -1 );
|
||||
m_crossSectionCollection->applySingleColorEffect();
|
||||
|
||||
@ -318,7 +318,7 @@ RimPropertyFilterCollection* RimGeoMechView::nativePropertyFilterCollection()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimGeoMechView::onUpdateCurrentTimeStep()
|
||||
{
|
||||
updateLegends();
|
||||
onUpdateLegends();
|
||||
|
||||
if ( this->isTimeStepDependentDataVisibleInThisOrComparisonView() )
|
||||
{
|
||||
@ -430,7 +430,7 @@ void RimGeoMechView::onResetLegendsInViewer()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimGeoMechView::updateLegends()
|
||||
void RimGeoMechView::onUpdateLegends()
|
||||
{
|
||||
if ( nativeOrOverrideViewer() )
|
||||
{
|
||||
|
@ -128,7 +128,7 @@ private:
|
||||
|
||||
void onResetLegendsInViewer() override;
|
||||
|
||||
void updateLegends() override;
|
||||
void onUpdateLegends() override;
|
||||
|
||||
void updateTensorLegendTextAndRanges( RimRegularLegendConfig* legendConfig, int timeStepIndex );
|
||||
|
||||
|
@ -57,7 +57,6 @@ public:
|
||||
virtual cvf::ref<caf::DisplayCoordTransform> displayCoordTransform() const = 0;
|
||||
|
||||
virtual void setCurrentTimeStepAndUpdate( int frameIndex ) = 0;
|
||||
virtual void updateCurrentTimeStepAndRedraw() = 0;
|
||||
|
||||
virtual void endAnimation() = 0;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user