#include <mainscene.h>
Inheritance diagram for ScEng::MainScene:

Public Types | |
| enum | DATAID |
| enum | DEPENDENCIES { MAIN_NODE_DEPENDENCY = 0, DATA_TABLE_DEPENDENCY = 1, SCENE_TOOL_DEPENDENCY = 2 } |
Public Member Functions | |
| MainScene (bool create_dependencies) | |
| std::string | GetClassName () |
| BlockType | GetBlockType () |
| int | NumDependencies () |
| void | SetDependency (int id, Block *dependency) |
| Block * | GetDependency (int id) |
| std::string | GetDependencyName (int id) |
| Gets the name for the specified dependency. | |
| int | GetNumDataTables () |
| This class has no DataTables. | |
| DataTable * | GetDataTable (int id=0) |
| void | SetDataTable (DataTable *d, int i=0) |
| Sets the i_th data table. | |
| void | UpdateDataTable (int id=0) |
| This class has no DataTables. | |
| Block * | Clone () |
| Clones this object. Not implemented yetç. | |
| int | Save (SceneSave *scene_save) |
| Saves the info for this class. | |
| int | Load (SceneLoad *scene_load) |
| Loads the info for this class. | |
| void | DeleteThis () |
| Delete this class. | |
| void | ActionBegin (int time, int action) |
| void | ActionEnd (int time, int action) |
| void | Update (int time) |
| void | DependancyChanged (Block *dependancy, unsigned int message=0, unsigned int parameters=0) |
| void | AddSceneTool (ToolBlock *tool_block) |
| Adds a tool to the scene tools vector. | |
| int | GetNumSceneTools () |
| Returns the number of scene tools. | |
| ToolBlock * | GetSceneTool (int i) |
Public Attributes | |
| Node * | main_node |
| DataTable * | data_table |
| BlockVector * | scene_tools |
Static Public Attributes | |
| static BlockType | block_type |
Please add comments here
Enum DATAID Enums the Ids for the differents Data used for the material
| ScEng::MainScene::MainScene | ( | bool | create_dependencies | ) |
Constructor Sets the main node to NULL
| std::string ScEng::MainScene::GetClassName | ( | ) | [virtual] |
| BlockType ScEng::MainScene::GetBlockType | ( | ) | [virtual] |
Returns the BlockType for this class
Implements ScEng::Block.
| int ScEng::MainScene::NumDependencies | ( | ) | [virtual] |
| void ScEng::MainScene::SetDependency | ( | int | id, | |
| Block * | dependency | |||
| ) | [virtual] |
Sets a Dependency Sets the main node
| id | the id for the dependency | |
| se_block | the Block to be dependency |
Implements ScEng::Block.
| Block * ScEng::MainScene::GetDependency | ( | int | id | ) | [virtual] |
Returns a dependency
| id | the id for the dependency |
Implements ScEng::Block.
| DataTable * ScEng::MainScene::GetDataTable | ( | int | id = 0 |
) | [virtual] |
| void ScEng::MainScene::ActionBegin | ( | int | time, | |
| int | action | |||
| ) | [inline, virtual] |
Informs the block that an action will begin
| time | the time at which the action begins. more details about the action, for example, it can be a RENDER_ACTION, or a SAVE_ACTION. |
Reimplemented from ScEng::Block.
| void ScEng::MainScene::ActionEnd | ( | int | time, | |
| int | action | |||
| ) | [inline, virtual] |
Informs the block that an action will end.
| time | the time at which the action ends. more details about the action, for example, it can be a RENDER_ACTION, or a SAVE_ACTION. |
Reimplemented from ScEng::Block.
| void ScEng::MainScene::Update | ( | int | time | ) | [inline, virtual] |
Informs the block that it needs to update its data. For example, texture and material blocks usually move all their animated parameters from the data_table to int or float variables. This is specially useful when rendering, so there is no need to interpolate a data_value every time.
| time | the time at which the block needs to update its data. |
Reimplemented from ScEng::Block.
| void ScEng::MainScene::DependancyChanged | ( | Block * | dependancy, | |
| unsigned int | message = 0, |
|||
| unsigned int | parameters = 0 | |||
| ) | [inline, virtual] |
A block receives this message when one of its dependencies has changed.
| dependency | The dependancy that changed | |
| message | A message about the change |
Reimplemented from ScEng::Block.
| ToolBlock * ScEng::MainScene::GetSceneTool | ( | int | i | ) |
Returns the i-th scene tool.
| i | specifies the index of the tool to retrieve. |
BlockType ScEng::MainScene::block_type [static] |
The type of this block BlockType MainScene::block_type( BlockType::MAIN_SCENE, 0x00100000,0x00000000 )
The main node This node is the top-most node in the scene. All nodes are children of this node. This is the root-node or world in other 3d applications.
The data table of the main scene This data table holds scene attributes like ambient color and
These are tool blocks that need to be saved.
1.5.1-p1