• 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
  • projections
orthographicprojector.cpp
Go to the documentation of this file.
1 /*
2  <one line to give the program's name and a brief idea of what it does.>
3  Copyright (C) <year> <name of author>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 
19 */
20 
21 #include "orthographicprojector.h"
22 
23 OrthographicProjector::OrthographicProjector(const ViewParams& p)
24  : Projector(p)
25 {
26 
27 }
28 
29 SkyMap::Projection OrthographicProjector::type() const
30 {
31  return SkyMap::Orthographic;
32 }
33 
34 double OrthographicProjector::radius() const
35 {
36  return 1.0;
37 }
38 
39 double OrthographicProjector::projectionK(double x) const
40 {
41  Q_UNUSED(x);
42  return 1.0;
43 }
44 
45 double OrthographicProjector::projectionL(double x) const
46 {
47  return asin(x);
48 }
49 
SkyMap::Projection
Projection
Definition: skymap.h:96
orthographicprojector.h
OrthographicProjector::radius
virtual double radius() const
Get the radius of this projection's sky circle.
Definition: orthographicprojector.cpp:34
Projector
This class serves as an interface to handle projections.
Definition: projector.h:49
OrthographicProjector::OrthographicProjector
OrthographicProjector(const ViewParams &p)
Definition: orthographicprojector.cpp:23
OrthographicProjector::projectionL
virtual double projectionL(double x) const
This function handles some of the projection-specific code.
Definition: orthographicprojector.cpp:45
OrthographicProjector::type
virtual SkyMap::Projection type() const
Return the type of this projection.
Definition: orthographicprojector.cpp:29
OrthographicProjector::projectionK
virtual double projectionK(double x) const
This function handles some of the projection-specific code.
Definition: orthographicprojector.cpp:39
SkyMap::Orthographic
Definition: skymap.h:98
ViewParams
This is just a container that holds infromation needed to do projections.
Definition: projector.h:37
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