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

kstars

Public Slots | Public Member Functions | List of all members
ImageExporter Class Reference

#include <imageexporter.h>

Inheritance diagram for ImageExporter:
Inheritance graph
[legend]

Public Slots

bool exportImage (QString url)
 
Legend * getLegend ()
 
void includeLegend (bool include)
 
void setLegendAlpha (int alpha)
 
void setLegendProperties (Legend::LEGEND_TYPE type, Legend::LEGEND_ORIENTATION orientation, Legend::LEGEND_POSITION position, int alpha=160, bool include=true)
 
void setRasterOutputSize (const QSize *size)
 

Public Member Functions

 ImageExporter (QObject *parent)
 
 ~ImageExporter ()
 
QString getLastErrorMessage () const
 

Detailed Description

Backends for exporting a sky image, either raster or vector, with a legend.

Author
Rafał Kułaga rl.ku.nosp@m.laga.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Akarsh Simha akars.nosp@m.h.si.nosp@m.mha@k.nosp@m.dema.nosp@m.il.ne.nosp@m.t

Definition at line 35 of file imageexporter.h.

Constructor & Destructor Documentation

ImageExporter::ImageExporter ( QObject *  parent)

Constructor.

Definition at line 32 of file imageexporter.cpp.

ImageExporter::~ImageExporter ( )

Destructor.

Definition at line 262 of file imageexporter.cpp.

Member Function Documentation

bool ImageExporter::exportImage ( QString  url)
slot

Exports an image with the defined settings.

Parameters
urlURL of the exported image
Returns
false if the URL was a network location and uploading to the network location failed
Note
This method calls an SVG backend instead if the file extension is svg. Otherwise, it draws raster.

Definition at line 182 of file imageexporter.cpp.

QString ImageExporter::getLastErrorMessage ( ) const
inline
Returns
last error message

Definition at line 54 of file imageexporter.h.

Legend* ImageExporter::getLegend ( )
inlineslot
Returns
a pointer to the legend used

Definition at line 97 of file imageexporter.h.

void ImageExporter::includeLegend ( bool  include)
inlineslot

Include legend?

Parameters
includeThe legend will be included if the flag is set to true

Definition at line 79 of file imageexporter.h.

void ImageExporter::setLegendAlpha ( int  alpha)
slot

Set legend transparency.

Parameters
alphaTransparency level

Definition at line 275 of file imageexporter.cpp.

void ImageExporter::setLegendProperties ( Legend::LEGEND_TYPE  type,
Legend::LEGEND_ORIENTATION  orientation,
Legend::LEGEND_POSITION  position,
int  alpha = 160,
bool  include = true 
)
slot

Set the legend properties.

Parameters
typeLegend type. (See enum LEGEND_TYPE in legend.h)
orientationLegend orientation. (See LEGEND_ORIENTATION in legend.h)
positionLegend position. (See LEGEND_POSITION in legend.h)
alphaLegend alpha (transparency). Default value is 160.
includeInclude the legend?

Definition at line 246 of file imageexporter.cpp.

void ImageExporter::setRasterOutputSize ( const QSize *  size)
slot

Set the size of output raster images.

Parameters
sizea pointer to a QSize containing the size of images. If a null pointer is supplied, the SkyMap size is used.
Note
If size is larger than the skymap size, then the sky image is padded; if it is smaller, then it is cropped. No rescaling is done.

Definition at line 267 of file imageexporter.cpp.


The documentation for this class was generated from the following files:
  • imageexporter.h
  • imageexporter.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