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

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • skycomponents
starblocklist.h
Go to the documentation of this file.
1 /***************************************************************************
2  starblocklist.h - K Desktop Planetarium
3  -------------------
4  begin : Mon 9 Jun 2008
5  copyright : (C) 2008 by Akarsh Simha
6  email : akarshsimha@gmail.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef STARBLOCKLIST_H
19 #define STARBLOCKLIST_H
20 
21 #include "starblock.h"
22 #include "deepstarcomponent.h"
23 #include "typedef.h"
24 
25 class StarBlock;
26 class DeepStarComponent;
27 
36 class StarBlockList {
37  public:
38 
42  explicit StarBlockList( Trixel trixel );
43 
49  StarBlockList( Trixel trixel, DeepStarComponent *parent );
50 
54  ~StarBlockList();
55 
62  bool fillToMag( float maglim );
63 
73  void setStaticBlock( StarBlock *block );
74 
80  int releaseBlock( StarBlock *block );
81 
88  inline StarBlock *block( unsigned int i ) { return ( ( i < nBlocks ) ? blocks[ i ] : NULL ); }
89 
94  inline long getStarCount() { return nStars; }
95 
100  inline int getBlockCount() { return nBlocks; }
101 
106  inline float getFaintMag() { return faintMag; }
107 
112  inline Trixel getTrixel() { return trixel; }
113 
114  private:
115  Trixel trixel;
116  unsigned long nStars;
117  long readOffset;
118  float faintMag;
119  QList < StarBlock *> blocks;
120  unsigned int nBlocks;
121  bool staticStars;
122  DeepStarComponent *parent;
123 
124 };
125 
126 #endif
StarBlockList::StarBlockList
StarBlockList(Trixel trixel)
Constructor.
DeepStarComponent
Stores and manages unnamed stars, most of which are dynamically loaded into memory.
Definition: deepstarcomponent.h:49
StarBlockList::getFaintMag
float getFaintMag()
Returns the magnitude of the faintest star currently stored.
Definition: starblocklist.h:106
StarBlock
Holds a block of stars and various peripheral variables to mark its place in data structures...
Definition: starblock.h:38
typedef.h
StarBlockList::getBlockCount
int getBlockCount()
Returns the total number of blocks in theis StarBlockList.
Definition: starblocklist.h:100
StarBlockList::~StarBlockList
~StarBlockList()
Destructor.
Definition: starblocklist.cpp:37
starblock.h
StarBlockList::getStarCount
long getStarCount()
Returns the total number of stars in this StarBlockList.
Definition: starblocklist.h:94
StarBlockList::getTrixel
Trixel getTrixel()
Returns the trixel that this SBL is meant for.
Definition: starblocklist.h:112
Trixel
unsigned int Trixel
Definition: htmesh/typedef.h:4
StarBlockList::setStaticBlock
void setStaticBlock(StarBlock *block)
Sets the first StarBlock in the list to point to the given StarBlock.
Definition: starblocklist.cpp:151
deepstarcomponent.h
StarBlockList::releaseBlock
int releaseBlock(StarBlock *block)
Drops the StarBlock with the given pointer from the list.
Definition: starblocklist.cpp:43
StarBlockList
Maintains a list of StarBlocks that contain the stars lying in a single trixel.
Definition: starblocklist.h:36
StarBlockList::fillToMag
bool fillToMag(float maglim)
Ensures that the list is loaded with stars to given magnitude limit.
Definition: starblocklist.cpp:66
StarBlockList::block
StarBlock * block(unsigned int i)
Returns the i-th block in this StarBlockList.
Definition: starblocklist.h:88
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 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