Beatmup
|
Layer containing an entire scene. More...
#include <scene.h>
Public Member Functions | |
const Beatmup::Scene & | getScene () const |
bool | testPoint (float x, float y) const |
Tests if a given point falls in the layer. More... | |
Layer * | getChild (float x, float y, unsigned int recursionDepth=0) const |
Picks a child layer at given point, if any. More... | |
Public Member Functions inherited from Beatmup::Scene::Layer | |
Type | getType () const |
const std::string & | getName () const |
void | setName (const char *name) |
AffineMapping & | getMapping () |
const AffineMapping & | getMapping () const |
void | setMapping (const AffineMapping &mapping) |
bool | isVisible () const |
Returns layer visibility flag. More... | |
bool | isPhantom () const |
Returns true if the layer is ignored when searching a layer by point. More... | |
void | setVisible (bool visible) |
Sets layer visibility. More... | |
void | setPhantom (bool phantom) |
Makes/unmakes the layer "phantom". More... | |
template<class LayerType > | |
LayerType & | castTo () const |
Public Member Functions inherited from Beatmup::Object | |
virtual | ~Object () |
Private Member Functions | |
SceneLayer (const Beatmup::Scene &scene) | |
Private Attributes | |
const Beatmup::Scene & | scene |
Friends | |
class | Scene |
Additional Inherited Members | |
Public Types inherited from Beatmup::Scene::Layer | |
enum class | Type { SceneLayer = 0 , BitmapLayer , MaskedBitmapLayer , ShapedBitmapLayer , ShadedBitmapLayer } |
Protected Member Functions inherited from Beatmup::Scene::Layer | |
Layer (Type type) | |
virtual void | render (RenderingContext &context) |
Protected Attributes inherited from Beatmup::Scene::Layer | |
AffineMapping | mapping |
layer mapping More... | |
bool | visible |
layer visibility More... | |
bool | phantom |
if true , layer is ignored by selection by point More... | |
|
private |
|
inline |
|
virtual |
Tests if a given point falls in the layer.
Reimplemented from Beatmup::Scene::Layer.
Definition at line 251 of file scene.cpp.
|
virtual |
Picks a child layer at given point, if any.
Reimplemented from Beatmup::Scene::Layer.
Definition at line 255 of file scene.cpp.
|
private |