Skip to content
Snippets Groups Projects
Commit b286dfd5 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

compatibility fix: make arrows scale like in the old version
parent c18ac567
No related branches found
No related tags found
No related merge requests found
// $Id: Post.cpp,v 1.134 2007-09-18 16:26:02 geuzaine Exp $
// $Id: Post.cpp,v 1.135 2007-09-20 10:03:48 geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
......@@ -981,7 +981,7 @@ void drawVectorArray(PView *p, VertexArray *va)
glColor4ubv((GLubyte *)va->getColorArray(4 * i));
double max;
if(opt->ArrowSizeProportional)
max = p->getData()->getMax(opt->TimeStep);
max = opt->TmpMax;
else
max = sqrt(v[0] * v[0] + v[1] * v[1] + v[2] * v[2]);
if(max){
......@@ -1291,6 +1291,19 @@ class drawPView {
}
}
if(opt->RangeType == PViewOptions::Custom){
opt->TmpMin = opt->CustomMin;
opt->TmpMax = opt->CustomMax;
}
else if(opt->RangeType == PViewOptions::PerTimeStep){
opt->TmpMin = data->getMin(opt->TimeStep);
opt->TmpMax = data->getMax(opt->TimeStep);
}
else{
opt->TmpMin = data->getMin();
opt->TmpMax = data->getMax();
}
// draw all the vertex arrays
drawArrays(p, p->va_points, GL_POINTS, false);
drawArrays(p, p->va_lines, GL_LINES, opt->Light && opt->LightLines);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment