#include <dataint.h>
Inheritance diagram for ScEng::DataInt:

Public Types | |
| enum | CHUNKS { ID_CHUNKID = 0x00000010, DEFAULT_VALUE_CHUNKID = 0x00000015, DATA_CHUNKID = 0x00000025, ANIMATION_CONTROL_CHUNKID = 0x00000030 } |
| Enum Chunks. More... | |
Public Member Functions | |
| DataInt (int iid, int dv, int size) | |
| Constructor. | |
| void | GetValue (float &value, int time, int item=0) |
| Virtual method. | |
| void | GetValue (bool &value, int time, int item=0) |
| Virtual method. | |
| void | GetValue (int &value, int time, int item=0) |
| Get a specified value. | |
| void | GetValue (GMT::Point3F &value, int time, int item=0) |
| Virtual method. | |
| void | GetValue (GMT::Point3I &value, int time, int item=0) |
| Virtual method. | |
| void | GetValue (GMT::Color &value, int time, int item=0) |
| Virtual method. | |
| std::string | GetName () |
| Returns the name for this Data. | |
| Controller * | GetController (int item=0) |
| Gets the animation controller. Not implemented yet. | |
| void | SetValue (float &value, int time, int item=0) |
| Virtual method. | |
| void | SetValue (bool &value, int time, int item=0) |
| Virtual method. | |
| void | SetValue (int &value, int time, int item=0) |
| Set a specified value. | |
| void | SetValue (GMT::Point3F &value, int time, int item=0) |
| Virtual method. | |
| void | SetValue (GMT::Point3I &value, int time, int item=0) |
| Virtual method. | |
| void | SetValue (GMT::Color &value, int time, int item=0) |
| Virtual method. | |
| void | SetName (std::string data_name) |
| Sets the name for this Data. | |
| void | SetController (Controller *control, int item=0) |
| Sets the Controller. Not implemented yet. | |
| int | GetInt (int time, int item=0) |
| Returns the specified value. | |
| float | GetFloat (int time, int item=0) |
| Virtual method. | |
| bool | GetBool (int time, int item=0) |
| Virtual method. | |
| GMT::Point3F | GetPoint3F (int time, int item=0) |
| Virtual method. | |
| GMT::Point3I | GetPoint3I (int time, int item=0) |
| Virtual method. | |
| GMT::Color | GetColor (int time, int item=0) |
| Virtual method. | |
| int | GetType () |
| Returns the type for this data. | |
| std::string | GetClassName () |
| Returns the name for this class. | |
| BlockType | GetBlockType () |
| Returns the BlockType for this class. | |
| int | NumDependencies () |
| This class has no Dependencies. | |
| void | SetDependency (int id, Block *dependency) |
| This class has no Dependencies. | |
| Block * | GetDependency (int id) |
| This class has no Dependencies. | |
| std::string | GetDependencyName (int id) |
| Gets the name for the specified dependency. | |
| int | GetNumDataTables () |
| This class has no DataTables. | |
| DataTable * | GetDataTable (int id=0) |
| This class has no DataTables. | |
| 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 () |
| Creates a copy of this object and return it. | |
| int | Save (SceneSave *scene_save) |
| Saves the info for this class. | |
| int | Load (SceneLoad *scene_load) |
| Loads the info for this class. | |
| void | DeleteThis () |
| Deletes this class. | |
| void | ActionBegin (int time, int action) |
| void | ActionEnd (int time, int action) |
| void | Update (int time) |
| void | GetValidTimeRange (TimeInterval &valid_time_range) |
| Intersects the valid_time_range of this data with the valid_time_range in the argument. | |
Public Attributes | |
| int | default_value |
| Default value. | |
| TimeInterval | valid_time_range |
| This Data is valid during this time valid_time_range. | |
Static Public Attributes | |
| static BlockType | block_type |
Enum Chunks.
Enums the chunks used for this class.
| ID_CHUNKID | ID chunk |
| DEFAULT_VALUE_CHUNKID | Default value chunk |
| DATA_CHUNKID | Data chunk |
| ANIMATION_CONTROL_CHUNKID | Animation control chunk |
| ScEng::DataInt::DataInt | ( | int | iid, | |
| int | dv, | |||
| int | size | |||
| ) |
| void ScEng::DataInt::GetValue | ( | int & | value, | |
| int | time, | |||
| int | item = 0 | |||
| ) | [virtual] |
Get a specified value.
| value | here will be stored the required data | |
| time | the time to get the value | |
| item | the specified item. Is zero by default |
Implements ScEng::Data.
| std::string ScEng::DataInt::GetName | ( | ) | [virtual] |
| void ScEng::DataInt::SetValue | ( | int & | value, | |
| int | time, | |||
| int | item = 0 | |||
| ) | [virtual] |
Set a specified value.
| value | this is the value that will be set | |
| time | the time to set the value | |
| item | the specified item. Is zero by default |
Implements ScEng::Data.
| void ScEng::DataInt::SetName | ( | std::string | data_name | ) | [virtual] |
| int ScEng::DataInt::GetType | ( | ) | [virtual] |
| std::string ScEng::DataInt::GetClassName | ( | ) | [virtual] |
| BlockType ScEng::DataInt::GetBlockType | ( | ) | [virtual] |
Returns the BlockType for this class.
Implements ScEng::Block.
| int ScEng::DataInt::NumDependencies | ( | ) | [virtual] |
| Block * ScEng::DataInt::GetDependency | ( | int | id | ) | [virtual] |
| DataTable* ScEng::DataInt::GetDataTable | ( | int | id = 0 |
) | [inline, virtual] |
| Block * ScEng::DataInt::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.
| void ScEng::DataInt::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::DataInt::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::DataInt::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.
BlockType ScEng::DataInt::block_type [static] |
The type of this block BlockType DataInt::block_type( BlockType::DATA, 0x01000000,0x00000010 )
1.5.1-p1