Kstars

ecliptic.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 "linelistindex.h"
10#include "linelistlabel.h"
11
12/**
13 * @class Ecliptic
14 * Represents the ecliptic on the sky map.
15 *
16 * @author James B. Bowlin
17 * @version 0.1
18 */
19class Ecliptic : public LineListIndex
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 Ecliptic(SkyComposite *parent);
27
28 void draw(SkyPainter *skyp) override;
29 virtual void drawCompassLabels();
30 bool selected() override;
31
32 LineListLabel *label() override { return &m_label; }
33
34 private:
35 LineListLabel m_label;
36};
Represents the ecliptic on the sky map.
Definition ecliptic.h:20
Ecliptic(SkyComposite *parent)
Constructor parent pointer to the parent SkyComposite object name is the name of the subclass.
Definition ecliptic.cpp:21
bool selected() override
Definition ecliptic.cpp:52
void draw(SkyPainter *skyp) override
Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.
Definition ecliptic.cpp:57
Contains almost all the code needed for indexing and drawing and clipping lines and polygons.
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 Fri Jun 14 2024 11:55:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.