TDME2 1.9.121
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
SceneEntity Class Referencefinal

Scene entity definition. More...

#include <tdme/engine/scene/SceneEntity.h>

Inheritance diagram for SceneEntity:
Inheritance graph
Collaboration diagram for SceneEntity:
Collaboration graph

Public Member Functions

 SceneEntity (const string &id, const string &description, const Transformations &transformations, Prototype *prototype)
 Public constructor. More...
 
 ~SceneEntity ()
 Destructor. More...
 
const string & getId ()
 
void setId (const string &id)
 Set id. More...
 
const string & getDescription ()
 
void setDescription (const string &description)
 Set description. More...
 
TransformationsgetTransformations ()
 
PrototypegetPrototype ()
 
void setPrototype (Prototype *prototype)
 Set up prototype. More...
 
const string & getReflectionEnvironmentMappingId ()
 
void setReflectionEnvironmentMappingId (const string &reflectionEnvironmentMappingId)
 
const BaseProperties getTotalProperties ()
 
- Public Member Functions inherited from BaseProperties
 BaseProperties (const string &name, const string &description)
 Public constructor. More...
 
virtual ~BaseProperties ()
 Destructor. More...
 
const string & getName ()
 
void setName (const string &name)
 Set up name. More...
 
const string & getDescription ()
 
void setDescription (const string &description)
 Set up description. More...
 
void clearProperties ()
 Clears properties. More...
 
BasePropertygetProperty (const string &name)
 Retrieve property by name. More...
 
int getPropertyCount ()
 
int getPropertyIndex (const string &name)
 Get property index. More...
 
BasePropertygetPropertyByIndex (int idx)
 Get property by index. More...
 
bool addProperty (const string &name, const string &value)
 Add a property. More...
 
bool renameProperty (const string &oldName, const string &name)
 Rename a property. More...
 
bool updateProperty (const string &oldName, const string &name, const string &value)
 Update a property. More...
 
bool removeProperty (const string &name)
 Removes a property. More...
 

Private Attributes

Transformations transformations
 
Prototypeprototype { nullptr }
 
string reflectionEnvironmentMappingId
 

Additional Inherited Members

- Protected Attributes inherited from BaseProperties
string name
 
string description
 

Detailed Description

Scene entity definition.

Author
Andreas Drewke
Version
$Id$

Definition at line 22 of file SceneEntity.h.

Constructor & Destructor Documentation

◆ SceneEntity()

SceneEntity ( const string &  id,
const string &  description,
const Transformations transformations,
Prototype prototype 
)

Public constructor.

Parameters
idid
descriptiondescription
transformationstransformations
prototypeprototype

Definition at line 19 of file SceneEntity.cpp.

◆ ~SceneEntity()

Destructor.

Definition at line 25 of file SceneEntity.cpp.

Member Function Documentation

◆ getDescription()

const string & getDescription ( )
inline
Returns
description

Definition at line 63 of file SceneEntity.h.

◆ getId()

const string & getId ( )
inline
Returns
id

Definition at line 48 of file SceneEntity.h.

◆ getPrototype()

Prototype * getPrototype ( )
inline
Returns
prototype

Definition at line 85 of file SceneEntity.h.

◆ getReflectionEnvironmentMappingId()

const string & getReflectionEnvironmentMappingId ( )
inline
Returns
reflection environment mapping id

Definition at line 100 of file SceneEntity.h.

◆ getTotalProperties()

const BaseProperties getTotalProperties ( )
Returns
merged properties from entity and object

Definition at line 28 of file SceneEntity.cpp.

◆ getTransformations()

Transformations & getTransformations ( )
inline
Returns
transformations

Definition at line 78 of file SceneEntity.h.

◆ setDescription()

void setDescription ( const string &  description)
inline

Set description.

Parameters
descriptiondescription

Definition at line 71 of file SceneEntity.h.

◆ setId()

void setId ( const string &  id)
inline

Set id.

Parameters
idid

Definition at line 56 of file SceneEntity.h.

◆ setPrototype()

void setPrototype ( Prototype prototype)
inline

Set up prototype.

Parameters
prototypeprototype

Definition at line 93 of file SceneEntity.h.

◆ setReflectionEnvironmentMappingId()

void setReflectionEnvironmentMappingId ( const string &  reflectionEnvironmentMappingId)
inline
Returns
reflection environment mapping id

Definition at line 107 of file SceneEntity.h.

Member Data Documentation

◆ prototype

Prototype* prototype { nullptr }
private

Definition at line 27 of file SceneEntity.h.

◆ reflectionEnvironmentMappingId

string reflectionEnvironmentMappingId
private

Definition at line 28 of file SceneEntity.h.

◆ transformations

Transformations transformations
private

Definition at line 26 of file SceneEntity.h.


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