Added ternary scalar mapper effect generator

This commit is contained in:
Magne Sjaastad
2014-08-11 10:49:42 +02:00
parent 1161ff7c73
commit 1b69f93a11
5 changed files with 316 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ cvf::Vec2f RivTernaryScalarMapper::mapToTextureCoord(double soil, double sgas, b
/// A *********** B
/// SWAT SOIL
//--------------------------------------------------------------------------------------------------
bool RivTernaryScalarMapper::updateTexture(cvf::TextureImage* image)
bool RivTernaryScalarMapper::updateTexture(cvf::TextureImage* image) const
{
CVF_ASSERT(image);
image->allocate(m_textureSize.x(), m_textureSize.y());