• 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
constellationboundarylines.h
Go to the documentation of this file.
1 /***************************************************************************
2  constellationboundary.h - K Desktop Planetarium
3  -------------------
4  begin : 25 Oct. 2005
5  copyright : (C) 2005 by Jason Harris
6  email : kstars@30doradus.org
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 CONSTELLATION_BOUNDARY_LINES_H
19 #define CONSTELLATION_BOUNDARY_LINES_H
20 
21 #include "noprecessindex.h"
22 
23 #include <QHash>
24 #include <QPolygonF>
25 
26 class PolyList;
27 class ConstellationBoundary;
28 class KSFileReader;
29 
30 
31 typedef QVector<PolyList*> PolyListList;
32 typedef QVector<PolyListList*> PolyIndex;
33 
41 class ConstellationBoundaryLines : public NoPrecessIndex
42 {
43 public:
55  explicit ConstellationBoundaryLines( SkyComposite *parent );
56 
57  QString constellationName( SkyPoint *p );
58 
59  virtual bool selected();
60 
61  virtual void preDraw( SkyPainter *skyp );
62 private:
63  void appendPoly( PolyList* polyList, int debug=0);
64 
65  /* @short reads the indices from the KSFileReader instead of using
66  * the SkyMesh to create them. If the file pointer is null or if
67  * debug == -1 then we fall back to using the index.
68  */
69  void appendPoly( PolyList* polyList, KSFileReader* file, int debug);
70 
71  PolyList* ContainingPoly( SkyPoint *p );
72 
73  SkyMesh* m_skyMesh;
74  PolyIndex m_polyIndex;
75  int m_polyIndexCnt;
76 };
77 
78 
79 #endif
ConstellationBoundaryLines::preDraw
virtual void preDraw(SkyPainter *skyp)
Definition: constellationboundarylines.cpp:154
SkyComponent::parent
SkyComposite * parent()
Definition: skycomponent.h:82
ConstellationBoundaryLines::selected
virtual bool selected()
Definition: constellationboundarylines.cpp:148
PolyList
Definition: polylist.h:32
ConstellationBoundary
Collection of lines comprising the borders between constellations.
NoPrecessIndex
Definition: noprecessindex.h:28
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
noprecessindex.h
SkyComposite
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
ConstellationBoundaryLines::ConstellationBoundaryLines
ConstellationBoundaryLines(SkyComposite *parent)
Constructor Simply adds all of the coordinate grid circles (meridians and parallels) parent Pointer t...
Definition: constellationboundarylines.cpp:44
ConstellationBoundaryLines
Definition: constellationboundarylines.h:41
PolyListList
QVector< PolyList * > PolyListList
Definition: constellationboundarylines.h:28
KSFileReader
Definition: ksfilereader.h:65
SkyMesh
Definition: skymesh.h:93
PolyIndex
QVector< PolyListList * > PolyIndex
Definition: constellationboundarylines.h:32
ConstellationBoundaryLines::constellationName
QString constellationName(SkyPoint *p)
Definition: constellationboundarylines.cpp:261
SkyPainter
Draws things on the sky, without regard to backend.
Definition: skypainter.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 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