Kstars
starblocklist.cpp
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()
This class provides utility functions to handle binary data files in the format prescribed by KStars.
Definition binfilehelper.h:39
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
long getOffset(int id) const
Returns the offset in the file corresponding to the given index ID.
Definition binfilehelper.h:116
Stores and manages unnamed stars, most of which are dynamically loaded into memory.
Definition deepstarcomponent.h:32
A SkyNode derived class used for displaying PointNode with coordinates provided by SkyObject.
Definition pointsourcenode.h:27
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
A factory that creates StarBlocks and recycles them in an LRU Cache.
Definition starblockfactory.h:22
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
std::shared_ptr< StarBlock > getBlock()
Return a StarBlock available for use.
Definition starblockfactory.cpp:42
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 > block(unsigned int i)
Returns the i-th block in this StarBlockList.
Definition starblocklist.h:64
StarBlockList(const Trixel &trixel, DeepStarComponent *parent=nullptr)
Constructor for deep star catalogs.
Definition starblocklist.cpp:21
void setStaticBlock(std::shared_ptr< StarBlock > &block)
Sets the first StarBlock in the list to point to the given StarBlock.
Definition starblocklist.cpp:157
bool fillToMag(float maglim)
Ensures that the list is loaded with stars to given magnitude limit.
Definition starblocklist.cpp:62
int releaseBlock(StarBlock *block)
Drops the StarBlock with the given pointer from the list.
Definition starblocklist.cpp:28
Holds a block of stars and various peripheral variables to mark its place in data structures.
Definition starblock.h:43
void append(QList< T > &&value)
void removeLast()
qsizetype size() const const
A 16-byte structure that holds star data for really faint stars.
Definition nomadbinfile2mysql.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.