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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • tools
  • mapreproject
SimpleMapImage.h
Go to the documentation of this file.
1 #ifndef SIMPLEMAPIMAGE_H
2 #define SIMPLEMAPIMAGE_H
3 
4 #include "ReadOnlyMapImage.h"
5 
6 #include <QString>
7 #include <QColor>
8 #include <QImage>
9 
10 class InterpolationMethod;
11 
12 class SimpleMapImage: public ReadOnlyMapImage
13 {
14 public:
15  explicit SimpleMapImage( QString const & fileName );
16 
17  virtual QRgb pixel( double const lonRad, double const latRad );
18  virtual QRgb pixel( int const x, int const y );
19  virtual void setInterpolationMethod( InterpolationMethod * const interpolationMethod );
20 
21 private:
22  double lonRadToPixelX( double const lonRad ) const;
23  double latRadToPixelY( double const latRad ) const;
24 
25  QImage m_image;
26  int m_mapWidthPixel;
27  int m_mapHeightPixel;
28  InterpolationMethod * m_interpolationMethod;
29 };
30 
31 #endif
ReadOnlyMapImage.h
SimpleMapImage
Definition: SimpleMapImage.h:12
SimpleMapImage::pixel
virtual QRgb pixel(double const lonRad, double const latRad)
Definition: SimpleMapImage.cpp:16
InterpolationMethod
Definition: InterpolationMethod.h:8
ReadOnlyMapImage
Definition: ReadOnlyMapImage.h:8
SimpleMapImage::setInterpolationMethod
virtual void setInterpolationMethod(InterpolationMethod *const interpolationMethod)
Definition: SimpleMapImage.cpp:28
SimpleMapImage::SimpleMapImage
SimpleMapImage(QString const &fileName)
Definition: SimpleMapImage.cpp:7
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • 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