Ternary legend : Added title

This commit is contained in:
Magne Sjaastad
2014-08-01 08:46:46 +02:00
parent 09f7868eb5
commit 8b04e2a2e8
5 changed files with 44 additions and 11 deletions

View File

@@ -48,12 +48,13 @@ public:
virtual void renderSoftware(cvf::OpenGLContext* oglContext, const cvf::Vec2i& position, const cvf::Vec2ui& size);
void setSize(const cvf::Vec2ui& size);
void setAxisLabelsColor(const cvf::Color3f& color);
void setTitle(const cvf::String& title);
private:
void render(cvf::OpenGLContext* oglContext, const cvf::Vec2i& position, const cvf::Vec2ui& size, bool software);
void renderAxisImmediateMode(cvf::OpenGLContext* oglContext);
void renderAxisImmediateMode(float upperY, cvf::OpenGLContext* oglContext);
private:
cvf::Color3f m_textColor; // Text color
@@ -64,5 +65,7 @@ private:
cvf::String m_swatRange;
cvf::Vec2ui m_size; // Pixel size of draw area
std::vector<cvf::String> m_titleStrings;
};