mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use the new RigCellSetEnum instead of unsigned char
Preparing for property filter
This commit is contained in:
parent
0377461da0
commit
74efc8da1a
@ -61,7 +61,7 @@ RivGeoMechPartMgr* RivGeoMechPartMgrCache::partMgr(const Key& key)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivGeoMechPartMgrCache::Key::set(unsigned short aGeometryType, int aFrameIndex)
|
||||
void RivGeoMechPartMgrCache::Key::set(RivCellSetEnum aGeometryType, int aFrameIndex)
|
||||
{
|
||||
m_frameIndex = aFrameIndex;
|
||||
m_geometryType = aGeometryType;
|
||||
@ -82,7 +82,7 @@ bool RivGeoMechPartMgrCache::Key::operator<(const Key& other) const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RivGeoMechPartMgrCache::Key::Key(unsigned short aGeometryType, int aFrameIndex)
|
||||
RivGeoMechPartMgrCache::Key::Key(RivCellSetEnum aGeometryType, int aFrameIndex)
|
||||
: m_geometryType(aGeometryType), m_frameIndex(aFrameIndex)
|
||||
{
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include <cstddef>
|
||||
#include "cvfObject.h"
|
||||
#include <map>
|
||||
#include "RivCellSetEnum.h"
|
||||
|
||||
class RivGeoMechPartMgr;
|
||||
|
||||
@ -16,9 +17,9 @@ public:
|
||||
public:
|
||||
Key() : m_geometryType(-1), m_frameIndex(-1) {}
|
||||
|
||||
Key( unsigned short aGeometryType, int aFrameIndex);
|
||||
Key(RivCellSetEnum aGeometryType, int aFrameIndex);
|
||||
|
||||
void set(unsigned short aGeometryType, int aFrameIndex);
|
||||
void set(RivCellSetEnum aGeometryType, int aFrameIndex);
|
||||
|
||||
int frameIndex() const { return m_frameIndex;}
|
||||
unsigned short geometryType() const { return m_geometryType; }
|
||||
|
@ -125,7 +125,7 @@ void RivGeoMechVizLogic::updateStaticCellColors()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivGeoMechVizLogic::scheduleGeometryRegen(unsigned short geometryType)
|
||||
void RivGeoMechVizLogic::scheduleGeometryRegen(RivCellSetEnum geometryType)
|
||||
{
|
||||
switch (geometryType)
|
||||
{
|
||||
|
@ -23,7 +23,8 @@
|
||||
#include "cvfObject.h"
|
||||
#include "cvfColor4.h"
|
||||
#include "RivGeoMechPartMgrCache.h"
|
||||
|
||||
#include "RivCellSetEnum.h"
|
||||
|
||||
class RimGeoMechView;
|
||||
class RimGeoMechResultSlot;
|
||||
|
||||
@ -43,7 +44,7 @@ public:
|
||||
void appendPartsToModel(int timeStepIndex, cvf::ModelBasicList* model);
|
||||
void updateCellResultColor(size_t timeStepIndex, RimGeoMechResultSlot* cellResultSlot);
|
||||
void updateStaticCellColors();
|
||||
void scheduleGeometryRegen(unsigned short geometryType);
|
||||
void scheduleGeometryRegen(RivCellSetEnum geometryType);
|
||||
private:
|
||||
|
||||
RivGeoMechPartMgrCache::Key currentPartMgrKey();
|
||||
|
@ -835,7 +835,7 @@ RigActiveCellInfo* RimEclipseView::currentActiveCellInfo()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseView::scheduleGeometryRegen(unsigned short geometryType)
|
||||
void RimEclipseView::scheduleGeometryRegen(RivCellSetEnum geometryType)
|
||||
{
|
||||
m_reservoirGridPartManager->scheduleGeometryRegen(static_cast<RivCellSetEnum>(geometryType));
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ public:
|
||||
virtual void loadDataAndUpdate();
|
||||
bool isTimeStepDependentDataVisible() const;
|
||||
|
||||
virtual void scheduleGeometryRegen(unsigned short geometryType);
|
||||
virtual void scheduleGeometryRegen(RivCellSetEnum geometryType);
|
||||
void scheduleReservoirGridGeometryRegen();
|
||||
void schedulePipeGeometryRegen();
|
||||
void updateDisplayModelForWellResults();
|
||||
|
@ -507,7 +507,7 @@ RimCase* RimGeoMechView::ownerCase()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimGeoMechView::scheduleGeometryRegen(unsigned short geometryType)
|
||||
void RimGeoMechView::scheduleGeometryRegen(RivCellSetEnum geometryType)
|
||||
{
|
||||
m_vizLogic->scheduleGeometryRegen(geometryType);
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ public:
|
||||
virtual cvf::Transform* scaleTransform();
|
||||
|
||||
private:
|
||||
virtual void scheduleGeometryRegen(unsigned short geometryType);
|
||||
virtual void scheduleGeometryRegen(RivCellSetEnum geometryType);
|
||||
virtual void createDisplayModel();
|
||||
virtual void updateDisplayModelVisibility();
|
||||
virtual void updateScaleTransform();
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "cafPdmFieldCvfColor.h"
|
||||
#include "cafPdmFieldCvfMat4d.h"
|
||||
#include "cafAppEnum.h"
|
||||
#include "RivCellSetEnum.h"
|
||||
|
||||
class RiuViewer;
|
||||
class Rim3dOverlayInfoConfig;
|
||||
@ -100,7 +101,7 @@ public:
|
||||
void updateCurrentTimeStepAndRedraw();
|
||||
void endAnimation();
|
||||
|
||||
virtual void scheduleGeometryRegen(unsigned short geometryType) = 0;
|
||||
virtual void scheduleGeometryRegen(RivCellSetEnum geometryType) = 0;
|
||||
void scheduleCreateDisplayModelAndRedraw();
|
||||
void createDisplayModelAndRedraw();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user