mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1335 Connection arrows for all cross-flows also. Made ready for options to show straight arrows, and adjusted a bit.
This commit is contained in:
@@ -40,7 +40,7 @@ CAF_PDM_SOURCE_INIT(RimFlowDiagSolution, "FlowDiagSolution");
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool hasCrossFlowEnding(const QString& tracerName)
|
||||
bool RimFlowDiagSolution::hasCrossFlowEnding(const QString& tracerName)
|
||||
{
|
||||
return tracerName.endsWith(CROSS_FLOW_ENDING);
|
||||
}
|
||||
@@ -48,7 +48,7 @@ bool hasCrossFlowEnding(const QString& tracerName)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString removeCrossFlowEnding(const QString& tracerName)
|
||||
QString RimFlowDiagSolution::removeCrossFlowEnding(const QString& tracerName)
|
||||
{
|
||||
if (tracerName.endsWith(CROSS_FLOW_ENDING))
|
||||
{
|
||||
@@ -63,7 +63,7 @@ QString removeCrossFlowEnding(const QString& tracerName)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString addCrossFlowEnding(const QString& wellName)
|
||||
QString RimFlowDiagSolution::addCrossFlowEnding(const QString& wellName)
|
||||
{
|
||||
return wellName + CROSS_FLOW_ENDING;
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ class RimFlowDiagSolution : public caf::PdmObject
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
public:
|
||||
|
||||
RimFlowDiagSolution();
|
||||
virtual ~RimFlowDiagSolution();
|
||||
|
||||
@@ -59,6 +60,9 @@ public:
|
||||
TracerStatusType tracerStatusInTimeStep(const QString& tracerName, size_t timeStepIndex) const;
|
||||
cvf::Color3f tracerColor(const QString& tracerName) const;
|
||||
|
||||
static bool hasCrossFlowEnding(const QString& tracerName);
|
||||
static QString removeCrossFlowEnding(const QString& tracerName);
|
||||
static QString addCrossFlowEnding(const QString& wellName);
|
||||
private:
|
||||
std::map<std::string, std::vector<int> > allTracerActiveCellIndices(size_t timeStepIndex, bool useInjectors) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user