Beatmup
|
Abstract scene layer having name, type, geometry and some content to display. More...
#include <scene.h>
Public Types | |
enum class | Type { SceneLayer = 0 , BitmapLayer , MaskedBitmapLayer , ShapedBitmapLayer , ShadedBitmapLayer } |
Public Member Functions | |
Type | getType () const |
const std::string & | getName () const |
void | setName (const char *name) |
AffineMapping & | getMapping () |
const AffineMapping & | getMapping () const |
void | setMapping (const AffineMapping &mapping) |
virtual bool | testPoint (float x, float y) const |
Tests if a given point falls in the layer. More... | |
virtual Layer * | getChild (float x, float y, unsigned int recursionDepth=0) const |
Picks a child layer at given point, if any. More... | |
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 () |
Protected Member Functions | |
Layer (Type type) | |
virtual void | render (RenderingContext &context) |
Protected Attributes | |
AffineMapping | mapping |
layer mapping More... | |
bool | visible |
layer visibility More... | |
bool | phantom |
if true , layer is ignored by selection by point More... | |
Private Member Functions | |
Layer (const Layer &)=delete | |
disabling copying constructor More... | |
Private Attributes | |
Type | type |
std::string | name |
layer name More... | |
Friends | |
class | SceneRenderer |
Abstract scene layer having name, type, geometry and some content to display.
The layer geometry is defined by an AffineMapping describing the position and the orientation of the layer content in the rendered image.
|
strong |
Definition at line 68 of file scene.h.
|
privatedelete |
disabling copying constructor
|
protected |
Definition at line 238 of file scene.cpp.
|
inlineprotectedvirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Tests if a given point falls in the layer.
Reimplemented in Beatmup::Scene::ShapedBitmapLayer, Beatmup::Scene::MaskedBitmapLayer, Beatmup::Scene::BitmapLayer, and Beatmup::Scene::SceneLayer.
Definition at line 240 of file scene.cpp.
|
virtual |
Picks a child layer at given point, if any.
Reimplemented in Beatmup::Scene::SceneLayer.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
protected |
|
protected |
|
protected |