• 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
  • fitsviewer
fitsoverlay.h
Go to the documentation of this file.
1 #ifndef FITSOVERLAY_H
2 #define FITSOVERLAY_H
3 
4 /* FITS Overlay
5  Copyright (C) 2012 Jasem Mutlaq (mutlaqja@ikarustech.com)
6 
7  This application is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  */
13 
14 #include <QPixmap>
15 #include <KIO/Job>
16 #include <QFile>
17 
18 #include "dms.h"
19 
20 class FITSImage;
21 class SkyPoint;
22 class SkyObject;
23 
24 typedef struct
25 {
26  FITSImage *image_data;
27  dms ra, dec;
28  int pix_width, pix_height;
29  QPixmap pix;
30 } FOverlay;
31 
32 class FITSOverlay : public QObject
33 {
34  Q_OBJECT
35 
36 public:
37  FITSOverlay();
38 
39  ~FITSOverlay();
40 
41  void addFITSOverlay(const dms &ra, const dms &dec, const KUrl &imageURL);
42  //void removeFITSOverlay(const SkyPoint *clickedPoint);
43 
44  //const QPixmap *getPixmap() { return &pix;}
45  //const SkyPoint *getCoord() { return coord; }
46 
47  bool contains(const dms &ra, const dms &dec);
48 
49  QList<FOverlay*> getOverlays() { return fList; }
50 
51 
52 
53 private:
54 
55  void loadImageFromURL();
56  void openImage();
57 
58  KUrl m_ImageUrl;
59  KIO::Job *downloadJob; // download job of image -> 0 == no job is running
60  QString filename;
61  QFile file;
62  dms ra, dec;
63 
64 
65 
66 
67  QList<FOverlay*> fList;
68 
69 private slots:
71  void downloadReady (KJob *);
72 
73 };
74 
75 #endif // FITSOVERLAY_H
FOverlay::pix
QPixmap pix
Definition: fitsoverlay.h:29
FITSImage
Definition: fitsimage.h:73
FOverlay::ra
dms ra
Definition: fitsoverlay.h:27
QObject
FOverlay::image_data
FITSImage * image_data
Definition: fitsoverlay.h:26
dms.h
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
FOverlay::pix_width
int pix_width
Definition: fitsoverlay.h:28
dms
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:42
FOverlay
Definition: fitsoverlay.h:24
SkyPoint::dec
const dms & dec() const
Definition: skypoint.h:174
FITSOverlay::FITSOverlay
FITSOverlay()
Definition: fitsoverlay.cpp:18
FITSOverlay::contains
bool contains(const dms &ra, const dms &dec)
Definition: fitsoverlay.cpp:145
FITSOverlay::~FITSOverlay
~FITSOverlay()
Definition: fitsoverlay.cpp:43
FITSOverlay::addFITSOverlay
void addFITSOverlay(const dms &ra, const dms &dec, const KUrl &imageURL)
Definition: fitsoverlay.cpp:22
FITSOverlay
Definition: fitsoverlay.h:32
FITSOverlay::getOverlays
QList< FOverlay * > getOverlays()
Definition: fitsoverlay.h:49
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
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 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