Beatmup
|
An ordered set of layers representing a renderable content. More...
#include <scene.h>
Classes | |
class | BitmapLayer |
Layer having an image to render. More... | |
class | CustomMaskedBitmapLayer |
Layer containing a bitmap and a mask applied to the bitmap when rendering. More... | |
class | Layer |
Abstract scene layer having name, type, geometry and some content to display. More... | |
class | MaskedBitmapLayer |
Bitmap layer using another bitmap as a mask. More... | |
class | SceneIntegrityError |
class | SceneLayer |
Layer containing an entire scene. More... | |
class | ShadedBitmapLayer |
Bitmap layer using a custom shader. More... | |
class | ShapedBitmapLayer |
Layer containing a bitmap and a parametric mask (shape) More... | |
Public Member Functions | |
Scene () | |
~Scene () | |
BitmapLayer & | newBitmapLayer (const char *name) |
BitmapLayer & | newBitmapLayer () |
MaskedBitmapLayer & | newMaskedBitmapLayer (const char *name) |
MaskedBitmapLayer & | newMaskedBitmapLayer () |
ShapedBitmapLayer & | newShapedBitmapLayer (const char *name) |
ShapedBitmapLayer & | newShapedBitmapLayer () |
ShadedBitmapLayer & | newShadedBitmapLayer (const char *name) |
ShadedBitmapLayer & | newShadedBitmapLayer () |
SceneLayer & | addScene (const Scene &scene) |
Adds a subscene to the current scene. More... | |
Layer * | getLayer (const char *name) const |
Retrieves a layer by its name or null if not found. More... | |
Layer & | getLayer (int index) const |
Retrieves a layer by its index. More... | |
Layer * | getLayer (float x, float y, unsigned int recursionDepth=0) const |
Retrieves a layer present at a specific point of the scene or null if not found. More... | |
int | getLayerIndex (const Layer &layer) const |
Returns layer index in the scene or -1 if not found. More... | |
int | getLayerCount () const |
Returns total number of layers in the scene. More... | |
bool | resolveMapping (const Layer &layer, AffineMapping &mapping) const |
Computes absolute mapping of a given layer with respect to the scene mapping. More... | |
void | attachLayer (Layer &layer) |
Attaches an existing layer to the scene. More... | |
Layer * | detachLayer (int index) |
Detaches a layer from the scene. More... | |
Public Member Functions inherited from Beatmup::LockableObject | |
void | lock () |
void | unlock () |
Public Member Functions inherited from Beatmup::Object | |
virtual | ~Object () |
Private Member Functions | |
template<class Type > | |
Type & | newLayer (const char *name) |
Private Attributes | |
std::vector< Layer * > | layers |
scene layers More... | |
|
inlineprivate |
Scene::BitmapLayer & Scene::newBitmapLayer | ( | const char * | name | ) |
Scene::BitmapLayer & Scene::newBitmapLayer | ( | ) |
Definition at line 120 of file scene.cpp.
Scene::MaskedBitmapLayer & Scene::newMaskedBitmapLayer | ( | const char * | name | ) |
Scene::MaskedBitmapLayer & Scene::newMaskedBitmapLayer | ( | ) |
Definition at line 130 of file scene.cpp.
Scene::ShapedBitmapLayer & Scene::newShapedBitmapLayer | ( | const char * | name | ) |
Scene::ShapedBitmapLayer & Scene::newShapedBitmapLayer | ( | ) |
Definition at line 140 of file scene.cpp.
Scene::ShadedBitmapLayer & Scene::newShadedBitmapLayer | ( | const char * | name | ) |
Scene::ShadedBitmapLayer & Scene::newShadedBitmapLayer | ( | ) |
Definition at line 150 of file scene.cpp.
Scene::SceneLayer & Scene::addScene | ( | const Scene & | scene | ) |
Scene::Layer * Scene::getLayer | ( | const char * | name | ) | const |
Scene::Layer & Scene::getLayer | ( | int | index | ) | const |
Scene::Layer * Scene::getLayer | ( | float | x, |
float | y, | ||
unsigned int | recursionDepth = 0 |
||
) | const |
int Scene::getLayerIndex | ( | const Layer & | layer | ) | const |
int Scene::getLayerCount | ( | ) | const |
bool Scene::resolveMapping | ( | const Layer & | layer, |
AffineMapping & | mapping | ||
) | const |
void Scene::attachLayer | ( | Layer & | layer | ) |
Attaches an existing layer to the scene.
Definition at line 224 of file scene.cpp.
Scene::Layer * Scene::detachLayer | ( | int | index | ) |
|
private |