mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed transparency for ternary well cells
This commit is contained in:
@@ -36,16 +36,13 @@ class RivTernaryScalarMapper : public cvf::Object
|
||||
public:
|
||||
RivTernaryScalarMapper(const cvf::Color3f& undefScalarColor);
|
||||
|
||||
void setOpacityLevel(float opacityLevel);
|
||||
|
||||
void setTernaryRanges(double soilLower, double soilUpper, double sgasLower, double sgasUpper);
|
||||
|
||||
cvf::Vec2f mapToTextureCoord(double soil, double sgas, bool isTransparent) const;
|
||||
bool updateTexture(cvf::TextureImage* image) const;
|
||||
bool updateTexture(cvf::TextureImage* image, float opacityLevel) const;
|
||||
|
||||
private:
|
||||
cvf::Color3f m_undefScalarColor;
|
||||
float m_opacityLevel;
|
||||
cvf::Vec2ui m_textureSize;
|
||||
|
||||
double m_rangeMaxSoil;
|
||||
|
||||
Reference in New Issue
Block a user