Kstars

mosaiccomponent.cpp
1 /* Mosaic Panel Component
2 
3  SPDX-FileCopyrightText: 2022 Jasem Mutlaq <[email protected]>
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 
31 const QSharedPointer<MosaicTiles> MosaicComponent::tiles() const
32 {
33  return m_MosaicTiles;
34 }
T * data() const const
bool selected() override
Draws things on the sky, without regard to backend.
Definition: skypainter.h:39
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
MosaicComponent(SkyComposite *)
Constructor.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Dec 6 2023 04:05:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.