• 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
  • tools
starhopper.h
Go to the documentation of this file.
1 /***************************************************************************
2  starhopper.h - Star Hopping Guide for KStars
3  -------------------
4  begin : Mon 23rd Aug 2010
5  copyright : (C) 2010 Akarsh Simha
6  email : akarshsimha@gmail.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 _STARHOPPER_H_
19 #define _STARHOPPER_H_
20 
28 #include "skypoint.h"
29 #include "skyobject.h"
30 #include "starobject.h"
31 
32 class StarHopper {
33 
34  public:
35 
36  QList<StarObject const *> computePath( const SkyPoint &src, const SkyPoint &dest, float fov_, float maglim_ );
37 
38  private:
39  float fov;
40  float maglim;
41 
42  // Useful for internal computations
43  SkyPoint const *start;
44  SkyPoint const *end;
45  QHash<const SkyPoint *, const SkyPoint *> came_from; // Used by the A* search algorithm
46  QList<StarObject const *> result_path;
47 
56  float cost( const SkyPoint *curr, const SkyPoint *next );
57 
63  void reconstructPath( SkyPoint const *curr_node );
64 
65 };
66 
67 #endif
skyobject.h
StarHopper::computePath
QList< StarObject const * > computePath(const SkyPoint &src, const SkyPoint &dest, float fov_, float maglim_)
Definition: starhopper.cpp:30
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
StarHopper
Helps planning star hopping.
Definition: starhopper.h:32
skypoint.h
starobject.h
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 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