Quasar.cpp   Quasar.cpp 
skipping to change at line 180 skipping to change at line 180
void Quasar::draw(StelCore* core, StelPainter& painter) void Quasar::draw(StelCore* core, StelPainter& painter)
{ {
StelSkyDrawer* sd = core->getSkyDrawer(); StelSkyDrawer* sd = core->getSkyDrawer();
Vec3f color = sd->indexToColor(BvToColorIndex(bV))*0.75f; Vec3f color = sd->indexToColor(BvToColorIndex(bV))*0.75f;
float rcMag[2], size, shift; float rcMag[2], size, shift;
double mag; double mag;
StelUtils::spheToRect(qRA, qDE, XYZ); StelUtils::spheToRect(qRA, qDE, XYZ);
mag = getVMagnitude(core, true); mag = getVMagnitude(core, true);
sd->preDrawPointSource(&painter);
if (mag <= sd->getLimitMagnitude()) if (mag <= sd->getLimitMagnitude())
{ {
sd->computeRCMag(mag, rcMag); sd->computeRCMag(mag, rcMag);
sd->drawPointSource(&painter, Vec3f(XYZ[0], XYZ[1], XYZ[2]), //sd->drawPointSource(&painter, Vec3f(XYZ[0], XYZ[1], XYZ[2]
rcMag, sd->indexToColor(BvToColorIndex(bV)), false); ), rcMag, sd->indexToColor(BvToColorIndex(bV)), false);
sd->drawPointSource(&painter, XYZ, rcMag, sd->indexToColor(B
vToColorIndex(bV)), false);
painter.setColor(color[0], color[1], color[2], 1); painter.setColor(color[0], color[1], color[2], 1);
size = getAngularSize(NULL)*M_PI/180.*painter.getProjector() ->getPixelPerRadAtCenter(); size = getAngularSize(NULL)*M_PI/180.*painter.getProjector() ->getPixelPerRadAtCenter();
shift = 6.f + size/1.8f; shift = 6.f + size/1.8f;
if (labelsFader.getInterstate()<=0.f) if (labelsFader.getInterstate()<=0.f)
{ {
painter.drawText(XYZ, designation, 0, shift, shift, false); painter.drawText(XYZ, designation, 0, shift, shift, false);
} }
} }
sd->postDrawPointSource(&painter);
} }
unsigned char Quasar::BvToColorIndex(float b_v) unsigned char Quasar::BvToColorIndex(float b_v)
{ {
double dBV = b_v; double dBV = b_v;
dBV *= 1000.0; dBV *= 1000.0;
if (dBV < -500) if (dBV < -500)
{ {
dBV = -500; dBV = -500;
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 7 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/