Kstars

mosaiccomponent.cpp
1/* Mosaic Panel Component
2
3 SPDX-FileCopyrightText: 2022 Jasem Mutlaq <mutlaqja@ikarustech.com>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7
8#include "mosaiccomponent.h"
9
10#include "Options.h"
11#include "skypainter.h"
12#include "skymap.h"
13#include "mosaictiles.h"
14
16{
17 m_MosaicTiles.reset(new MosaicTiles());
18}
19
21{
22 return Options::showMosaicPanel();
23}
24
26{
27 if (selected())
28 skyp->drawMosaicPanel(m_MosaicTiles.data());
29}
30
31const QSharedPointer<MosaicTiles> MosaicComponent::tiles() const
32{
33 return m_MosaicTiles;
34}
MosaicComponent(SkyComposite *)
Constructor.
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
bool selected() override
SkyComponent represents an object on the sky map.
SkyComposite is a kind of container class for SkyComponent objects.
Draws things on the sky, without regard to backend.
Definition skypainter.h:40
T * data() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:48:27 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.