Stellarium
0.22.2
|
#include <ZoneArray.hpp>
Public Member Functions | |
SpecialZoneArray (QFile *file, bool byte_swap, bool use_mmap, int level, int mag_min, int mag_range, int mag_steps) | |
Handles loading of the meaty part of star catalogs. More... | |
Protected Member Functions | |
SpecialZoneData< Star > * | getZones (void) const |
Get an array of all SpecialZoneData objects in this catalog. | |
virtual void | draw (StelPainter *sPainter, int index, bool isInsideViewport, const RCMag *rcmag_table, int limitMagIndex, StelCore *core, int maxMagStarName, float names_brightness, const QVector< SphericalCap > &boundingCaps, const bool withAberration, const Vec3f vel) const Q_DECL_OVERRIDE |
Draw stars and their names onto the viewport. More... | |
virtual void | scaleAxis () Q_DECL_OVERRIDE |
virtual void | searchAround (const StelCore *core, int index, const Vec3d &v, double cosLimFov, QList< StelObjectP > &result) Q_DECL_OVERRIDE |
Protected Attributes | |
Star * | stars |
Implements all the virtual methods in ZoneArray. Is only separate from ZoneArray because ZoneArray decides on the template parameter.
SpecialZoneArray::SpecialZoneArray | ( | QFile * | file, |
bool | byte_swap, | ||
bool | use_mmap, | ||
int | level, | ||
int | mag_min, | ||
int | mag_range, | ||
int | mag_steps | ||
) |
file | catalog to load from |
byte_swap | whether to switch endianness of catalog data |
use_mmap | whether or not to mmap the star catalog |
level | level in StelGeodesicGrid |
mag_min | lower bound of magnitudes |
mag_range | range of magnitudes |
mag_steps | number of steps used to describe values in range |
|
protectedvirtual |
sPainter | the painter to use |
index | zone index to draw |
isInsideViewport | whether the zone is inside the current viewport. If false, we need to test more to skip stars. |
rcmag_table | table of magnitudes |
limitMagIndex | index from rcmag_table at which stars are not visible anymore |
core | core to use for drawing |
maxMagStarName | magnitude limit of stars that display labels |
names_brightness | brightness of labels |
boundingCaps | |
withAberration | true if aberration to be applied |
vel | velocity vector of observer planet |