Kstars
10#include "skyobjects/starobject.h"
11#include "starcomponent.h"
12#include "skyobjects/stardata.h"
13#include "skyobjects/deepstardata.h"
16#include "skymaplite.h"
17#include "kstarslite/skyitems/skynodes/pointsourcenode.h"
19StarNode::StarNode() : starNode(0)
27 SkyMapLite::Instance()->deleteSkyNode(starNode);
28 qDebug() << Q_FUNC_INFO <<
"REAL NODE DESTRUCTOR";
34 : faintMag(-5), brightMag(35), parent(nullptr), prev(nullptr), next(nullptr), drawID(0), nStars(0),
36 stars(nstars, StarNode())
46 parent->releaseBlock(
this);
59 StarNode &node = stars[nStars++];
74 StarNode &node = stars[nStars++];
75 StarObject &
star = node.star;
78 if (
star.mag() > faintMag)
79 faintMag =
star.mag();
80 if (
star.mag() < brightMag)
81 brightMag =
star.mag();
92 if (
star.mag() > faintMag)
93 faintMag =
star.mag();
94 if (
star.mag() < brightMag)
95 brightMag =
star.mag();
StarBlock(int nstars=100)
Constructor.
StarBlockEntry * addStar(const StarData &data)
Initialize another star with data.
void reset()
Reset this StarBlock's data, for reuse of the StarBlock.
bool isFull() const
Returns true if the StarBlock is full.
StarBlockEntry * star(int i)
Return the i-th star in this StarBlock.
This is a subclass of SkyObject.
void init(const StarData *stardata)
Initializes a StarObject to given data.
A 16-byte structure that holds star data for really faint stars.
A 32-byte Structure that holds star data.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:53:02 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.