Stellarium 0.12.2
List of all members | Signals | Public Member Functions
StelHTTPTextureLoader Class Reference

Texture loader that loads an image from the web. More...

#include <StelTextureLoader.hpp>

Signals

void finished (QImage)
 Emitted when image loading is finished, sending loaded image. More...
 
- Signals inherited from StelTextureLoader
void error (const QString &errorMsg)
 Emitted when an error occurs during image loading, specifying error message. More...
 

Public Member Functions

 StelHTTPTextureLoader (const QString &url, int delay, QThread *loaderThread)
 Construct a StelHTTPTextureLoader. More...
 
virtual void abort ()
 Abort texture loading (for example when destroying a texture that's still loading). More...
 

Additional Inherited Members

- Protected Member Functions inherited from StelTextureLoader
 StelTextureLoader (QThread *loaderThread)
 Construct a StelTextureLoader loading in specified thread. More...
 
void moveToLoaderThread ()
 Move the loader to its thread (after setting up image loading). More...
 

Detailed Description

Texture loader that loads an image from the web.

Note
This is an internal class of the Renderer subsystem and should not be used elsewhere.

Definition at line 78 of file StelTextureLoader.hpp.

Constructor & Destructor Documentation

StelHTTPTextureLoader::StelHTTPTextureLoader ( const QString &  url,
int  delay,
QThread *  loaderThread 
)
inline

Construct a StelHTTPTextureLoader.

Parameters
urlURL of the image to load the texture from.
delayDelay when to start loading in milliseconds.
loaderThreadThread in which the loader will run.

Definition at line 88 of file StelTextureLoader.hpp.

Member Function Documentation

virtual void StelHTTPTextureLoader::abort ( )
inlinevirtual

Abort texture loading (for example when destroying a texture that's still loading).

Can only be called from the main thread.

Reimplemented from StelTextureLoader.

Definition at line 96 of file StelTextureLoader.hpp.

void StelHTTPTextureLoader::finished ( QImage  )
signal

Emitted when image loading is finished, sending loaded image.


The documentation for this class was generated from the following file: