Kage Studio 0.7.230612
A Simple Free and Open Source 2D Animation Software
|
#include <scene.h>
Public Member Functions | |
KageScene (KageDocument *p_document, string p_filepath) | |
bool | open (string p_filepath) |
bool | save () |
bool | isSelected () |
bool | isSaved () |
KageScene (KageDocument *p_document) | |
KageScene (KageDocument *p_document, KageScene *p_scene) | |
virtual | ~KageScene () |
void | addLayer (unsigned int p_layer) |
void | deleteFrameset (unsigned int p_layer) |
bool | addFrame () |
bool | extendFrame () |
bool | duplicateFrame () |
bool | removeFrame () |
void | setCurrentFrame (unsigned int p_frame) |
void | setCurrentFrameByID (unsigned int p_frameID) |
unsigned int | getCurrentFrame () |
void | setCurrentLayer (unsigned int p_currentLayer) |
void | setCurrentLayerByID (unsigned int p_layerID) |
unsigned int | getCurrentLayer () |
unsigned int | layerCount () |
unsigned int | frameCount () |
void | selectAll (bool p_selectAll) |
KageFrame * | getFrame () |
KageFrame * | getFrameAt (unsigned int p_frame) |
KageLayer * | getLayer () |
KageLayer * | getLayerAt (unsigned int p_layer) |
void | renderStage () |
bool | removeAllFrames () |
bool | moveToTop () |
bool | moveUp () |
bool | moveDown () |
bool | moveToBottom () |
vector< unsigned int > | raiseSelectedShape (vector< unsigned int > p_selectedShapes) |
vector< unsigned int > | lowerSelectedShape (vector< unsigned int > p_selectedShapes) |
vector< unsigned int > | raiseToTopSelectedShape (vector< unsigned int > p_selectedShapes) |
vector< unsigned int > | lowerToBottomSelectedShape (vector< unsigned int > p_selectedShapes) |
vector< unsigned int > | groupSelectedShapes (vector< unsigned int > p_selectedShapes) |
vector< unsigned int > | ungroupSelectedShapes (vector< unsigned int > p_selectedShapes) |
vector< unsigned int > | duplicateShapes (vector< unsigned int > p_selectedShapes) |
bool | flipHorizontalSelectedShape (vector< unsigned int > p_selectedShapes) |
bool | flipVerticalSelectedShape (vector< unsigned int > p_selectedShapes) |
bool | recenterRotationPoint (vector< unsigned int > p_selectedShapes) |
bool | addDataToFrame (VectorDataManager p_vectorsData) |
bool | setFrameData (VectorDataManager p_vectorsData) |
VectorDataManager | getFrameData () |
VectorDataManager | getFrameDataAt (unsigned int p_frame) |
bool | forceSetTween (unsigned int p_tween) |
NOTE: "Frame" – NOT "frame ID". | |
bool | setTween (unsigned int p_tween) |
unsigned int | getTween () |
bool | switchToPreviousFrame () |
bool | switchToPreviousFrame (unsigned int p_frameID) |
Called by Kage for navigating to Previous Frame. | |
bool | switchToNextFrame () |
Called by KageFrame for navigating to Previous Frame. | |
bool | switchToNextFrame (unsigned int p_frameID) |
Called by Kage for navigating to Next Frame. | |
void | setFrameExtension (KageFrame::extension p_extension) |
Called by KageFrame for navigating to Next Frame. | |
unsigned int | getActiveLayerID () |
void | setActiveLayerID (unsigned int p_layerID) |
Data Fields | |
vector< KageLayer * > | Layers |
KageDocument * | _document |
KageScene * | _parent |
Static Public Attributes | |
static bool | LOADING_MODE = false |
Protected Member Functions | |
void | init (KageDocument *p_document) |
Protected Attributes | |
unsigned int | ID |
bool | _selected |
bool | _saved |
unsigned int | _activeLayer |
KageScene::KageScene | ( | KageDocument * | p_document, |
string | p_filepath | ||
) |
KageScene::KageScene | ( | KageDocument * | p_document | ) |
KageScene::KageScene | ( | KageDocument * | p_document, |
KageScene * | p_scene | ||
) |
|
virtual |
bool KageScene::addDataToFrame | ( | VectorDataManager | p_vectorsData | ) |
bool KageScene::addFrame | ( | ) |
void KageScene::addLayer | ( | unsigned int | p_layer | ) |
void KageScene::deleteFrameset | ( | unsigned int | p_layer | ) |
bool KageScene::duplicateFrame | ( | ) |
vector< unsigned int > KageScene::duplicateShapes | ( | vector< unsigned int > | p_selectedShapes | ) |
bool KageScene::extendFrame | ( | ) |
bool KageScene::flipHorizontalSelectedShape | ( | vector< unsigned int > | p_selectedShapes | ) |
bool KageScene::flipVerticalSelectedShape | ( | vector< unsigned int > | p_selectedShapes | ) |
bool KageScene::forceSetTween | ( | unsigned int | p_tween | ) |
NOTE: "Frame" – NOT "frame ID".
unsigned int KageScene::frameCount | ( | ) |
unsigned int KageScene::getActiveLayerID | ( | ) |
unsigned int KageScene::getCurrentFrame | ( | ) |
unsigned int KageScene::getCurrentLayer | ( | ) |
KageFrame * KageScene::getFrame | ( | ) |
KageFrame * KageScene::getFrameAt | ( | unsigned int | p_frame | ) |
VectorDataManager KageScene::getFrameData | ( | ) |
VectorDataManager KageScene::getFrameDataAt | ( | unsigned int | p_frame | ) |
KageLayer * KageScene::getLayer | ( | ) |
KageLayer * KageScene::getLayerAt | ( | unsigned int | p_layer | ) |
unsigned int KageScene::getTween | ( | ) |
vector< unsigned int > KageScene::groupSelectedShapes | ( | vector< unsigned int > | p_selectedShapes | ) |
|
protected |
bool KageScene::isSaved | ( | ) |
bool KageScene::isSelected | ( | ) |
unsigned int KageScene::layerCount | ( | ) |
vector< unsigned int > KageScene::lowerSelectedShape | ( | vector< unsigned int > | p_selectedShapes | ) |
vector< unsigned int > KageScene::lowerToBottomSelectedShape | ( | vector< unsigned int > | p_selectedShapes | ) |
bool KageScene::moveDown | ( | ) |
NOTE: KageFrameset are organized as index 0 as BOTTOM and last index is TOP
bool KageScene::moveToBottom | ( | ) |
NOTE: KageFrameset are organized as index 0 as BOTTOM and last index is TOP
bool KageScene::moveToTop | ( | ) |
NOTE: KageFrameset are organized as index 0 as BOTTOM and last index is TOP
bool KageScene::moveUp | ( | ) |
NOTE: KageFrameset are organized as index 0 as BOTTOM and last index is TOP
bool KageScene::open | ( | string | p_filepath | ) |
vector< unsigned int > KageScene::raiseSelectedShape | ( | vector< unsigned int > | p_selectedShapes | ) |
vector< unsigned int > KageScene::raiseToTopSelectedShape | ( | vector< unsigned int > | p_selectedShapes | ) |
bool KageScene::recenterRotationPoint | ( | vector< unsigned int > | p_selectedShapes | ) |
bool KageScene::removeAllFrames | ( | ) |
bool KageScene::removeFrame | ( | ) |
void KageScene::renderStage | ( | ) |
bool KageScene::save | ( | ) |
void KageScene::selectAll | ( | bool | p_selectAll | ) |
void KageScene::setActiveLayerID | ( | unsigned int | p_layerID | ) |
void KageScene::setCurrentFrame | ( | unsigned int | p_frame | ) |
void KageScene::setCurrentFrameByID | ( | unsigned int | p_frameID | ) |
void KageScene::setCurrentLayer | ( | unsigned int | p_currentLayer | ) |
void KageScene::setCurrentLayerByID | ( | unsigned int | p_layerID | ) |
bool KageScene::setFrameData | ( | VectorDataManager | p_vectorsData | ) |
void KageScene::setFrameExtension | ( | KageFrame::extension | p_extension | ) |
bool KageScene::setTween | ( | unsigned int | p_tween | ) |
bool KageScene::switchToNextFrame | ( | ) |
Called by KageFrame for navigating to Previous Frame.
bool KageScene::switchToNextFrame | ( | unsigned int | p_frameID | ) |
bool KageScene::switchToPreviousFrame | ( | ) |
bool KageScene::switchToPreviousFrame | ( | unsigned int | p_frameID | ) |
vector< unsigned int > KageScene::ungroupSelectedShapes | ( | vector< unsigned int > | p_selectedShapes | ) |
|
protected |
KageDocument* KageScene::_document |
KageScene* KageScene::_parent |
|
protected |
|
protected |
|
protected |
vector<KageLayer *> KageScene::Layers |
|
static |