Add method to remove plot in Well Log Plot Collection.

This commit is contained in:
Kristian Bendiksen 2021-09-08 11:14:07 +02:00
parent 7f460b2958
commit a3a2aac9b6
2 changed files with 15 additions and 4 deletions

View File

@ -166,6 +166,15 @@ void RimWellLogPlotCollection::deleteAllPlots()
m_wellLogPlots.deleteAllChildObjects(); m_wellLogPlots.deleteAllChildObjects();
} }
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogPlotCollection::removePlot( gsl::not_null<RimWellLogPlot*> plot )
{
m_wellLogPlots.removeChildObject( plot );
updateAllRequiredEditors();
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@ -59,10 +59,12 @@ public:
RigGeoMechWellLogExtractor* findOrCreateExtractor( RimWellPath* wellPath, RimGeoMechCase* geoMechCase ); RigGeoMechWellLogExtractor* findOrCreateExtractor( RimWellPath* wellPath, RimGeoMechCase* geoMechCase );
std::vector<RimWellLogPlot*> wellLogPlots() const; std::vector<RimWellLogPlot*> wellLogPlots() const;
void addWellLogPlot( gsl::not_null<RimWellLogPlot*> wellLogPlot );
void deleteAllPlots() override; void addWellLogPlot( gsl::not_null<RimWellLogPlot*> wellLogPlot );
void loadDataAndUpdateAllPlots() override; void removePlot( gsl::not_null<RimWellLogPlot*> plot );
size_t plotCount() const override; void deleteAllPlots() override;
void loadDataAndUpdateAllPlots() override;
size_t plotCount() const override;
void deleteAllExtractors(); void deleteAllExtractors();
void removeExtractors( const RigWellPath* wellPathGeometry ); void removeExtractors( const RigWellPath* wellPathGeometry );