• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

Public Member Functions | List of all members
AsteroidsComponent Class Reference

#include <asteroidscomponent.h>

Inheritance diagram for AsteroidsComponent:
Inheritance graph
[legend]

Public Member Functions

 AsteroidsComponent (SolarSystemComposite *parent)
 
virtual ~AsteroidsComponent ()
 
QString ans ()
 
virtual void draw (SkyPainter *skyp)
 
virtual SkyObject * objectNearest (SkyPoint *p, double &maxrad)
 
virtual bool selected ()
 
void updateDataFile ()
 
- Public Member Functions inherited from SolarSystemListComponent
 SolarSystemListComponent (SolarSystemComposite *parent)
 
virtual ~SolarSystemListComponent ()
 
virtual void update (KSNumbers *num)
 
virtual void updatePlanets (KSNumbers *num)
 
- Public Member Functions inherited from ListComponent
 ListComponent (SkyComposite *parent)
 
virtual ~ListComponent ()
 
void clear ()
 
virtual SkyObject * findByName (const QString &name)
 
const QList< SkyObject * > & objectList () const
 
- Public Member Functions inherited from SkyComponent
 SkyComponent (SkyComposite *parent)
 
virtual ~SkyComponent ()
 
virtual void emitProgressText (const QString &message)
 
QHash< int, QStringList > & objectNames ()
 
QStringList & objectNames (int type)
 
virtual void objectsInArea (QList< SkyObject * > &list, const SkyRegion &region)
 
SkyComposite * parent ()
 
virtual void updateMoons (KSNumbers *)
 

Additional Inherited Members

- Protected Member Functions inherited from SolarSystemListComponent
void drawTrails (SkyPainter *skyp)
 
- Protected Member Functions inherited from SkyComponent
void removeFromNames (const SkyObject *obj)
 
- Protected Attributes inherited from ListComponent
QList< SkyObject * > m_ObjectList
 

Detailed Description

Represents the asteroids on the sky map.

Author
Thomas Kabelmann
Version
0.1

Definition at line 32 of file asteroidscomponent.h.

Constructor & Destructor Documentation

AsteroidsComponent::AsteroidsComponent ( SolarSystemComposite *  parent)
explicit

Default constructor.

parent pointer to the parent SolarSystemComposite

Definition at line 39 of file asteroidscomponent.cpp.

AsteroidsComponent::~AsteroidsComponent ( )
virtual

Definition at line 44 of file asteroidscomponent.cpp.

Member Function Documentation

QString AsteroidsComponent::ans ( )
void AsteroidsComponent::draw ( SkyPainter *  skyp)
virtual

Draw the object on the SkyMap skyp a pointer to the SkyPainter to use.

Implements SkyComponent.

Definition at line 176 of file asteroidscomponent.cpp.

SkyObject * AsteroidsComponent::objectNearest ( SkyPoint *  p,
double &  maxrad 
)
virtual

Find the SkyObject nearest the given SkyPoint.

Look for a SkyObject that is nearer to point p than maxrad. If one is found, then maxrad is reset to the separation of the new nearest object. p pointer to the SkyPoint to search around maxrad reference to current search radius

Returns
a pointer to the nearest SkyObject
Note
This function simply returns a NULL pointer; it is reimplemented in various sub-classes.

Reimplemented from ListComponent.

Definition at line 206 of file asteroidscomponent.cpp.

bool AsteroidsComponent::selected ( )
virtual
Returns
true if component is to be drawn on the map.

Reimplemented from SkyComponent.

Definition at line 47 of file asteroidscomponent.cpp.

void AsteroidsComponent::updateDataFile ( )

Definition at line 224 of file asteroidscomponent.cpp.


The documentation for this class was generated from the following files:
  • asteroidscomponent.h
  • asteroidscomponent.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:22 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