mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3343 Holo Lens : Use default surface color from geo mech
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "cvfBase.h"
|
||||
#include "cvfArray.h"
|
||||
#include "cvfCollection.h"
|
||||
|
||||
|
@@ -20,6 +20,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "RivCellSetEnum.h"
|
||||
#include "RivGeoMechPartMgr.h"
|
||||
|
||||
#include "cvfBase.h"
|
||||
#include "cvfObject.h"
|
||||
@@ -27,7 +28,6 @@
|
||||
#include <cstddef>
|
||||
#include <map>
|
||||
|
||||
class RivGeoMechPartMgr;
|
||||
class RivGeoMechPartMgrGeneratorInterface;
|
||||
|
||||
class RivGeoMechPartMgrCache : public cvf::Object
|
||||
|
@@ -105,7 +105,8 @@ void RivGeoMechVizLogic::updateStaticCellColors(int timeStepIndex)
|
||||
for (size_t pmIdx = 0; pmIdx < visiblePartMgrs.size(); ++pmIdx)
|
||||
{
|
||||
RivGeoMechPartMgr* partMgr = m_partMgrCache->partMgr(visiblePartMgrs[pmIdx]);
|
||||
partMgr->updateCellColor(cvf::Color4f(cvf::Color3f::ORANGE));
|
||||
auto color = staticCellColor();
|
||||
partMgr->updateCellColor(cvf::Color4f(color));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -173,6 +174,14 @@ const cvf::ref<RivGeoMechPartMgrCache> RivGeoMechVizLogic::partMgrCache() const
|
||||
return m_partMgrCache;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Color3f RivGeoMechVizLogic::staticCellColor()
|
||||
{
|
||||
return cvf::Color3f::ORANGE;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@@ -51,6 +51,8 @@ public:
|
||||
void calculateCurrentTotalCellVisibility(cvf::UByteArray* totalVisibility, int timeStepIndex);
|
||||
std::vector<RivGeoMechPartMgrCache::Key> keysToVisiblePartMgrs(int timeStepIndex) const;
|
||||
const cvf::ref<RivGeoMechPartMgrCache> partMgrCache() const;
|
||||
|
||||
static cvf::Color3f staticCellColor();
|
||||
private:
|
||||
|
||||
RivGeoMechPartMgr* getUpdatedPartMgr(RivGeoMechPartMgrCache::Key partMgrKey);
|
||||
|
Reference in New Issue
Block a user