Kstars
deepskynode.cpp
22 DeepSkyNode::DeepSkyNode(DeepSkyObject *skyObject, DSOSymbolNode *symbol, LabelsItem::label_t labelType, short trixel)
static constexpr double PI
PI is a const static member; it's public so that it can be used anywhere, as long as dms....
Definition: dms.h:380
qreal height() const const
virtual void changePos(QPointF pos) override
changePos changes the position of this node and rotate it according to m_angle
Definition: deepskynode.cpp:34
void update(float size, const QPointF &pos, float positionangle)
Update size and position of the symbol.
Definition: dsosymbolnode.cpp:424
double findPA(const SkyObject *o, float x, float y) const
Determine the on-screen position angle of a SkyObject.
Definition: projector.cpp:265
TextureCanUseAtlas
void appendChildNode(QSGNode *node)
void setRect(const QRectF &r)
void setColor(QColor color, TrixelNode *symbolTrixel)
sets color of DSO symbol and label To not increase the code for symbols we just recreate the symbol p...
Definition: deepskynode.cpp:46
virtual void hide() override
hides all child nodes (sets opacity of m_opacity to 0)
Definition: deepskynode.cpp:142
bool onScreen(const QPointF &p) const
Check whether the projected point is on-screen.
Definition: projector.cpp:98
QRectF rect() const const
void setOwnsTexture(bool owns)
Definition: projector.h:55
void setMatrix(const QMatrix4x4 &matrix)
DeepSkyNode(DeepSkyObject *skyObject, DSOSymbolNode *symbol, LabelsItem::label_t labelType, short trixel=-1)
Constructor.
Definition: deepskynode.cpp:22
void markDirty(QSGNode::DirtyState bits)
DirtyMatrix
qreal x() const const
qreal y() const const
void rotate(float angle, const QVector3D &vector)
QPointF toScreen(const SkyPoint *o, bool oRefract=true, bool *onVisibleHemisphere=nullptr) const
This is exactly the same as toScreenVec but it returns a QPointF.
Definition: projector.cpp:93
void setLabelPos(QPointF pos)
set the position of label with the given offset from SkyObject's position and makes the label visible...
Definition: labelnode.cpp:123
QSizeF size() const const
void setTexture(QSGTexture *texture)
void translate(const QVector3D &vector)
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
A SkyNode derived class used for Deep Sky symbols in SkyMapLite.
Definition: dsosymbolnode.h:149
bool checkVisibility(const SkyPoint *p) const
Determine if the skypoint p is likely to be visible in the display window.
Definition: projector.cpp:183
qreal width() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.