Kstars

equator.h
1/*
2 SPDX-FileCopyrightText: 2007 James B. Bowlin <bowlin@mindspring.com>
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 */
19class 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};
Represents the equator on the sky map.
Definition equator.h:20
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
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()
SkyComposite is a kind of container class for SkyComponent objects.
Draws things on the sky, without regard to backend.
Definition skypainter.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.