mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added RimView, and sorted the libs in folders
This commit is contained in:
@@ -55,6 +55,8 @@ ${CEE_CURRENT_LIST_DIR}RimGeoMechModels.h
|
||||
${CEE_CURRENT_LIST_DIR}RimGeoMechCase.h
|
||||
${CEE_CURRENT_LIST_DIR}RimGeoMechView.h
|
||||
${CEE_CURRENT_LIST_DIR}RimGeoMechResultSlot.h
|
||||
${CEE_CURRENT_LIST_DIR}RimView.h
|
||||
|
||||
)
|
||||
|
||||
set (SOURCE_GROUP_SOURCE_FILES
|
||||
@@ -108,6 +110,7 @@ ${CEE_CURRENT_LIST_DIR}RimGeoMechModels.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimGeoMechCase.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimGeoMechView.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimGeoMechResultSlot.cpp
|
||||
${CEE_CURRENT_LIST_DIR}RimView.cpp
|
||||
)
|
||||
|
||||
list(APPEND CODE_HEADER_FILES
|
||||
@@ -118,4 +121,4 @@ list(APPEND CODE_SOURCE_FILES
|
||||
${SOURCE_GROUP_SOURCE_FILES}
|
||||
)
|
||||
|
||||
source_group( "ProjectDataModel" FILES ${SOURCE_GROUP_HEADER_FILES} ${SOURCE_GROUP_SOURCE_FILES} )
|
||||
source_group( "ProjectDataModel" FILES ${SOURCE_GROUP_HEADER_FILES} ${SOURCE_GROUP_SOURCE_FILES} ${CEE_CURRENT_LIST_DIR}CMakeLists_files.cmake )
|
||||
|
||||
@@ -253,6 +253,8 @@ void RimGeoMechView::createDisplayModelAndRedraw()
|
||||
m_geoMechVizModel->setCellVisibility(femPartIdx, elmVisibility.p());
|
||||
}
|
||||
|
||||
m_geoMechVizModel->updateCellColor(cvf::Color4f(cvf::Color3f::ORANGE));
|
||||
|
||||
m_geoMechVizModel->appendGridPartsToModel(cvfModel.p());
|
||||
|
||||
cvf::ref<cvf::Scene> scene = new cvf::Scene;
|
||||
|
||||
@@ -62,26 +62,6 @@
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimView, "GenericView");
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimView::RimView(void)
|
||||
{
|
||||
CAF_PDM_InitObject("Generic View", ":/ReservoirView.png", "", "");
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimView::~RimView(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
namespace caf {
|
||||
|
||||
template<>
|
||||
|
||||
@@ -69,20 +69,6 @@ enum PartRenderMaskEnum
|
||||
faultBit = 0x00000004,
|
||||
meshFaultBit = 0x00000008,
|
||||
};
|
||||
//==================================================================================================
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class RimView : public caf::PdmObject
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
public:
|
||||
RimView(void);
|
||||
virtual ~RimView(void);
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
|
||||
24
ApplicationCode/ProjectDataModel/RimView.cpp
Normal file
24
ApplicationCode/ProjectDataModel/RimView.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "RimView.h"
|
||||
#include "cafPdmObjectFactory.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimView, "GenericView");
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimView::RimView(void)
|
||||
{
|
||||
CAF_PDM_InitObject("Generic View", ":/ReservoirView.png", "", "");
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimView::~RimView(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
39
ApplicationCode/ProjectDataModel/RimView.h
Normal file
39
ApplicationCode/ProjectDataModel/RimView.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2015- Statoil ASA
|
||||
// Copyright (C) 2015- Ceetron Solutions 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 "cafPdmObject.h"
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class RimView : public caf::PdmObject
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
public:
|
||||
RimView(void);
|
||||
virtual ~RimView(void);
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user