Kstars
labelsitem.h
27 * This class is in charge of labels in SkyMapLite. Labels can be instantiated by calling addLabel with
28 * either SkyObject or plain QString as a name. There are two types of label nodes available - LabelNode
29 * that can't be rotated and GuideLabelNode that supports rotation (but it is not used anywhere yet).
31 * To prevent labels from overlapping this class uses SkyLabeler. We check LabelNode for overlapping by
34 * Each of SkyItems that uses labels has its own label type in enum label_t (copied from SkyLabeler but
36 * to hide all labels of some type you just need to set opacity of LabelTypeNode that corresponds to
39 * Order of drawing can be changed in LabelsItem's constructor. Order of labels update can be changed in
42 * This class is not derived from SkyItem as it doesn't have label type and SkyItem's header needs an
96 * can be hidden whenever Trixel is not displayed. Use for sky objects that are indexed by SkyMesh
LabelNode * addLabel(SkyObject *skyObject, label_t labelType)
Create LabelNode with given skyObject and append it to LabelTypeNode that corresponds to type.
Definition labelsitem.cpp:111
@ NUM_LABEL_TYPES
Rude labels block other labels FIXME: find a better solution.
Definition labelsitem.h:75
void deleteLabels(label_t labelType)
deletes all labels of type labelType
Definition labelsitem.cpp:214
TrixelNode * addTrixel(label_t labelType, Trixel trixel)
adds trixel to the node corresponding to labelType
Definition labelsitem.cpp:152
void updateChildLabels(label_t labelType)
updates child labels of LabelTypeNode that corresponds to type in m_labelsLists Labels for stars and ...
Definition labelsitem.cpp:289
GuideLabelNode * addGuideLabel(QString name, label_t labelType)
does the same as above but instead creates GuideLabelNode
Definition labelsitem.cpp:145
void setRootNode(RootNode *rootNode)
sets m_rootNode and appends to it this node
Definition labelsitem.cpp:202
A QSGClipNode derived class used as a container for holding pointers to nodes and for clipping.
Definition rootnode.h:60
The purpose of this class is to prevent labels from overlapping.
Definition skylabeler.h:99
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
A wrapper for QSGOpacityNode that provides hide() and show() functions.
Definition skyopacitynode.h:21
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.