Kstars
fovsymbolnode.cpp
14FOVSymbolNode::FOVSymbolNode(const QString &name, float a, float b, float xoffset, float yoffset, float rot,
87FOVSymbolBase::FOVSymbolBase(FOVItem::Shape shape) : m_shape(shape) //Will be changed by the subclass
122 rect1->setRect(center.x() - pixelSizeX / 2, center.y() - pixelSizeY / 2, pixelSizeX, pixelSizeY);
125 rect2->setRect(center.x(), center.y() - (3 * pixelSizeY / 5), pixelSizeX / 40, pixelSizeX / 10);
void updateGeometry(float x, float y, int width, int height, bool filled)
Redraw ellipse with the given width, height and positions (x,y)
Definition ellipsenode.cpp:52
FOVSymbolBase is a virtual class that should be subclassed by every type of FOV symbol.
Definition fovsymbolnode.h:28
virtual void updateSymbol(QColor color, float pixelSizeX, float pixelSizeY)=0
updates geometry (position, size) of elements of this FOV symbol
FOVSymbolNode(const QString &name, float a, float b, float xoffset, float yoffset, float rot, FOVItem::Shape shape=FOVItem::SQUARE, const QString &color="#FFFFFF")
Constructor.
Definition fovsymbolnode.cpp:14
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
QSGGeometryNode derived class that draws filled and non-filled rectangles.
Definition rectnode.h:22
void setAlpha(int alpha)
void rotate(const QQuaternion &quaternion)
void translate(const QVector3D &vector)
int x() const const
int y() const const
QPoint toPoint() const const
height
width
QSGGeometry * geometry()
const QColor & color() const const
void setColor(const QColor &color)
void set(float x, float y)
const AttributeSet & defaultAttributes_Point2D()
Point2D * vertexDataAsPoint2D()
QSGMaterial * opaqueMaterial() const const
DirtyMaterial
OwnsGeometry
void appendChildNode(QSGNode *node)
void markDirty(DirtyState bits)
void setMatrix(const QMatrix4x4 &matrix)
QTextStream & center(QTextStream &stream)
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.