Use texture based ternary visualization

This commit is contained in:
Magne Sjaastad
2014-08-11 10:50:31 +02:00
parent 1b69f93a11
commit 24a464ecf9
5 changed files with 66 additions and 33 deletions

View File

@@ -18,13 +18,14 @@
#pragma once
#include "RigTernaryResultAccessor2d.h"
#include "RivTernaryResultToTextureMapper.h"
#include "cvfBase.h"
#include "cvfObject.h"
#include "cvfArray.h"
class RimResultSlot;
class RigTernaryResultAccessor;
class RivTernaryResultToTextureMapper;
class RimTernaryLegendConfig;
namespace cvf
@@ -33,6 +34,9 @@ namespace cvf
}
//==================================================================================================
///
//==================================================================================================
class RivTernaryTextureCoordsCreator
{
public:
@@ -42,10 +46,7 @@ public:
size_t gridIndex,
const cvf::StructGridQuadToCellFaceMapper* quadMapper);
void createTextureCoords(cvf::Vec2fArray* quadTextureCoords)
{
createTextureCoords(quadTextureCoords, m_quadMapper.p(), m_resultAccessor.p(), m_texMapper.p());
}
void createTextureCoords(cvf::Vec2fArray* quadTextureCoords);
private:
static void createTextureCoords(cvf::Vec2fArray* quadTextureCoords,
@@ -53,6 +54,7 @@ private:
const RigTernaryResultAccessor* resultAccessor,
const RivTernaryResultToTextureMapper* texMapper);
private:
cvf::cref<cvf::StructGridQuadToCellFaceMapper> m_quadMapper;
cvf::ref<RigTernaryResultAccessor> m_resultAccessor;
cvf::ref<RivTernaryResultToTextureMapper> m_texMapper;