#include <camera.h>
Inheritance diagram for ScEng::Camera:

Public Member Functions | |
| Camera (bool create_dependencies) | |
| ~Camera () | |
| Destructor. | |
| std::string | GetClassName () |
| BlockType | GetBlockType () |
| Node * | GetTarget () |
| float | GetFov (int t) |
| Returns the field of view value. | |
| int | GetOrtho (int t) |
| Returns the ortho value. | |
| int | GetUseClip (int t) |
| Returns the use_clip value. | |
| float | GetNearClip (int t) |
| Returns the near_clip_value. | |
| float | GetFarClip (int t) |
| Returns the far_clip_value. | |
| void | SetTarget (Node *node) |
| void | SetFov (float fov_val, int t) |
| Sets the value for the field of view variable. | |
| void | SetOrtho (int ortho_val, int t) |
| Sets the value for the ortho variable. | |
| void | SetUseClip (int useclip_val, int t) |
| Sets the value for the use_clip variable. | |
| void | SetNearClip (float nearclip_val, int t) |
| Sets the value for the near_clip variable. | |
| void | SetFarClip (float farclip_val, int t) |
| Sets the value for the far_clip variable. | |
| int | NumDependencies () |
| void | SetDependency (int id, Block *se_block) |
| Block * | GetDependency (int id) |
| std::string | GetDependencyName (int id) |
| Gets the name for the specified dependency. | |
| int | GetNumDataTables () |
| DataTable * | GetDataTable (int id=0) |
| Returns the DataTable for this class. | |
| void | SetDataTable (DataTable *d, int i=0) |
| Sets the i_th data table. | |
| void | UpdateDataTable (int id=0) |
| Updates the indexes for the DataTable. | |
| int | Save (SceneSave *scene_save) |
| Saves the info of this class. | |
| int | Load (SceneLoad *scene_load) |
| Loads the info of this class. | |
| void | DeleteThis () |
| Delete this class. | |
| void | ActionBegin (int time, int action) |
| void | ActionEnd (int time, int action) |
| void | Update (int time) |
| Block * | Clone () |
Static Public Attributes | |
| static BlockType | block_type |
| ScEng::Camera::Camera | ( | bool | create_dependencies | ) |
Constructor Sets the target to NULL
| std::string ScEng::Camera::GetClassName | ( | ) | [virtual] |
| BlockType ScEng::Camera::GetBlockType | ( | ) | [virtual] |
| Node * ScEng::Camera::GetTarget | ( | ) | [virtual] |
Returns the target of the camera
Implements ScEng::CameraObject.
| void ScEng::Camera::SetTarget | ( | Node * | node | ) | [virtual] |
Sets the target for the camera the target using MakeDependencyByID
| node | the node to be used as target |
Implements ScEng::CameraObject.
| int ScEng::Camera::NumDependencies | ( | ) | [virtual] |
| void ScEng::Camera::SetDependency | ( | int | id, | |
| Block * | se_block | |||
| ) | [virtual] |
Sets a dependency the id is CAMERA_TARGET_DEPENDENCY, the given block is assigned to the camera target. If is DATA_TABLE_DEPENDENCY sets the DataTable
| id | the id for the dependency | |
| se_block | the Block to be dependency |
Implements ScEng::Block.
| Block * ScEng::Camera::GetDependency | ( | int | id | ) | [virtual] |
Returns a dependency
| id | the id for the dependency |
Implements ScEng::Block.
| int ScEng::Camera::GetNumDataTables | ( | ) | [virtual] |
Returns the number of DataTables used for this class
Reimplemented from ScEng::Block.
| void ScEng::Camera::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::Camera::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::Camera::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.
| Block * ScEng::Camera::Clone | ( | ) | [virtual] |
Creates a copy of this object and return it. The caller of this function is responsible to add this block to the DAG or to delete it.
Implements ScEng::Block.
BlockType ScEng::Camera::block_type [static] |
The type of this block BlockType Camera::block_type( BlockType::CAMERA, 0x00700000,0x00000000 );
1.5.1-p1