Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure

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)
 Handles loading of the meaty part of star catalogs.

Protected Member Functions

SpecialZoneData< Star > * getZones (void) const
 Get an array of all SpecialZoneData objects in this catalog.
void draw (StelProjectorP projector, class StelRenderer *renderer, int index, bool is_inside, const float *rcmag_table, StelCore *core, unsigned int maxMagStarName, float names_brightness) const
 Draw stars and their names onto the viewport.
void scaleAxis (void)
void searchAround (const StelCore *core, int index, const Vec3d &v, double cosLimFov, QList< StelObjectP > &result)
 Pure virtual method. See subclass implementation.

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:
Star either Star1, Star2 or Star3, depending on the brightness of stars in this catalog.

Definition at line 155 of file ZoneArray.hpp.


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:
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

Member Function Documentation

template<class Star>
void BigStarCatalogExtension::SpecialZoneArray< Star >::draw ( StelProjectorP  projector,
class StelRenderer renderer,
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:
projector Projector to project 3D coords to the viewport.
renderer Renderer to use for drawing.
index zone index to draw
is_inside whether the zone is inside the current viewport
rcmag_table table of magnitudes
core core to use for drawing
maxMagStarName magnitude limit of stars that display labels
names_brightness brightness of labels

Implements BigStarCatalogExtension::ZoneArray.

template<class Star>
SpecialZoneData<Star>* BigStarCatalogExtension::SpecialZoneArray< Star >::getZones ( void   )  const [inline, protected]

Get an array of all SpecialZoneData objects in this catalog.

Definition at line 171 of file ZoneArray.hpp.

template<class Star>
void BigStarCatalogExtension::SpecialZoneArray< Star >::searchAround ( const StelCore core,
int  index,
const Vec3d v,
double  cosLimFov,
QList< StelObjectP > &  result 
) [protected, virtual]

Pure virtual method. See subclass implementation.

Implements BigStarCatalogExtension::ZoneArray.


The documentation for this class was generated from the following file:
Generated on Thu Jan 31 14:05:47 2013 for Stellarium by  doxygen 1.6.3