@ -54,44 +54,19 @@ list( APPEND CPP_SOURCES
|
||||
SocketInterface/RiaSocketServer.cpp
|
||||
)
|
||||
|
||||
list( APPEND CPP_SOURCES
|
||||
ProjectDataModel/RimCaseCollection.cpp
|
||||
ProjectDataModel/RimCellFilter.cpp
|
||||
ProjectDataModel/RimCellPropertyFilter.cpp
|
||||
ProjectDataModel/RimCellPropertyFilterCollection.cpp
|
||||
ProjectDataModel/RimCellRangeFilter.cpp
|
||||
ProjectDataModel/RimCellRangeFilterCollection.cpp
|
||||
ProjectDataModel/RimDefines.cpp
|
||||
ProjectDataModel/RimLegendConfig.cpp
|
||||
ProjectDataModel/RimProject.cpp
|
||||
ProjectDataModel/RimCase.cpp
|
||||
ProjectDataModel/RimIdenticalGridCaseGroup.cpp
|
||||
ProjectDataModel/RimInputProperty.cpp
|
||||
ProjectDataModel/RimInputPropertyCollection.cpp
|
||||
ProjectDataModel/RimInputCase.cpp
|
||||
ProjectDataModel/RimResultCase.cpp
|
||||
ProjectDataModel/RimReservoirView.cpp
|
||||
ProjectDataModel/RimResultDefinition.cpp
|
||||
ProjectDataModel/RimResultSlot.cpp
|
||||
ProjectDataModel/RimCellEdgeResultSlot.cpp
|
||||
ProjectDataModel/RimWell.cpp
|
||||
ProjectDataModel/RimWellCollection.cpp
|
||||
ProjectDataModel/RimScriptCollection.cpp
|
||||
ProjectDataModel/RimStatisticsCase.cpp
|
||||
ProjectDataModel/RimStatisticsCaseCollection.cpp
|
||||
ProjectDataModel/RimCalcScript.cpp
|
||||
ProjectDataModel/RimExportInputPropertySettings.cpp
|
||||
ProjectDataModel/RimBinaryExportSettings.cpp
|
||||
ProjectDataModel/Rim3dOverlayInfoConfig.cpp
|
||||
ProjectDataModel/RimUiTreeModelPdm.cpp
|
||||
ProjectDataModel/RimUiTreeView.cpp
|
||||
ProjectDataModel/RimReservoirCellResultsCacher.cpp
|
||||
ProjectDataModel/RimStatisticsCaseEvaluator.cpp
|
||||
|
||||
list( APPEND REFERENCED_CMAKE_FILES
|
||||
ReservoirDataModel/CMakeLists_files.cmake
|
||||
FileInterface/CMakeLists_files.cmake
|
||||
ProjectDataModel/CMakeLists_files.cmake
|
||||
)
|
||||
|
||||
# Populate the filenames into variable lists
|
||||
include ("ReservoirDataModel/CMakeLists_files.cmake")
|
||||
include ("FileInterface/CMakeLists_files.cmake")
|
||||
# Include source file lists from *.cmake files
|
||||
foreach (referencedfile ${REFERENCED_CMAKE_FILES})
|
||||
include (${referencedfile})
|
||||
endforeach (referencedfile)
|
||||
|
||||
|
||||
list( APPEND CPP_SOURCES
|
||||
${CODE_SOURCE_FILES}
|
||||
)
|
||||
@ -114,6 +89,7 @@ set ( QT_MOC_HEADERS
|
||||
|
||||
ProjectDataModel/RimUiTreeModelPdm.h
|
||||
ProjectDataModel/RimUiTreeView.h
|
||||
ProjectDataModel/RimMimeData.h
|
||||
|
||||
UserInterface/RiuMainWindow.h
|
||||
UserInterface/RiuPreferencesDialog.h
|
||||
@ -214,6 +190,7 @@ add_executable(ResInsight
|
||||
${QRC_FILES_CPP}
|
||||
${WIN_RESOURCE}
|
||||
${HEADER_FILES}
|
||||
${REFERENCED_CMAKE_FILES}
|
||||
)
|
||||
|
||||
|
||||
|
80
ApplicationCode/ProjectDataModel/CMakeLists_files.cmake
Normal file
@ -0,0 +1,80 @@
|
||||
|
||||
# Use this workaround until we're on 2.8.3 on all platforms and can use CMAKE_CURRENT_LIST_DIR directly
|
||||
if (${CMAKE_VERSION} VERSION_GREATER "2.8.2")
|
||||
set(CEE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_DIR}/)
|
||||
endif()
|
||||
|
||||
|
||||
list(APPEND CODE_HEADER_FILES
|
||||
${CEE_CURRENT_LIST_DIR}RimCaseCollection.h
|
||||
${CEE_CURRENT_LIST_DIR}RimCellFilter.h
|
||||
${CEE_CURRENT_LIST_DIR}RimCellPropertyFilter.h
|
||||
${CEE_CURRENT_LIST_DIR}RimCellPropertyFilterCollection.h
|
||||
${CEE_CURRENT_LIST_DIR}RimCellRangeFilter.h
|
||||
${CEE_CURRENT_LIST_DIR}RimCellRangeFilterCollection.h
|
||||
${CEE_CURRENT_LIST_DIR}RimDefines.h
|
||||
${CEE_CURRENT_LIST_DIR}RimLegendConfig.h
|
||||
${CEE_CURRENT_LIST_DIR}RimProject.h
|
||||
${CEE_CURRENT_LIST_DIR}RimCase.h
|
||||
${CEE_CURRENT_LIST_DIR}RimIdenticalGridCaseGroup.h
|
||||
${CEE_CURRENT_LIST_DIR}RimInputProperty.h
|
||||
${CEE_CURRENT_LIST_DIR}RimInputPropertyCollection.h
|
||||
${CEE_CURRENT_LIST_DIR}RimInputCase.h
|
||||
${CEE_CURRENT_LIST_DIR}RimResultCase.h
|
||||
${CEE_CURRENT_LIST_DIR}RimReservoirView.h
|
||||
${CEE_CURRENT_LIST_DIR}RimResultDefinition.h
|
||||
${CEE_CURRENT_LIST_DIR}RimResultSlot.h
|
||||
${CEE_CURRENT_LIST_DIR}RimCellEdgeResultSlot.h
|
||||
${CEE_CURRENT_LIST_DIR}RimWell.h
|
||||
${CEE_CURRENT_LIST_DIR}RimWellCollection.h
|
||||
${CEE_CURRENT_LIST_DIR}RimScriptCollection.h
|
||||
${CEE_CURRENT_LIST_DIR}RimStatisticsCase.h
|
||||
${CEE_CURRENT_LIST_DIR}RimStatisticsCaseCollection.h
|
||||
${CEE_CURRENT_LIST_DIR}RimCalcScript.h
|
||||
${CEE_CURRENT_LIST_DIR}RimExportInputPropertySettings.h
|
||||
${CEE_CURRENT_LIST_DIR}RimBinaryExportSettings.h
|
||||
${CEE_CURRENT_LIST_DIR}Rim3dOverlayInfoConfig.h
|
||||
${CEE_CURRENT_LIST_DIR}RimUiTreeModelPdm.h
|
||||
${CEE_CURRENT_LIST_DIR}RimUiTreeView.h
|
||||
${CEE_CURRENT_LIST_DIR}RimReservoirCellResultsCacher.h
|
||||
${CEE_CURRENT_LIST_DIR}RimStatisticsCaseEvaluator.h
|
||||
${CEE_CURRENT_LIST_DIR}RimMimeData.h
|
||||
)
|
||||
|
||||
list(APPEND CODE_SOURCE_FILES
|
||||
${CEE_CURRENT_LIST_DIR}RimCaseCollection.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimCellFilter.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimCellPropertyFilter.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimCellPropertyFilterCollection.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimCellRangeFilter.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimCellRangeFilterCollection.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimDefines.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimLegendConfig.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimProject.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimCase.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimIdenticalGridCaseGroup.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimInputProperty.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimInputPropertyCollection.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimInputCase.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimResultCase.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimReservoirView.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimResultDefinition.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimResultSlot.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimCellEdgeResultSlot.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimWell.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimWellCollection.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimScriptCollection.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimStatisticsCase.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimStatisticsCaseCollection.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimCalcScript.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimExportInputPropertySettings.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimBinaryExportSettings.cpp
|
||||
${CEE_CURRENT_LIST_DIR}Rim3dOverlayInfoConfig.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimUiTreeModelPdm.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimUiTreeView.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimReservoirCellResultsCacher.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimStatisticsCaseEvaluator.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimMimeData.cpp
|
||||
)
|
||||
|
||||
|
@ -84,9 +84,11 @@ void Rim3dOverlayInfoConfig::update3DInfo()
|
||||
QString activeCellCountText;
|
||||
QString fractureActiveCellCount;
|
||||
QString iSize, jSize, kSize;
|
||||
QString zScale;
|
||||
QString propName;
|
||||
QString cellEdgeName;
|
||||
|
||||
|
||||
if (m_reservoirView->eclipseCase() && m_reservoirView->eclipseCase()->reservoirData() && m_reservoirView->eclipseCase()->reservoirData()->mainGrid())
|
||||
{
|
||||
caseName = m_reservoirView->eclipseCase()->caseUserDescription();
|
||||
@ -100,6 +102,9 @@ void Rim3dOverlayInfoConfig::update3DInfo()
|
||||
iSize = QString::number(m_reservoirView->eclipseCase()->reservoirData()->mainGrid()->cellCountI());
|
||||
jSize = QString::number(m_reservoirView->eclipseCase()->reservoirData()->mainGrid()->cellCountJ());
|
||||
kSize = QString::number(m_reservoirView->eclipseCase()->reservoirData()->mainGrid()->cellCountK());
|
||||
|
||||
zScale = QString::number(m_reservoirView->scaleZ());
|
||||
|
||||
propName = m_reservoirView->cellResult()->resultVariable();
|
||||
cellEdgeName = m_reservoirView->cellEdgeResult()->resultVariable();
|
||||
}
|
||||
@ -107,7 +112,7 @@ void Rim3dOverlayInfoConfig::update3DInfo()
|
||||
QString infoText = QString(
|
||||
"<p><b><center>-- %1 --</center></b><p> "
|
||||
"<b>Cell count. Total:</b> %2 <b>Active:</b> %3 <br>"
|
||||
"<b>Main Grid I,J,K:</b> %4, %5, %6 <br>").arg(caseName, totCellCount, activeCellCountText, iSize, jSize, kSize);
|
||||
"<b>Main Grid I,J,K:</b> %4, %5, %6 <b>Z-Scale:</b> %7<br>").arg(caseName, totCellCount, activeCellCountText, iSize, jSize, kSize, zScale);
|
||||
|
||||
if (m_reservoirView->animationMode() && m_reservoirView->cellResult()->hasResult())
|
||||
{
|
||||
|
@ -76,7 +76,7 @@ RimLegendConfig::RimLegendConfig()
|
||||
{
|
||||
CAF_PDM_InitObject("Legend Definition", ":/Legend.png", "", "");
|
||||
CAF_PDM_InitField(&m_numLevels, "NumberOfLevels", 8, "Number of levels", "", "","");
|
||||
CAF_PDM_InitField(&m_precision, "Precision", 6, "Precision", "", "","");
|
||||
CAF_PDM_InitField(&m_precision, "Precision", 2, "Precision", "", "","");
|
||||
CAF_PDM_InitField(&m_colorRangeMode, "ColorRangeMode", ColorRangeEnum(NORMAL) , "Color range", "", "", "");
|
||||
CAF_PDM_InitField(&m_mappingMode, "MappingMode", MappingEnum(LINEAR_CONTINUOUS) , "Mapping", "", "", "");
|
||||
CAF_PDM_InitField(&m_rangeMode, "RangeType", caf::AppEnum<RimLegendConfig::RangeModeType>(AUTOMATIC_ALLTIMESTEPS), "Legend range type", "", "Switches between automatic and user defined range on the legend", "");
|
||||
|
81
ApplicationCode/ProjectDataModel/RimMimeData.cpp
Normal file
@ -0,0 +1,81 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2011-2012 Statoil ASA, Ceetron AS
|
||||
//
|
||||
// ResInsight is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
// FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||
// for more details.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RiaStdInclude.h"
|
||||
|
||||
#include "RimMimeData.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
MimeDataWithIndexes::MimeDataWithIndexes()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
MimeDataWithIndexes::MimeDataWithIndexes(const MimeDataWithIndexes & other) : QMimeData()
|
||||
{
|
||||
setIndexes(other.indexes());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void MimeDataWithIndexes::setIndexes(const QModelIndexList & indexes)
|
||||
{
|
||||
m_indexes = indexes;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const QModelIndexList& MimeDataWithIndexes::indexes() const
|
||||
{
|
||||
return m_indexes;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool MimeDataWithIndexes::hasFormat(const QString &mimetype) const
|
||||
{
|
||||
return (mimetype == formatName());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QStringList MimeDataWithIndexes::formats() const
|
||||
{
|
||||
QStringList supportedFormats = QMimeData::formats();
|
||||
supportedFormats << formatName();
|
||||
|
||||
return supportedFormats;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString MimeDataWithIndexes::formatName()
|
||||
{
|
||||
return "MimeDataWithIndexes";
|
||||
}
|
||||
|
46
ApplicationCode/ProjectDataModel/RimMimeData.h
Normal file
@ -0,0 +1,46 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2011-2012 Statoil ASA, Ceetron AS
|
||||
//
|
||||
// ResInsight is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
// FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||
// for more details.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QMimeData>
|
||||
#include <QModelIndex>
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// MimeData class used to carry a QModelIndexList
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
class MimeDataWithIndexes : public QMimeData
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MimeDataWithIndexes();
|
||||
MimeDataWithIndexes(const MimeDataWithIndexes & other);
|
||||
|
||||
void setIndexes(const QModelIndexList& indexes);
|
||||
const QModelIndexList& indexes() const;
|
||||
virtual bool hasFormat(const QString& mimetype) const;
|
||||
virtual QStringList formats() const;
|
||||
static QString formatName();
|
||||
|
||||
private:
|
||||
QModelIndexList m_indexes;
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(MimeDataWithIndexes)
|
@ -40,6 +40,7 @@
|
||||
#include "RigGridManager.h"
|
||||
#include "RimCase.h"
|
||||
#include "RigCaseData.h"
|
||||
#include "RimMimeData.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
@ -23,8 +23,6 @@
|
||||
#include "cafPdmDocument.h"
|
||||
#include "cafUiTreeModelPdm.h"
|
||||
|
||||
#include <QMimeData>
|
||||
|
||||
class QFileSystemWatcher;
|
||||
|
||||
class RimCellPropertyFilter;
|
||||
@ -35,55 +33,6 @@ class RimInputProperty;
|
||||
class RimStatisticsCase;
|
||||
class RimIdenticalGridCaseGroup;
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// MimeData class used to carry a QModelIndexList
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
class MimeDataWithIndexes : public QMimeData
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MimeDataWithIndexes()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
MimeDataWithIndexes(const MimeDataWithIndexes & other) : QMimeData()
|
||||
{
|
||||
setIndexes(other.indexes());
|
||||
}
|
||||
|
||||
void setIndexes(const QModelIndexList & indexes)
|
||||
{
|
||||
m_indexes = indexes;
|
||||
}
|
||||
|
||||
const QModelIndexList& indexes() const { return m_indexes; }
|
||||
|
||||
virtual bool hasFormat( const QString &mimetype ) const
|
||||
{
|
||||
return (mimetype == formatName());
|
||||
}
|
||||
|
||||
virtual QStringList formats() const
|
||||
{
|
||||
QStringList supportedFormats = QMimeData::formats();
|
||||
supportedFormats << formatName();
|
||||
|
||||
return supportedFormats;
|
||||
}
|
||||
|
||||
static QString formatName()
|
||||
{
|
||||
return "MimeDataWithIndexes";
|
||||
}
|
||||
|
||||
private:
|
||||
QModelIndexList m_indexes;
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(MimeDataWithIndexes)
|
||||
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include "RigCaseCellResultsData.h"
|
||||
#include "RimStatisticsCase.h"
|
||||
#include "RimResultCase.h"
|
||||
#include "RimMimeData.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
@ -1097,7 +1098,7 @@ bool RimUiTreeView::userConfirmedGridCaseGroupChange(const QModelIndexList& item
|
||||
else
|
||||
{
|
||||
questionText = "This operation will invalidate statistics results in grid case groups\n";
|
||||
for (int i = 0; i < typedObjects.size(); i++)
|
||||
for (size_t i = 0; i < typedObjects.size(); i++)
|
||||
{
|
||||
questionText += QString("\"%1\"\n").arg(typedObjects[i]->name());
|
||||
}
|
||||
|
@ -45,9 +45,6 @@ RimWell::RimWell()
|
||||
|
||||
CAF_PDM_InitField(&showWellCells, "ShowWellCells", true, "Add cells to range filter", "", "", "");
|
||||
CAF_PDM_InitField(&showWellCellFence, "ShowWellCellFence", false, " Use well fence", "", "", "");
|
||||
//CAF_PDM_InitField(&wellCellColor, "WellCellColor", cvf::Color3f(cvf::Color3f::BROWN), "Well cell color", "", "", "");
|
||||
|
||||
|
||||
|
||||
name.setUiHidden(true);
|
||||
name.setUiReadOnly(true);
|
||||
|
@ -42,7 +42,7 @@ public:
|
||||
void setReservoirView(RimReservoirView* ownerReservoirView);
|
||||
|
||||
void setWellResults(RigSingleWellResultsData* wellResults) { m_wellResults = wellResults;}
|
||||
RigSingleWellResultsData* wellResults() { return m_wellResults.p();}
|
||||
RigSingleWellResultsData* wellResults() { return m_wellResults.p(); }
|
||||
|
||||
virtual caf::PdmFieldHandle* userDescriptionField();
|
||||
|
||||
@ -54,14 +54,13 @@ public:
|
||||
|
||||
caf::PdmField<bool> showWellCells;
|
||||
caf::PdmField<bool> showWellCellFence;
|
||||
//caf::PdmField<cvf::Color3f> wellCellColor;
|
||||
|
||||
caf::PdmField<bool> showWellPipes;
|
||||
caf::PdmField<cvf::Color3f> wellPipeColor;
|
||||
caf::PdmField<double> pipeRadiusScaleFactor;
|
||||
|
||||
private:
|
||||
cvf::ref<RigSingleWellResultsData> m_wellResults;
|
||||
cvf::ref<RigSingleWellResultsData> m_wellResults;
|
||||
|
||||
RimReservoirView* m_reservoirView;
|
||||
};
|
||||
|
@ -29,6 +29,13 @@
|
||||
<file>Histogram16x16.png</file>
|
||||
<file>Histograms16x16.png</file>
|
||||
<file>ZoomAll16x16.png</file>
|
||||
<file>draw_style_lines_24x24.png</file>
|
||||
<file>draw_style_meshlines_24x24.png</file>
|
||||
<file>draw_style_meshoutlines_24x24.png</file>
|
||||
<file>draw_style_outlines_24x24.png</file>
|
||||
<file>draw_style_surface_24x24.png</file>
|
||||
<file>SnapShot.png</file>
|
||||
<file>SnapShotSave.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/Shader/">
|
||||
<file>fs_CellFace.glsl</file>
|
||||
|
BIN
ApplicationCode/Resources/SnapShot.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
ApplicationCode/Resources/SnapShotSave.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
ApplicationCode/Resources/draw_style_lines_24x24.png
Normal file
After Width: | Height: | Size: 409 B |
BIN
ApplicationCode/Resources/draw_style_meshlines_24x24.png
Normal file
After Width: | Height: | Size: 686 B |
BIN
ApplicationCode/Resources/draw_style_meshoutlines_24x24.png
Normal file
After Width: | Height: | Size: 562 B |
BIN
ApplicationCode/Resources/draw_style_outlines_24x24.png
Normal file
After Width: | Height: | Size: 293 B |
BIN
ApplicationCode/Resources/draw_style_surface_24x24.png
Normal file
After Width: | Height: | Size: 551 B |
@ -57,7 +57,7 @@ RiaSocketServer::RiaSocketServer(QObject* parent)
|
||||
{
|
||||
m_errorMessageDialog->showMessage("Octave communication disabled :\n"
|
||||
"\n"
|
||||
"This instance of ResInsight could not start the Socket Server enabeling octave to get and set data.\n"
|
||||
"This instance of ResInsight could not start the Socket Server enabling octave to get and set data.\n"
|
||||
"This is probably because you already have a running ResInsight process.\n"
|
||||
"Octave can only communicate with one ResInsight process at a time, so the Octave\n"
|
||||
"communication in this ResInsight instance will be disabled.\n"
|
||||
@ -367,7 +367,8 @@ void RiaSocketServer::readCommandFromOctave()
|
||||
return;
|
||||
}
|
||||
|
||||
calculateMatrixModelActiveCellInfo(activeCellInfo[0],
|
||||
calculateMatrixModelActiveCellInfo(reservoir,
|
||||
activeCellInfo[0],
|
||||
activeCellInfo[1],
|
||||
activeCellInfo[2],
|
||||
activeCellInfo[3],
|
||||
@ -618,7 +619,7 @@ void RiaSocketServer::slotReadyRead()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiaSocketServer::calculateMatrixModelActiveCellInfo(std::vector<qint32>& gridNumber, std::vector<qint32>& cellI, std::vector<qint32>& cellJ, std::vector<qint32>& cellK, std::vector<qint32>& parentGridNumber, std::vector<qint32>& hostCellI, std::vector<qint32>& hostCellJ, std::vector<qint32>& hostCellK)
|
||||
void RiaSocketServer::calculateMatrixModelActiveCellInfo(RimCase* reservoirCase, std::vector<qint32>& gridNumber, std::vector<qint32>& cellI, std::vector<qint32>& cellJ, std::vector<qint32>& cellK, std::vector<qint32>& parentGridNumber, std::vector<qint32>& hostCellI, std::vector<qint32>& hostCellJ, std::vector<qint32>& hostCellK)
|
||||
{
|
||||
gridNumber.clear();
|
||||
cellI.clear();
|
||||
@ -629,12 +630,12 @@ void RiaSocketServer::calculateMatrixModelActiveCellInfo(std::vector<qint32>& gr
|
||||
hostCellJ.clear();
|
||||
hostCellK.clear();
|
||||
|
||||
if (!m_currentReservoir || !m_currentReservoir->reservoirData() || !m_currentReservoir->reservoirData()->mainGrid())
|
||||
if (!reservoirCase || !reservoirCase->reservoirData() || !reservoirCase->reservoirData()->mainGrid())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
RigActiveCellInfo* actCellInfo = m_currentReservoir->reservoirData()->activeCellInfo(RifReaderInterface::MATRIX_RESULTS);
|
||||
RigActiveCellInfo* actCellInfo = reservoirCase->reservoirData()->activeCellInfo(RifReaderInterface::MATRIX_RESULTS);
|
||||
size_t numMatrixModelActiveCells = actCellInfo->globalActiveCellCount();
|
||||
|
||||
gridNumber.reserve(numMatrixModelActiveCells);
|
||||
@ -646,7 +647,7 @@ void RiaSocketServer::calculateMatrixModelActiveCellInfo(std::vector<qint32>& gr
|
||||
hostCellJ.reserve(numMatrixModelActiveCells);
|
||||
hostCellK.reserve(numMatrixModelActiveCells);
|
||||
|
||||
const std::vector<RigCell>& globalCells = m_currentReservoir->reservoirData()->mainGrid()->cells();
|
||||
const std::vector<RigCell>& globalCells = reservoirCase->reservoirData()->mainGrid()->cells();
|
||||
|
||||
for (size_t cIdx = 0; cIdx < globalCells.size(); ++cIdx)
|
||||
{
|
||||
|
@ -53,17 +53,18 @@ private:
|
||||
|
||||
|
||||
void handleClientConnection( QTcpSocket* clientToHandle);
|
||||
RimCase* findReservoir(const QString &casename);
|
||||
RimCase* findReservoir(const QString &casename);
|
||||
void terminateCurrentConnection();
|
||||
|
||||
void calculateMatrixModelActiveCellInfo(std::vector<qint32>& gridNumber,
|
||||
std::vector<qint32>& cellI,
|
||||
std::vector<qint32>& cellJ,
|
||||
std::vector<qint32>& cellK,
|
||||
std::vector<qint32>& parentGridNumber,
|
||||
std::vector<qint32>& hostCellI,
|
||||
std::vector<qint32>& hostCellJ,
|
||||
std::vector<qint32>& hostCellK);
|
||||
void calculateMatrixModelActiveCellInfo( RimCase* reservoirCase,
|
||||
std::vector<qint32>& gridNumber,
|
||||
std::vector<qint32>& cellI,
|
||||
std::vector<qint32>& cellJ,
|
||||
std::vector<qint32>& cellK,
|
||||
std::vector<qint32>& parentGridNumber,
|
||||
std::vector<qint32>& hostCellI,
|
||||
std::vector<qint32>& hostCellJ,
|
||||
std::vector<qint32>& hostCellK);
|
||||
|
||||
|
||||
private:
|
||||
@ -79,8 +80,9 @@ private:
|
||||
quint64 m_timeStepCountToRead;
|
||||
quint64 m_bytesPerTimeStepToRead;
|
||||
size_t m_currentTimeStepToRead;
|
||||
std::vector< std::vector<double> >* m_scalarResultsToAdd;
|
||||
RimCase* m_currentReservoir;
|
||||
std::vector< std::vector<double> >*
|
||||
m_scalarResultsToAdd;
|
||||
RimCase* m_currentReservoir;
|
||||
size_t m_currentScalarIndex;
|
||||
QString m_currentPropertyName;
|
||||
bool m_invalidActiveCellCountDetected;
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
set(CMAKE_MAJOR_VERSION 0)
|
||||
set(CMAKE_MINOR_VERSION 9)
|
||||
set(CMAKE_PATCH_VERSION 6)
|
||||
set(CMAKE_PATCH_VERSION 8)
|
||||
|
||||
set(PRODUCTVER ${CMAKE_MAJOR_VERSION},${CMAKE_MINOR_VERSION},0,${CMAKE_PATCH_VERSION})
|
||||
set(STRPRODUCTVER ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION})
|
||||
|