• 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
listcomponent.h
Go to the documentation of this file.
1 /***************************************************************************
2  listcomponent.h - K Desktop Planetarium
3  -------------------
4  begin : 2005/10/01
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 LISTCOMPONENT_H
19 #define LISTCOMPONENT_H
20 
21 #include <QList>
22 
23 #include "skycomponent.h"
24 
25 class SkyComposite;
26 class SkyMap;
27 
36 class ListComponent : public SkyComponent
37 {
38 public:
39  explicit ListComponent( SkyComposite *parent );
40 
41  virtual ~ListComponent();
42 
54  virtual void update( KSNumbers *num=0 );
55 
56  virtual SkyObject* findByName( const QString &name );
57  virtual SkyObject* objectNearest( SkyPoint *p, double &maxrad );
58 
59  void clear();
60 
61  const QList<SkyObject*>& objectList() const { return m_ObjectList; }
62 
63 protected:
64  QList<SkyObject*> m_ObjectList;
65 };
66 
67 
68 #endif
SkyComponent::parent
SkyComposite * parent()
Definition: skycomponent.h:82
ListComponent::m_ObjectList
QList< SkyObject * > m_ObjectList
Definition: listcomponent.h:64
SkyComponent
SkyComponent represents an object on the sky map.
Definition: skycomponent.h:44
ListComponent
An abstract parent class, to be inherited by SkyComponents that store a QList of SkyObjects.
Definition: listcomponent.h:36
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
ListComponent::update
virtual void update(KSNumbers *num=0)
Update the sky positions of this component.
Definition: listcomponent.cpp:42
ListComponent::findByName
virtual SkyObject * findByName(const QString &name)
Search the children of this SkyComponent for a SkyObject whose name matches the argument name the nam...
Definition: listcomponent.cpp:54
ListComponent::objectList
const QList< SkyObject * > & objectList() const
Definition: listcomponent.h:61
skycomponent.h
ListComponent::ListComponent
ListComponent(SkyComposite *parent)
Definition: listcomponent.cpp:26
SkyComposite
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
ListComponent::objectNearest
virtual SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Find the SkyObject nearest the given SkyPoint.
Definition: listcomponent.cpp:65
ListComponent::~ListComponent
virtual ~ListComponent()
Definition: listcomponent.cpp:30
SkyMap
This is the canvas on which the sky is painted.
Definition: skymap.h:72
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
ListComponent::clear
void clear()
Definition: listcomponent.cpp:34
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