Документ взят из кэша поисковой машины. Адрес оригинального документа : http://astro.uni-altai.ru/~aw/stellarium/api/classBigStarCatalogExtension_1_1SpecialZoneArray.html
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 08:10:52 2014
Кодировка:

Поисковые слова: trees
Stellarium: BigStarCatalogExtension::SpecialZoneArray< Star > Class Template Reference
Stellarium 0.12.3
List of all members | 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>

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...
 
- Public Member Functions inherited from BigStarCatalogExtension::ZoneArray
unsigned int getNrOfStars () const
 Get the total number of stars in this catalog. More...
 
virtual void updateHipIndex (HipIndexStruct hipIndex[]) const
 Dummy method that does nothing. See subclass implementation. More...
 
bool isInitialized (void) const
 Get whether or not the catalog was successfully loaded. More...
 
void initTriangle (int index, const Vec3f &c0, const Vec3f &c1, const Vec3f &c2)
 Initialize the ZoneData struct at the given index. More...
 

Protected Member Functions

SpecialZoneData< Star > * getZones (void) const
 Get an array of all SpecialZoneData objects in this catalog. More...
 
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. More...
 
void scaleAxis (void)
 
void searchAround (const StelCore *core, int index, const Vec3d &v, double cosLimFov, QList< StelObjectP > &result)
 Pure virtual method. See subclass implementation. More...
 
- Protected Member Functions inherited from BigStarCatalogExtension::ZoneArray
 ZoneArray (const QString &fname, QFile *file, int level, int mag_min, int mag_range, int mag_steps)
 Protected constructor. Initializes fields and does not load anything. More...
 

Protected Attributes

Star * stars
 
- Protected Attributes inherited from BigStarCatalogExtension::ZoneArray
unsigned int nr_of_zones
 
unsigned int nr_of_stars
 
ZoneDatazones
 
QFile * file
 

Additional Inherited Members

- Static Public Member Functions inherited from BigStarCatalogExtension::ZoneArray
static ZoneArraycreate (const QString &extended_file_name, bool use_mmap)
 Named public constructor for ZoneArray. More...
 
- Public Attributes inherited from BigStarCatalogExtension::ZoneArray
const QString fname
 File path of the catalog. More...
 
const int level
 Level in StelGeodesicGrid. More...
 
const int mag_min
 Lower bound of magnitudes in this catalog. Units: millimag. May be negative for brightest stars. More...
 
const int mag_range
 Range of magnitudes in this catalog. Units: millimags. More...
 
const int mag_steps
 Number of steps used to describe values in mag_range. Always positive. Individual stars have their mag entries from 0..mag_steps. More...
 
float star_position_scale
 
- Static Protected Member Functions inherited from BigStarCatalogExtension::ZoneArray
static bool readFile (QFile &file, void *data, qint64 size)
 Load a catalog and display its progress on the splash screen. More...
 

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.

Definition at line 39 of file Star.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
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 ( StelProjectorP  projector,
class StelRenderer renderer,
int  index,
bool  is_inside,
const float *  rcmag_table,
StelCore core,
unsigned int  maxMagStarName,
float  names_brightness 
) const
protectedvirtual

Draw stars and their names onto the viewport.

Parameters
projectorProjector to project 3D coords to the viewport.
rendererRenderer to use for drawing.
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.

template<class Star>
SpecialZoneData<Star>* BigStarCatalogExtension::SpecialZoneArray< Star >::getZones ( void  ) const
inlineprotected

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 
)
protectedvirtual

Pure virtual method. See subclass implementation.

Implements BigStarCatalogExtension::ZoneArray.


The documentation for this class was generated from the following files: