Kaydet (Commit) 5695cdfd authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

change the bar direction for the demo

Change-Id: I24e45810cb154310d8e35982e2ef100cf5746e2b
üst a8b7fcf3
......@@ -103,8 +103,8 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer
// guarantee they are positioned correctly. In fact, they are guaranteed
// to be positioned incorrectly.
const float nBarSizeX = 5.0f;
const float nBarSizeY = 30.0f;
const float nBarSizeX = 30.0f;
const float nBarSizeY = 5.0f;
const float nBarDistanceX = 5.0f;
const float nBarDistanceY = 5.0;
......@@ -153,9 +153,9 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer
opengl3D::Text* p = static_cast<opengl3D::Text*>(&maShapes.back());
glm::vec3 aTopLeft, aTopRight, aBottomRight;
aTopRight.x = -nBarDistanceY;
aTopRight.y = nYPos + 0.25 * nBarSizeY;
aTopRight.y = nYPos + nBarDistanceY;
aTopLeft.x = calculateTextWidth(aSeriesName) * -1.0 - nBarDistanceY;
aTopLeft.y = nYPos + 0.25 * nBarSizeY;
aTopLeft.y = nYPos + nBarDistanceY;
aBottomRight = aTopRight;
aBottomRight.y -= TEXT_HEIGHT;
p->setPosition(aTopLeft, aTopRight, aBottomRight);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment