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
Definition: skylabeler.h:98
A container for nodes that holds collection of textures for stars and provides clipping.
Definition: rootnode.h:59
void deleteLabels(label_t labelType)
deletes all labels of type labelType
Definition: labelsitem.cpp:214
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
@ NUM_LABEL_TYPES
Rude labels block other labels FIXME: find a better solution.
Definition: labelsitem.h:75
A wrapper for QSGOpacityNode that provides hide() and show() functions. If node is invisible (opacity...
Definition: skyopacitynode.h:20
Definition: guidelabelnode.h:27
GuideLabelNode * addGuideLabel(QString name, label_t labelType)
does the same as above but instead creates GuideLabelNode
Definition: labelsitem.cpp:145
TrixelNode * addTrixel(label_t labelType, Trixel trixel)
adds trixel to the node corresponding to labelType
Definition: labelsitem.cpp:152
void setRootNode(RootNode *rootNode)
sets m_rootNode and appends to it this node
Definition: labelsitem.cpp:202
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:58:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:58:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.