[Kstars-devel] KDE/kdeedu/kstars/kstars/skycomponents
Jason Harris
kstars at 30doradus.org
Thu Jan 17 19:48:48 CET 2008
SVN commit 762719 by harris:
Potential fix for bug #155675. It helps to have an update()
function if you want Alt/Az coordinates...
Please test and report back whether it works. Thanks for the report!
TODO: Custom catalog objects should be placed in a htmesh index.
James, is this easy to do?
CCBUG: 155675
CCMAIL: kstars-devel at kde.org
M +10 -1 customcatalogcomponent.cpp
M +2 -0 customcatalogcomponent.h
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/customcatalogcomponent.cpp #762718:762719
@@ -128,8 +128,17 @@
}
}
-void CustomCatalogComponent::draw( QPainter& psky )
+void CustomCatalogComponent::update( KStarsData *data, KSNumbers * )
{
+ if ( visible() ) {
+ foreach ( SkyObject *obj, objectList() ) {
+ obj->EquatorialToHorizontal( data->lst(), data->geo()->lat() );
+ }
+ }
+}
+
+void CustomCatalogComponent::draw( QPainter &psky )
+{
if ( ! visible() ) return;
SkyMap *map = SkyMap::Instance();
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/customcatalogcomponent.h #762718:762719
@@ -53,6 +53,8 @@
*/
virtual void draw( QPainter& psky );
+ virtual void update( KStarsData *data, KSNumbers *num );
+
/**
*@short Initialize the Custom catalog
*@p data Pointer to the KStarsData object
More information about the Kstars-devel
mailing list