Changeset View
Changeset View
Standalone View
Standalone View
kstars/kstarslite/skyitems/lines/eclipticitem.h
Context not available. | |||||
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * | ||
---|---|---|---|---|---|
14 | * * | 14 | * * | ||
15 | ***************************************************************************/ | 15 | ***************************************************************************/ | ||
16 | #ifndef ECLIPTICITEM_H_ | 16 | | ||
17 | #define ECLIPTICITEM_H_ | 17 | #pragma once | ||
18 | 18 | | |||
19 | #include "../skyitem.h" | 19 | #include "../skyitem.h" | ||
20 | 20 | | |||
21 | class Ecliptic; | 21 | class Ecliptic; | ||
22 | 22 | | |||
23 | /** @class EclipticItem | 23 | /** | ||
24 | * @class EclipticItem | ||||
24 | * | 25 | * | ||
25 | *@short Represents Ecliptic in SkyMapLite | 26 | * @short Represents Ecliptic in SkyMapLite | ||
26 | *@author Artem Fedoskin | 27 | * @author Artem Fedoskin | ||
27 | *@version 1.0 | 28 | * @version 1.0 | ||
28 | */ | 29 | */ | ||
29 | | ||||
30 | class EclipticItem : public SkyItem | 30 | class EclipticItem : public SkyItem | ||
31 | { | 31 | { | ||
32 | public: | 32 | public: | ||
33 | /** | 33 | /** | ||
34 | * @short Constructor. Creates TrixelNodes for lines and LabelNodes for compass labels | 34 | * @short Constructor. Creates TrixelNodes for lines and LabelNodes for compass labels | ||
35 | * @param eclipticComp Ecliptic that needs to be represented in SkyMapLite | 35 | * @param eclipticComp Ecliptic that needs to be represented in SkyMapLite | ||
36 | * @param rootNode parent RootNode that instantiated this object | 36 | * @param rootNode parent RootNode that instantiated this object | ||
37 | */ | 37 | */ | ||
38 | | ||||
39 | EclipticItem(Ecliptic *eclipticComp, RootNode *rootNode); | 38 | EclipticItem(Ecliptic *eclipticComp, RootNode *rootNode); | ||
40 | 39 | | |||
41 | /** | 40 | /** @short updates positions of lines and compass labels */ | ||
42 | * @short updates positions of lines and compass labels | 41 | virtual void update() override; | ||
43 | */ | | |||
44 | virtual void update(); | | |||
45 | 42 | | |||
46 | private: | 43 | private: | ||
47 | Ecliptic *m_eclipticComp; | 44 | Ecliptic *m_eclipticComp { nullptr }; | ||
48 | 45 | | |||
49 | //Holds compass labels each associated with SkyPoint that is coordinate of this label | 46 | //Holds compass labels each associated with SkyPoint that is coordinate of this label | ||
50 | QMap<SkyPoint *, LabelNode *> m_compassLabels; | 47 | QMap<SkyPoint *, LabelNode *> m_compassLabels; | ||
51 | }; | 48 | }; | ||
52 | #endif | | |||
Context not available. |