• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

Public Member Functions | List of all members
StarBlockList Class Reference

#include <starblocklist.h>

Public Member Functions

 StarBlockList (Trixel trixel)
 
 StarBlockList (Trixel trixel, DeepStarComponent *parent)
 
 ~StarBlockList ()
 
StarBlock * block (unsigned int i)
 
bool fillToMag (float maglim)
 
int getBlockCount ()
 
float getFaintMag ()
 
long getStarCount ()
 
Trixel getTrixel ()
 
int releaseBlock (StarBlock *block)
 
void setStaticBlock (StarBlock *block)
 

Detailed Description

Maintains a list of StarBlocks that contain the stars lying in a single trixel.

Takes care of the dynamic loading of stars

Author
Akarsh Simha
Version
0.1

Definition at line 36 of file starblocklist.h.

Constructor & Destructor Documentation

StarBlockList::StarBlockList ( Trixel  trixel)
explicit

Constructor.

StarBlockList::StarBlockList ( Trixel  trixel,
DeepStarComponent *  parent 
)

Constructor for deep star catalogs.

Parameters
trixelThe trixel ID
parentPointer to the parent DeepStarComponent

Definition at line 27 of file starblocklist.cpp.

StarBlockList::~StarBlockList ( )

Destructor.

Definition at line 37 of file starblocklist.cpp.

Member Function Documentation

StarBlock* StarBlockList::block ( unsigned int  i)
inline

Returns the i-th block in this StarBlockList.

Parameters
Indexof the required block
Returns
The StarBlock requested for, NULL if index out of bounds

Definition at line 88 of file starblocklist.h.

bool StarBlockList::fillToMag ( float  maglim)

Ensures that the list is loaded with stars to given magnitude limit.

Parameters
Magnitudelimit to load stars upto
Returns
true on success, false on failure (data file not found, bad seek etc)

Definition at line 66 of file starblocklist.cpp.

int StarBlockList::getBlockCount ( )
inline

Returns the total number of blocks in theis StarBlockList.

Returns
Number of blocks in this StarBlockList

Definition at line 100 of file starblocklist.h.

float StarBlockList::getFaintMag ( )
inline

Returns the magnitude of the faintest star currently stored.

Returns
Magnitude of faintest star stored in this StarBlockList

Definition at line 106 of file starblocklist.h.

long StarBlockList::getStarCount ( )
inline

Returns the total number of stars in this StarBlockList.

Returns
Total number of stars in this StarBlockList

Definition at line 94 of file starblocklist.h.

Trixel StarBlockList::getTrixel ( )
inline

Returns the trixel that this SBL is meant for.

Returns
The value of trixel

Definition at line 112 of file starblocklist.h.

int StarBlockList::releaseBlock ( StarBlock *  block)

Drops the StarBlock with the given pointer from the list.

Parameters
Pointerto the StarBlock to remove
Returns
Number of entries removed from the QList

Definition at line 43 of file starblocklist.cpp.

void StarBlockList::setStaticBlock ( StarBlock *  block)

Sets the first StarBlock in the list to point to the given StarBlock.

This function must ideally be used only once. Also, it does not make a copy of the StarBlock supplied, but uses the pointer directly. StarBlockList will take care of deleting the StarBlock when it is destroyed

Parameters
Pointerto the StarBlock

Definition at line 151 of file starblocklist.cpp.


The documentation for this class was generated from the following files:
  • starblocklist.h
  • starblocklist.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal