Stellarium 0.11.2
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure
Public Member Functions | Protected Member Functions | Protected Attributes
BigStarCatalogExtension::SpecialZoneArray< Star > Class Template Reference

Implements all the virtual methods in ZoneArray. More...

#include <ZoneArray.hpp>

List of all members.

Public Member Functions

 SpecialZoneArray (QFile *file, bool byte_swap, bool use_mmap, int level, int mag_min, int mag_range, int mag_steps)

Protected Member Functions

SpecialZoneData< Star > * getZones (void) const
void draw (StelPainter *sPainter, int index, bool is_inside, const float *rcmag_table, StelCore *core, unsigned int maxMagStarName, float names_brightness) const
void scaleAxis (void)
void searchAround (const StelCore *core, int index, const Vec3d &v, double cosLimFov, QList< StelObjectP > &result)

Protected Attributes

Star * stars

Detailed Description

template<class Star>
class BigStarCatalogExtension::SpecialZoneArray< Star >

Implements all the virtual methods in ZoneArray.

Is only separate from ZoneArray because ZoneArray decides on the template parameter.

Template Parameters:
Stareither Star1, Star2 or Star3, depending on the brightness of stars in this catalog.

Constructor & Destructor Documentation

template<class Star>
BigStarCatalogExtension::SpecialZoneArray< Star >::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.

Parameters:
filecatalog to load from
byte_swapwhether to switch endianness of catalog data
use_mmapwhether or not to mmap the star catalog
levellevel in StelGeodesicGrid
mag_minlower bound of magnitudes
mag_rangerange of magnitudes
mag_stepsnumber of steps used to describe values in range

Member Function Documentation

template<class Star>
void BigStarCatalogExtension::SpecialZoneArray< Star >::draw ( StelPainter sPainter,
int  index,
bool  is_inside,
const float *  rcmag_table,
StelCore core,
unsigned int  maxMagStarName,
float  names_brightness 
) const [protected, virtual]

Draw stars and their names onto the viewport.

Parameters:
sPainterthe painter to use
indexzone index to draw
is_insidewhether the zone is inside the current viewport
rcmag_tabletable of magnitudes
corecore to use for drawing
maxMagStarNamemagnitude limit of stars that display labels
names_brightnessbrightness of labels

Implements BigStarCatalogExtension::ZoneArray.