• 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
linelist.h
Go to the documentation of this file.
1 /***************************************************************************
2  linelist.h - K Desktop Planetarium
3  -------------------
4  begin : 2007-07-06
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 LINELIST_H
19 #define LINELIST_H
20 
21 #include <QList>
22 
23 #include "typedef.h"
24 
25 class SkyPoint;
26 class KSNumbers;
27 
28 /* @class LineList
29  * A simple data container used by LineListIndex. It contains a list of
30  * SkyPoints and integer drawID, updateID and updateNumID.
31  *
32  * @author James B. Bowlin
33  * @version 0.2
34 */
35 class LineList
36 {
37 public:
38  LineList() : drawID(0), updateID(0), updateNumID(0) {}
39 
40  /* A global drawID (in SkyMesh) is updated at the start of each draw
41  * cycle. Since an extended object is often covered by more than one
42  * trixel, the drawID is used to make sure each object gets drawn at
43  * most once per draw cycle. It is public because it is both set and
44  * read by the LineListIndex class.
45  */
46  DrawID drawID;
47  UpdateID updateID;
48  UpdateID updateNumID;
49 
50  /* @short return the list of points for iterating or appending
51  * (or whatever).
52  */
53  SkyList* points() { return &pointList; }
54  SkyPoint* at( int i ) { return pointList.at( i ); }
55  void append( SkyPoint* p ) { pointList.append( p ); }
56 private:
57  SkyList pointList;
58 
59 };
60 
61 #endif
LineList::at
SkyPoint * at(int i)
Definition: linelist.h:54
SkyList
QVector< SkyPoint * > SkyList
Definition: skycomponents/typedef.h:45
LineList::drawID
DrawID drawID
Definition: linelist.h:46
typedef.h
UpdateID
quint32 UpdateID
Definition: skycomponents/typedef.h:41
LineList
Definition: linelist.h:35
LineList::points
SkyList * points()
Definition: linelist.h:53
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
LineList::updateNumID
UpdateID updateNumID
Definition: linelist.h:48
LineList::append
void append(SkyPoint *p)
Definition: linelist.h:55
LineList::updateID
UpdateID updateID
Definition: linelist.h:47
DrawID
quint32 DrawID
Definition: skycomponents/typedef.h:38
LineList::LineList
LineList()
Definition: linelist.h:38
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