#include <SceneC.h>
Inheritance diagram for SceneC:
Public Methods | |
virtual Edit::DataBlockI * | create () |
Creates new, empty scene. | |
virtual Edit::DataBlockI * | create (Edit::EditableI *pOriginal) |
Creates new scene (used internally), see Edit::EditableI::create(). | |
virtual void | copy (Edit::EditableI *pEditable) |
Deep copy from a data block, see Edit::DataBlockI::copy(). | |
virtual void | restore (Edit::EditableI *pEditable) |
Shallow copy from a editable, see Edit::EditableI::restore(). | |
void | set_name (const char *szName) |
Sets the name of the scene. | |
const char * | get_name () const |
Returns the name of the scene. | |
PajaTypes::uint32 | get_layer_count () |
Returns number of layers in the scene. | |
LayerC * | get_layer (PajaTypes::uint32 ui32Index) |
Returns a layer at specified index. | |
LayerC * | add_layer () |
Adds new layer to the scene. | |
void | del_layer (PajaTypes::uint32 ui32Index) |
Deletes a layer at specified index. | |
void | move_layer_before (PajaTypes::uint32 ui32Index, PajaTypes::uint32 ui32IndexBefore) |
Moves the order of a layer. | |
PajaTypes::int32 | get_beats_per_min () |
Returns number of beats per minute (BPM) of the demo. | |
void | set_beats_per_min (PajaTypes::int32 i32BeatsPerMin) |
Sets number of beats per minute (BPM) of the demo. | |
PajaTypes::int32 | get_edit_accuracy () |
Returns the edit accuracy of the demo. | |
void | set_edit_accuracy (PajaTypes::int32 i32Accuracy) |
Sets the edit accuracy of the demo. | |
PajaTypes::int32 | get_beats_per_measure () |
Returns number of beats per measure of the demo. | |
void | set_beats_per_measure (PajaTypes::int32 i32Beats) |
Sets number of beats per measure of the demo. | |
PajaTypes::int32 | get_qnotes_per_beat () |
Returns number of quater-notes per beat. | |
void | set_qnotes_per_beat (PajaTypes::int32 i32QNotes) |
Sets number of quater-notes per beat. | |
PajaTypes::int32 | get_music_start_time () const |
Returns the start time of the music. | |
void | set_music_start_time (PajaTypes::int32 i32Time) |
Sets the start time of the music. | |
PajaTypes::int32 | get_time () const |
Returns the current time. | |
void | set_time (PajaTypes::int32 i32Time) |
Sets the current time. | |
PajaTypes::int32 | get_duration () |
Returns the duration of the demo. | |
void | set_duration (PajaTypes::int32 i32Duration) |
Sets the duration of the demo. | |
PajaTypes::int32 | get_layout_width () |
Returns the width of the layout in pixels. | |
void | set_layout_width (PajaTypes::int32 i32Width) |
Sets the width of the layout in pixels. | |
PajaTypes::int32 | get_layout_height () |
Returns the height of the layout in pixels. | |
void | set_layout_height (PajaTypes::int32 i32Height) |
Sets the height of the layout in pixels. | |
const PajaTypes::ColorC & | get_layout_color () const |
Returns the layout color. | |
void | set_layout_color (const PajaTypes::ColorC &rCol) |
Sets the layout color. | |
PajaTypes::uint32 | get_marker_count () const |
Returns the number of markers. | |
PajaTypes::int32 | get_marker_time (PajaTypes::uint32 ui32Index) const |
Returns the time of the specified marker. | |
const char * | get_marker_name (PajaTypes::uint32 ui32Index) const |
Returns the name of the specified marker. | |
void | set_marker_time (PajaTypes::uint32 ui32Index, PajaTypes::int32 i32Time) |
Sets the time of the specified marker. | |
void | set_marker_name (PajaTypes::uint32 ui32Index, const char *szName) |
Sets the name of the specified marker. | |
void | add_marker (PajaTypes::int32 i32Time, const char *szName) |
Adds new marker at specified time. | |
void | del_marker (PajaTypes::uint32 ui32Index) |
Removes the specified marker. | |
void | sort_markers () |
Sorts markers (time). | |
void | initialize (PajaTypes::uint32 ui32Reason, PajaSystem::DeviceContextC *pContext, PajaSystem::TimeContextC *pTimeContext) |
Relays the initialise for all effects in a scene. | |
PajaTypes::uint32 | save (FileIO::SaveC *pSave) |
Serialize the key to a Demopaja output stream. | |
PajaTypes::uint32 | load (FileIO::LoadC *pLoad) |
Serialize the key from a Demopaja input stream. | |
PajaTypes::uint32 | load (FileIO::LoadC *pLoad, bool bMerge) |
Serialize the key from a Demopaja input stream with merge to old scnene. | |
Static Public Methods | |
SceneC * | create_new () |
Creates new, empty scene. | |
Protected Methods | |
SceneC () | |
Default constructor. | |
SceneC (Edit::EditableI *pOriginal) | |
Constructor with reference to the original. | |
virtual | ~SceneC () |
Default destructor. |
The base of the demo in Demopaja is scene. The layers are store inside the scene. Scene also contains information about the size of the canvas where the demo is shown and the speed of the demo.
The changes made to the scene is saved to a undo object if present.
This class is implemented by the system.
|
Default constructor.
|
|
Constructor with reference to the original.
|
|
Default destructor.
|
|
Adds new layer to the scene.
|
|
Adds new marker at specified time.
|
|
Deep copy from a data block, see Edit::DataBlockI::copy().
Implements EditableI. |
|
Creates new scene (used internally), see Edit::EditableI::create().
Implements EditableI. |
|
Creates new, empty scene.
Implements EditableI. |
|
Creates new, empty scene.
|
|
Deletes a layer at specified index.
|
|
Removes the specified marker.
|
|
Returns number of beats per measure of the demo.
|
|
Returns number of beats per minute (BPM) of the demo.
|
|
Returns the duration of the demo. The return value is number of quater-notes multiplied by 256. |
|
Returns the edit accuracy of the demo.
|
|
Returns a layer at specified index.
|
|
Returns number of layers in the scene.
|
|
Returns the layout color.
|
|
Returns the height of the layout in pixels.
|
|
Returns the width of the layout in pixels.
|
|
Returns the number of markers.
|
|
Returns the name of the specified marker.
|
|
Returns the time of the specified marker.
|
|
Returns the start time of the music.
|
|
Returns the name of the scene.
|
|
Returns number of quater-notes per beat.
|
|
Returns the current time.
|
|
Relays the initialise for all effects in a scene.
|
|
Serialize the key from a Demopaja input stream with merge to old scnene.
|
|
Serialize the key from a Demopaja input stream.
Implements EditableI. |
|
Moves the order of a layer.
|
|
Shallow copy from a editable, see Edit::EditableI::restore().
Implements EditableI. |
|
Serialize the key to a Demopaja output stream.
Implements EditableI. |
|
Sets number of beats per measure of the demo.
|
|
Sets number of beats per minute (BPM) of the demo.
|
|
Sets the duration of the demo.
|
|
Sets the edit accuracy of the demo.
|
|
Sets the layout color.
|
|
Sets the height of the layout in pixels.
|
|
Sets the width of the layout in pixels.
|
|
Sets the name of the specified marker.
|
|
Sets the time of the specified marker.
|
|
Sets the start time of the music.
|
|
Sets the name of the scene.
|
|
Sets number of quater-notes per beat.
|
|
Sets the current time.
|
|
Sorts markers (time).
|