[Kstars-devel] kdeedu/kstars/kstars
Pablo de Vicente
p.devicente at wanadoo.es
Tue Nov 2 07:00:56 CET 2004
CVS commit by pvicente:
Added a fifth shape, solid circle. I think this is best suited for representing
the HPBW of a radiotelescope, since it represents the area to which it is sensitive.
The radiotelescope cannot get any spatial information from inside the HPBW.
CCMAIL: kstars-devel at kde.org
M +7 -0 fov.cpp 1.4
M +1 -1 fovdialog.cpp 1.10
M +5 -0 newfovui.ui 1.9
--- kdeedu/kstars/kstars/fov.cpp #1.3:1.4
@@ -127,4 +127,11 @@ void FOV::draw( QPainter &p, float pixel
break;
}
+ case 4: { // Solid Circle
+ int s = int( pixelsize );
+ p.setBrush( QColor (color()) );
+ p.drawEllipse( (w - s)/2, (h - s)/2, s, s );
+ p.setBrush(Qt::NoBrush);
+ break;
+ }
}
}
--- kdeedu/kstars/kstars/fovdialog.cpp #1.9:1.10
@@ -249,5 +249,5 @@ void NewFOV::slotComputeFOV() {
ui->FOVEdit->setText( QString("%1").arg( 34.34 * 1.2 * ui->WaveLength->value() / ui->RTDiameter->value(), 0, 'f', 2) );
// Beam width for an antenna is usually a circle on the sky.
- ui->ShapeBox->setCurrentItem(1);
+ ui->ShapeBox->setCurrentItem(4);
slotUpdateFOV();
--- kdeedu/kstars/kstars/newfovui.ui #1.8:1.9
@@ -789,4 +789,9 @@
</property>
</item>
+ <item>
+ <property name="text">
+ <string>Solid circle</string>
+ </property>
+ </item>
<property name="name">
<cstring>ShapeBox</cstring>
More information about the Kstars-devel
mailing list