Kstars

equator.h
1 /*
2  SPDX-FileCopyrightText: 2007 James B. Bowlin <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "linelistlabel.h"
10 #include "noprecessindex.h"
11 
12 /**
13  * @class Equator
14  * Represents the equator on the sky map.
15  *
16  * @author James B. Bowlin
17  * @version 0.1
18  */
19 class Equator : public NoPrecessIndex
20 {
21  public:
22  /**
23  * @short Constructor
24  * @p parent pointer to the parent SkyComposite object name is the name of the subclass
25  */
26  explicit Equator(SkyComposite *parent);
27 
28  bool selected() override;
29  void draw(SkyPainter *skyp) override;
30  virtual void drawCompassLabels();
31  LineListLabel *label() override { return &m_label; }
32 
33  protected:
34  void preDraw(SkyPainter *skyp) override;
35 
36  private:
37  LineListLabel m_label;
38 };
Equator(SkyComposite *parent)
Constructor parent pointer to the parent SkyComposite object name is the name of the subclass.
Definition: equator.cpp:21
void preDraw(SkyPainter *skyp) override
Gives the subclasses access to the top of the draw() method.
Definition: equator.cpp:52
SkyComposite * parent()
Definition: skycomponent.h:137
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition: equator.cpp:59
bool selected() override
Definition: equator.cpp:47
Draws things on the sky, without regard to backend.
Definition: skypainter.h:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Aug 11 2022 03:59:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.