Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://astro.uni-altai.ru/~aw/stellarium/api/classStelTextureBackend.html
Дата изменения: Unknown Дата индексирования: Fri Feb 28 07:42:28 2014 Кодировка: Поисковые слова: rainbow |
Stellarium 0.12.3
|
Base class for texture implementations. More...
#include <StelTextureBackend.hpp>
Public Member Functions | |
virtual | ~StelTextureBackend () |
Destroy the texture. More... | |
TextureStatus | getStatus () const |
Get the current texture status. More... | |
const QString & | getName () const |
Get the "name" of this texture. More... | |
QSize | getDimensions () const |
Get texture dimensions in pixels. More... | |
const QString & | getErrorMessage () const |
Get a human-readable message describing the error that happened during loading (if any). More... | |
Protected Member Functions | |
StelTextureBackend (const QString &path) | |
Construct a StelTextureBackend with specified texture path/url. More... | |
void | startedLoading () |
Must be called before loading an image (whether normally or asynchronously). More... | |
void | finishedLoading (const QSize dimensions) |
Must be called after succesfully loading an image (whether normally or asynchronously). More... | |
void | errorOccured (const QString &error) |
Must be called when an error occurs during loading. More... | |
Protected Attributes | |
const QString | path |
Full file system path or URL of the texture file. More... | |
Base class for texture implementations.
Definition at line 95 of file StelTextureBackend.hpp.
|
inlinevirtual |
Destroy the texture.
Definition at line 101 of file StelTextureBackend.hpp.
|
inlineprotected |
Construct a StelTextureBackend with specified texture path/url.
Note that it makes no sense to instantiate StelTextureBackend itself - it needs to be derived by a backend.
Definition at line 157 of file StelTextureBackend.hpp.
|
inlineprotected |
Must be called when an error occurs during loading.
Texture loading is the only stage when an error may occur (i.e. the texture can't just become invalid at any time). Asserts that status is loading, changes it to error, and specifies error message.
Definition at line 200 of file StelTextureBackend.hpp.
|
inlineprotected |
Must be called after succesfully loading an image (whether normally or asynchronously).
At this point, texture size is initialized and becomes valid. Asserts that status is loading and changes it to loaded.
dimensions | Size of loaded texture in pixels. |
Definition at line 185 of file StelTextureBackend.hpp.
|
inline |
Get texture dimensions in pixels.
Can only be called when the texture has been successfully loaded (this is asserted). Use getStatus() to determine whether or not this is the case.
Definition at line 130 of file StelTextureBackend.hpp.
|
inline |
Get a human-readable message describing the error that happened during loading (if any).
Definition at line 143 of file StelTextureBackend.hpp.
|
inline |
Get the "name" of this texture.
The name might be the full path if loaded from file, URL if loaded from network, or nothing at all when generated.
Definition at line 118 of file StelTextureBackend.hpp.
|
inline |
Get the current texture status.
Used e.g. to determine if the texture has been loaded or if an error has occured.
Definition at line 109 of file StelTextureBackend.hpp.
|
inlineprotected |
Must be called before loading an image (whether normally or asynchronously).
Asserts that status is uninitialized and changes it to loading.
Definition at line 170 of file StelTextureBackend.hpp.
|
protected |
Full file system path or URL of the texture file.
Definition at line 151 of file StelTextureBackend.hpp.