Kstars
starblocklist.cpp
31 qDebug() << Q_FUNC_INFO << "ERROR: Trying to release a block which is not the last block! Trixel = " << trixel;
88 trixel; //( ( trixel < 256 ) ? ( trixel + 256 ) : ( trixel - 256 ) ); // Trixel ID on datafile is assigned differently
98 qDebug() << Q_FUNC_INFO << "Reading trixel" << trixel << ", id on disk =" << trixelId << ", currently nStars =" << nStars
99 << ", record count =" << dSReader->getRecordCount( trixelId ) << ", first block = " << blocks[0]->getStarCount()
void append(const T &value)
static int unsigned_KDE_fseek(FILE *stream, quint32 offset, int whence)
Wrapper around fseek for large offsets.
Definition: binfilehelper.cpp:321
FILE * getFileHandle() const
Get the file handle corresponding to the currently open file.
Definition: binfilehelper.h:109
bool markFirst(std::shared_ptr< StarBlock > &block)
Mark a StarBlock as most recently used and sync its drawID with the current drawID.
Definition: starblockfactory.cpp:82
std::shared_ptr< StarBlock > getBlock()
Return a StarBlock available for use.
Definition: starblockfactory.cpp:42
StarBlockList(const Trixel &trixel, DeepStarComponent *parent=nullptr)
Constructor for deep star catalogs.
Definition: starblocklist.cpp:21
Definition: starblock.h:42
void removeLast()
int size() const const
int releaseBlock(StarBlock *block)
Drops the StarBlock with the given pointer from the list.
Definition: starblocklist.cpp:28
void setStaticBlock(std::shared_ptr< StarBlock > &block)
Sets the first StarBlock in the list to point to the given StarBlock.
Definition: starblocklist.cpp:157
long getOffset(int id) const
Returns the offset in the file corresponding to the given index ID.
Definition: binfilehelper.h:116
Implements an interface to handle binary data files used by KStars.
Definition: binfilehelper.h:38
A SkyNode derived class that represents stars and objects that are drawn as stars.
Definition: pointsourcenode.h:26
Definition: deepstarcomponent.h:31
bool markNext(std::shared_ptr< StarBlock > &after, std::shared_ptr< StarBlock > &block)
Rank a given StarBlock after another given StarBlock in the LRU list and sync its drawID with the cur...
Definition: starblockfactory.cpp:122
void deleteSkyNode(SkyNode *skyNode)
skyNode will be deleted on the next call to updatePaintNode (currently used only in StarNode(struct i...
Definition: skymaplite.cpp:205
std::shared_ptr< StarBlock > block(unsigned int i)
Returns the i-th block in this StarBlockList.
Definition: starblocklist.h:64
A 16-byte structure that holds star data for really faint stars.
Definition: nomadbinfile2mysql.h:26
A factory that creates StarBlocks and recycles them in an LRU Cache.
Definition: starblockfactory.h:21
virtual QVariant get(ScriptableExtension *callerPrincipal, quint64 objId, const QString &propName)
bool fillToMag(float maglim)
Ensures that the list is loaded with stars to given magnitude limit.
Definition: starblocklist.cpp:62
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:05:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:05:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.