Skeleton for toggling grouping of well paths

This commit is contained in:
Gaute Lindkvist
2020-10-19 14:53:38 +02:00
parent 395398587a
commit 195bcf2817
6 changed files with 244 additions and 0 deletions

View File

@@ -1158,6 +1158,12 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
menuBuilder << "RicMoveItemsToTopFeature";
}
if ( caf::CmdFeatureManager::instance()->getCommandFeature( "RicToggleWellPathGroupingFeature" )->canFeatureBeExecuted() )
{
menuBuilder << "Separator";
menuBuilder << "RicToggleWellPathGroupingFeature";
}
if ( caf::CmdFeatureManager::instance()->getCommandFeature( "RicDeleteItemFeature" )->canFeatureBeExecuted() )
{
menuBuilder << "Separator";

View File

@@ -574,6 +574,22 @@ void RimWellPathCollection::deleteAllWellPaths()
updateAllRequiredEditors();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellPathCollection::groupWellPaths( const std::vector<RimWellPath*> wellPaths )
{
// TODO: implement
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellPathCollection::ungroupWellPaths( const std::vector<RimWellPath*> wellPaths )
{
// TODO: implement
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -97,6 +97,8 @@ public:
std::vector<RimWellPath*> allWellPaths() const;
void removeWellPath( RimWellPath* wellPath );
void deleteAllWellPaths();
void groupWellPaths( const std::vector<RimWellPath*> wellPaths );
void ungroupWellPaths( const std::vector<RimWellPath*> wellPaths );
RimWellPath* mostRecentlyUpdatedWellPath();