[Kstars-devel] KDE/kdeedu/kstars/kstars/skyobjects
Akarsh Simha
akarshsimha at gmail.com
Fri Dec 11 01:32:12 CET 2009
SVN commit 1061204 by asimha:
Move circumpolarity check from SkyObject to SkyPoint.
CCMAIL: kstars-devel at kde.org
M +0 -4 skyobject.cpp
M +0 -7 skyobject.h
M +7 -0 skypoint.cpp
M +4 -6 skypoint.h
--- trunk/KDE/kdeedu/kstars/kstars/skyobjects/skyobject.cpp #1061203:1061204
@@ -304,10 +304,6 @@
return sp;
}
-bool SkyObject::checkCircumpolar( const dms *gLat ) {
- return fabs(dec()->Degrees()) > (90 - fabs(gLat->Degrees()));
-}
-
QString SkyObject::typeName( void ) const {
if ( Type==0 ) return i18n( "Star" );
else if ( Type==1 ) return i18n( "Catalog Star" );
--- trunk/KDE/kdeedu/kstars/kstars/skyobjects/skyobject.h #1061203:1061204
@@ -279,13 +279,6 @@
dms transitAltitude( const KStarsDateTime &dt, const GeoLocation *geo );
/**
- *Check whether a source is circumpolar or not. True = cirmcumpolar
- *False = Not circumpolar
- *@return true if circumpolar
- */
- bool checkCircumpolar( const dms *gLng );
-
- /**
*The coordinates for the object on date dt are computed and returned,
*but the object's internal coordinates are not permanently modified.
*@return the coordinates of the selected object for the time given by jd
--- trunk/KDE/kdeedu/kstars/kstars/skyobjects/skypoint.cpp #1061203:1061204
@@ -716,3 +716,10 @@
{
return vgeo - vRSite(vsite);
}
+
+bool SkyPoint::checkCircumpolar( const dms *gLat ) {
+ return fabs(dec()->Degrees()) > (90 - fabs(gLat->Degrees()));
+}
+
+
+
--- trunk/KDE/kdeedu/kstars/kstars/skyobjects/skypoint.h #1061203:1061204
@@ -499,13 +499,11 @@
SkyPoint moveAway( SkyPoint &from, double dist );
- ////
- //// 5. Calculating Rise/Set/Transit data.
- //// =====================================
+ /**
+ * @short Check if this point is circumpolar at the given geographic latitude
+ */
+ bool checkCircumpolar( const dms *gLat );
- //TODO: move rise/set/transit stuff from SkyObject
-
-
protected:
/**Precess this SkyPoint's catalog coordinates to the epoch described by the
*given KSNumbers object.
More information about the Kstars-devel
mailing list