void VARDrawer::DrawLabel()
{
setting->ValidateLabels();
glLineWidth(1.2f);
glColor4f(1.0f,0.0f,0.0f,1.0f);:confused:Do not work here
map<int,TextureSetting*>::iterator mi;
for (mi = setting->varMap.begin();
mi != setting->varMap.end() ; mi++)
{
TextureSetting* texSetting = mi->second;
if (texSetting->isDrawLabel)
{
QString label
(texSetting
->srcDim
->GetDimensionName
().
c_str());
Vec3 pos = Vec3(texSetting->blockPos.X,
texSetting->blockPos.Y+texSetting->VisSize.height+0.02f,
0.0f);
renderText(pos.X, pos.Y,0.0f,
texSetting->srcDim->GetDimensionName().c_str());
}
}
}
void PareCoordDrawer::DrawAxisLabel(void)
{
setting->ValidateAxisLabel(dataSet);
glLineWidth(1.2f);
qglColor(Qt::red);
QVector<float>::iterator qli;
QList<string>::iterator qsli;
for (qli = setting->axisPos.begin(), qsli = setting->labelList.begin();
qli != setting->axisPos.end(); qli++, qsli++)
{
float pos = *qli;
string dimName = *qsli;
renderText(pos, 1.05f, 0.0f, dimName.c_str());:o Every thing just fine here
}
}
void VARDrawer::DrawLabel()
{
setting->ValidateLabels();
glLineWidth(1.2f);
glColor4f(1.0f,0.0f,0.0f,1.0f);:confused:Do not work here
map<int,TextureSetting*>::iterator mi;
for (mi = setting->varMap.begin();
mi != setting->varMap.end() ; mi++)
{
TextureSetting* texSetting = mi->second;
if (texSetting->isDrawLabel)
{
QString label(texSetting->srcDim->GetDimensionName().c_str());
Vec3 pos = Vec3(texSetting->blockPos.X,
texSetting->blockPos.Y+texSetting->VisSize.height+0.02f,
0.0f);
renderText(pos.X, pos.Y,0.0f,
texSetting->srcDim->GetDimensionName().c_str());
}
}
}
void PareCoordDrawer::DrawAxisLabel(void)
{
setting->ValidateAxisLabel(dataSet);
glLineWidth(1.2f);
qglColor(Qt::red);
QVector<float>::iterator qli;
QList<string>::iterator qsli;
for (qli = setting->axisPos.begin(), qsli = setting->labelList.begin();
qli != setting->axisPos.end(); qli++, qsli++)
{
float pos = *qli;
string dimName = *qsli;
renderText(pos, 1.05f, 0.0f, dimName.c_str());:o Every thing just fine here
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks