mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove unused code
This commit is contained in:
parent
245d10c5c1
commit
9a420183e1
@ -57,8 +57,6 @@
|
|||||||
#include "cvfFont.h"
|
#include "cvfFont.h"
|
||||||
#include "cvfModelBasicList.h"
|
#include "cvfModelBasicList.h"
|
||||||
#include "cvfPart.h"
|
#include "cvfPart.h"
|
||||||
#include "cvfScalarMapperDiscreteLinear.h"
|
|
||||||
#include "cvfTransform.h"
|
|
||||||
#include "cvfqtUtils.h"
|
#include "cvfqtUtils.h"
|
||||||
|
|
||||||
|
|
||||||
@ -68,26 +66,6 @@
|
|||||||
RivWellPathPartMgr::RivWellPathPartMgr(RimWellPath* wellPath)
|
RivWellPathPartMgr::RivWellPathPartMgr(RimWellPath* wellPath)
|
||||||
{
|
{
|
||||||
m_rimWellPath = wellPath;
|
m_rimWellPath = wellPath;
|
||||||
|
|
||||||
// Setup a scalar mapper
|
|
||||||
cvf::ref<cvf::ScalarMapperDiscreteLinear> scalarMapper = new cvf::ScalarMapperDiscreteLinear;
|
|
||||||
cvf::Color3ubArray legendColors;
|
|
||||||
legendColors.resize(4);
|
|
||||||
legendColors[0] = cvf::Color3::GRAY;
|
|
||||||
legendColors[1] = cvf::Color3::GREEN;
|
|
||||||
legendColors[2] = cvf::Color3::BLUE;
|
|
||||||
legendColors[3] = cvf::Color3::RED;
|
|
||||||
scalarMapper->setColors(legendColors);
|
|
||||||
scalarMapper->setRange(0.0 , 4.0);
|
|
||||||
scalarMapper->setLevelCount(4, true);
|
|
||||||
|
|
||||||
m_scalarMapper = scalarMapper;
|
|
||||||
|
|
||||||
caf::ScalarMapperEffectGenerator surfEffGen(scalarMapper.p(), caf::PO_1);
|
|
||||||
m_scalarMapperSurfaceEffect = surfEffGen.generateCachedEffect();
|
|
||||||
|
|
||||||
caf::ScalarMapperMeshEffectGenerator meshEffGen(scalarMapper.p());
|
|
||||||
m_scalarMapperMeshEffect = meshEffGen.generateCachedEffect();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -28,10 +28,7 @@ namespace cvf
|
|||||||
{
|
{
|
||||||
class Part;
|
class Part;
|
||||||
class ModelBasicList;
|
class ModelBasicList;
|
||||||
class Transform;
|
|
||||||
class Effect;
|
|
||||||
class DrawableGeo;
|
class DrawableGeo;
|
||||||
class ScalarMapper;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace caf
|
namespace caf
|
||||||
@ -108,9 +105,4 @@ private:
|
|||||||
|
|
||||||
RivPipeBranchData m_pipeBranchData;
|
RivPipeBranchData m_pipeBranchData;
|
||||||
cvf::ref<cvf::Part> m_wellLabelPart;
|
cvf::ref<cvf::Part> m_wellLabelPart;
|
||||||
|
|
||||||
cvf::ref<cvf::ScalarMapper> m_scalarMapper;
|
|
||||||
cvf::ref<cvf::Effect> m_scalarMapperSurfaceEffect;
|
|
||||||
cvf::ref<cvf::Effect> m_scalarMapperMeshEffect;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user