• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • skycomponents
skylabel.h
Go to the documentation of this file.
1 /***************************************************************************
2  skylabel.h - K Desktop Planetarium
3  -------------------
4  begin : 2007/07/20
5  copyright : (C) 2007 by James B. Bowlin
6  email : bowlin@mindspring.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef SKYLABEL_H
19 #define SKYLABEL_H
20 
21 #include <QPointF>
22 #include <QList>
23 #include "skyobjects/skyobject.h"
24 
25 class SkyLabel;
26 typedef QList<SkyLabel> LabelList;
27 
28 class SkyLabel {
29 
30 public:
31  SkyLabel( qreal ra, qreal dec, SkyObject *obj_in ) :
32  o( ra, dec), obj(obj_in)
33  {}
34 
35  // SkyLabel( double ra, double dec, QString& text_in) :
36  // o( ra, dec), text(text_in)
37  // {}
38 
39  SkyLabel( const QPointF o_in, SkyObject *obj_in ) : o(o_in), obj(obj_in)
40  {}
41 
42  //~StarLabel() { delete m_p; }
43 
44  QPointF& point() { return o; }
45  QPointF o;
46  SkyObject *obj;
47 };
48 
49 #endif
LabelList
QList< SkyLabel > LabelList
Definition: skylabel.h:25
skyobject.h
SkyLabel::SkyLabel
SkyLabel(const QPointF o_in, SkyObject *obj_in)
Definition: skylabel.h:39
SkyLabel::o
QPointF o
Definition: skylabel.h:45
SkyLabel::obj
SkyObject * obj
Definition: skylabel.h:46
SkyLabel::point
QPointF & point()
Definition: skylabel.h:44
SkyLabel
Definition: skylabel.h:28
SkyLabel::SkyLabel
SkyLabel(qreal ra, qreal dec, SkyObject *obj_in)
Definition: skylabel.h:31
SkyObject
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal