• 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
skycomposite.h
Go to the documentation of this file.
1 /***************************************************************************
2  skycomposite.h - K Desktop Planetarium
3  -------------------
4  begin : 2005/07/08
5  copyright : (C) 2005 by Thomas Kabelmann
6  email : thomas.kabelmann@gmx.de
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 SKYCOMPOSITE_H
19 #define SKYCOMPOSITE_H
20 
21 #include <QList>
22 
23 #include "skycomponent.h"
24 
25 class KSNumbers;
26 
43 class SkyComposite : public SkyComponent
44 {
45 public:
49  explicit SkyComposite( SkyComposite *parent );
50 
52  virtual ~SkyComposite();
53 
57  virtual void draw( SkyPainter *skyp );
58 
72  virtual void update( KSNumbers *num=0 );
73 
77  void addComponent(SkyComponent *comp);
78 
82  void removeComponent(SkyComponent *comp);
83 
93  virtual SkyObject* findByName( const QString &name );
94 
101  virtual SkyObject* objectNearest( SkyPoint *p, double &maxrad );
102 
103  QList<SkyComponent*>& components() { return m_Components; }
104 
105 private:
106  QList<SkyComponent*> m_Components;
107 };
108 
109 #endif
SkyComponent::parent
SkyComposite * parent()
Definition: skycomponent.h:82
SkyComponent
SkyComponent represents an object on the sky map.
Definition: skycomponent.h:44
SkyComposite::update
virtual void update(KSNumbers *num=0)
Delegate update-position requests to all sub components.
Definition: skycomposite.cpp:50
SkyComposite::draw
virtual void draw(SkyPainter *skyp)
Delegate draw requests to all sub components psky Reference to the QPainter on which to paint...
Definition: skycomposite.cpp:43
SkyComposite::addComponent
void addComponent(SkyComponent *comp)
Add a new sub component to the composite comp Pointer to the SkyComponent to be added.
Definition: skycomposite.cpp:31
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
SkyComposite::SkyComposite
SkyComposite(SkyComposite *parent)
Constructor parent pointer to the parent SkyComponent.
Definition: skycomposite.cpp:22
SkyComposite::objectNearest
virtual SkyObject * objectNearest(SkyPoint *p, double &maxrad)
Identify the nearest SkyObject to the given SkyPoint, among the children of this SkyComposite p point...
Definition: skycomposite.cpp:64
SkyComposite::removeComponent
void removeComponent(SkyComponent *comp)
Remove a sub component from the composite comp Pointer to the SkyComponent to be removed.
Definition: skycomposite.cpp:36
skycomponent.h
SkyComposite
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
SkyComposite::components
QList< SkyComponent * > & components()
Definition: skycomposite.h:103
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
SkyComposite::~SkyComposite
virtual ~SkyComposite()
Definition: skycomposite.cpp:26
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
SkyPainter
Draws things on the sky, without regard to backend.
Definition: skypainter.h:47
SkyComposite::findByName
virtual SkyObject * findByName(const QString &name)
Search the children of this SkyComposite for a SkyObject whose name matches the argument.
Definition: skycomposite.cpp:56
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