• 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
polylist.h
Go to the documentation of this file.
1 /***************************************************************************
2  polylist.h - K Desktop Planetarium
3  -------------------
4  begin : 2007-07-10
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 POLYLIST_H
19 #define POLYLIST_H
20 
21 #include <QHash>
22 #include <QPolygonF>
23 #include <QPointF>
24 
25 
26 /* @class PolyList is almost a clone of LineList but since they have no data
27  * members in common, this is a new class instead of a subclass
28  *
29  *
30  * @author James B. Bowlin @version 0.1
31  */
32 class PolyList
33 {
34 public:
35  /* @short trivial constructor that also sets the name. It was
36  * convenient to specify the name at construction time.
37  */
38  explicit PolyList( QString name) : m_wrapRA(false) { m_name = name; };
39 
40  /* @short returns the QPolygonF that holds the points. */
41  const QPolygonF* poly() { return &m_poly; }
42 
43  /* @short we need a new append() method to append QPointF's
44  * instead of SkyPoints.
45  */
46  void append( const QPointF &p ) { m_poly.append( p ); }
47 
48  /* @short returns the name. */
49  const QString& name() { return m_name; }
50 
51  bool wrapRA() { return m_wrapRA; }
52 
53  void setWrapRA( bool wrap ) { m_wrapRA = wrap; }
54 private:
55  QPolygonF m_poly;
56  QString m_name;
57  bool m_wrapRA;
58 };
59 
60 #endif
PolyList::poly
const QPolygonF * poly()
Definition: polylist.h:41
PolyList::wrapRA
bool wrapRA()
Definition: polylist.h:51
PolyList::setWrapRA
void setWrapRA(bool wrap)
Definition: polylist.h:53
PolyList
Definition: polylist.h:32
PolyList::PolyList
PolyList(QString name)
Definition: polylist.h:38
PolyList::name
const QString & name()
Definition: polylist.h:49
PolyList::append
void append(const QPointF &p)
Definition: polylist.h:46
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