• 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
skiplist.h
Go to the documentation of this file.
1 /***************************************************************************
2  skiplist.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 SKIPLIST_H
19 #define SKIPLIST_H
20 
21 #include <QHash>
22 
23 #include "linelist.h"
24 
25 /* @class SkipList
26  * Extends LineList by adding the skip hash to allow the same the data in a
27  * LineList to be drawn as a filled and an outlined polygon.
28  *
29  * NOTE: there is no skiplist.cpp file. This is all there is.
30  *
31  * @author James B. Bowlin
32  * @version 0.1
33  */
34 class SkipList : public LineList
35 {
36 public:
37  /* @short returns the entire skip hash. Used by the
38  * indexLines() routine so all the line segments in
39  * this SkipList can be indexed at once.
40  */
41  IndexHash* skipHash() { return &m_skip; }
42 
43  /* @short instructs that the ith line segment should
44  * be skipped when drawn (and hence when indexed too).
45  */
46  void setSkip( int i ) { m_skip[ i ] = true; }
47 
48  /* @short returns the skip flag for the i-th line
49  * segment.
50  */
51  bool skip( int i ) { return m_skip.contains( i ); }
52 
53 private:
54  IndexHash m_skip;
55 
56 };
57 
58 #endif
SkipList::setSkip
void setSkip(int i)
Definition: skiplist.h:46
LineList
Definition: linelist.h:35
linelist.h
SkipList::skip
bool skip(int i)
Definition: skiplist.h:51
IndexHash
QHash< Trixel, bool > IndexHash
Definition: skycomponents/typedef.h:46
SkipList::skipHash
IndexHash * skipHash()
Definition: skiplist.h:41
SkipList
Definition: SkipList.h:17
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