Kage Studio 0.7.230612
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
KageScene Class Reference

#include <scene.h>

Collaboration diagram for KageScene:

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)
 
KageFramegetFrame ()
 
KageFramegetFrameAt (unsigned int p_frame)
 
KageLayergetLayer ()
 
KageLayergetLayerAt (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
 

Constructor & Destructor Documentation

◆ KageScene() [1/3]

KageScene::KageScene ( KageDocument p_document,
string  p_filepath 
)
Here is the call graph for this function:

◆ KageScene() [2/3]

KageScene::KageScene ( KageDocument p_document)
Here is the call graph for this function:

◆ KageScene() [3/3]

KageScene::KageScene ( KageDocument p_document,
KageScene p_scene 
)
Here is the call graph for this function:

◆ ~KageScene()

KageScene::~KageScene ( )
virtual

Member Function Documentation

◆ addDataToFrame()

bool KageScene::addDataToFrame ( VectorDataManager  p_vectorsData)
Here is the call graph for this function:

◆ addFrame()

bool KageScene::addFrame ( )
Here is the call graph for this function:

◆ addLayer()

void KageScene::addLayer ( unsigned int  p_layer)

◆ deleteFrameset()

void KageScene::deleteFrameset ( unsigned int  p_layer)

◆ duplicateFrame()

bool KageScene::duplicateFrame ( )
Here is the call graph for this function:

◆ duplicateShapes()

vector< unsigned int > KageScene::duplicateShapes ( vector< unsigned int >  p_selectedShapes)
Here is the call graph for this function:

◆ extendFrame()

bool KageScene::extendFrame ( )
Here is the caller graph for this function:

◆ flipHorizontalSelectedShape()

bool KageScene::flipHorizontalSelectedShape ( vector< unsigned int >  p_selectedShapes)
Here is the call graph for this function:

◆ flipVerticalSelectedShape()

bool KageScene::flipVerticalSelectedShape ( vector< unsigned int >  p_selectedShapes)
Here is the call graph for this function:

◆ forceSetTween()

bool KageScene::forceSetTween ( unsigned int  p_tween)

NOTE: "Frame" – NOT "frame ID".

Here is the call graph for this function:

◆ frameCount()

unsigned int KageScene::frameCount ( )

◆ getActiveLayerID()

unsigned int KageScene::getActiveLayerID ( )
Here is the caller graph for this function:

◆ getCurrentFrame()

unsigned int KageScene::getCurrentFrame ( )
Here is the caller graph for this function:

◆ getCurrentLayer()

unsigned int KageScene::getCurrentLayer ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFrame()

KageFrame * KageScene::getFrame ( )
Here is the call graph for this function:

◆ getFrameAt()

KageFrame * KageScene::getFrameAt ( unsigned int  p_frame)
Here is the call graph for this function:

◆ getFrameData()

VectorDataManager KageScene::getFrameData ( )
Here is the call graph for this function:

◆ getFrameDataAt()

VectorDataManager KageScene::getFrameDataAt ( unsigned int  p_frame)
Here is the call graph for this function:

◆ getLayer()

KageLayer * KageScene::getLayer ( )
Here is the call graph for this function:

◆ getLayerAt()

KageLayer * KageScene::getLayerAt ( unsigned int  p_layer)

◆ getTween()

unsigned int KageScene::getTween ( )
Here is the call graph for this function:

◆ groupSelectedShapes()

vector< unsigned int > KageScene::groupSelectedShapes ( vector< unsigned int >  p_selectedShapes)
Here is the call graph for this function:

◆ init()

void KageScene::init ( KageDocument p_document)
protected
Here is the caller graph for this function:

◆ isSaved()

bool KageScene::isSaved ( )

◆ isSelected()

bool KageScene::isSelected ( )

◆ layerCount()

unsigned int KageScene::layerCount ( )

◆ lowerSelectedShape()

vector< unsigned int > KageScene::lowerSelectedShape ( vector< unsigned int >  p_selectedShapes)
Here is the call graph for this function:

◆ lowerToBottomSelectedShape()

vector< unsigned int > KageScene::lowerToBottomSelectedShape ( vector< unsigned int >  p_selectedShapes)
Here is the call graph for this function:

◆ moveDown()

bool KageScene::moveDown ( )

NOTE: KageFrameset are organized as index 0 as BOTTOM and last index is TOP

See also
moveToBottom() moveToTop() moveUp()
Returns
True if KageFrameset successfully moved down
Here is the call graph for this function:

◆ moveToBottom()

bool KageScene::moveToBottom ( )

NOTE: KageFrameset are organized as index 0 as BOTTOM and last index is TOP

See also
moveDown() moveToTop() moveUp()
Returns
True if KageFrameset successfully moved to bottom
Here is the call graph for this function:

◆ moveToTop()

bool KageScene::moveToTop ( )

NOTE: KageFrameset are organized as index 0 as BOTTOM and last index is TOP

See also
moveDown() moveToBottom() moveUp()
Returns
True if KageFrameset successfully moved to top
Here is the call graph for this function:

◆ moveUp()

bool KageScene::moveUp ( )

NOTE: KageFrameset are organized as index 0 as BOTTOM and last index is TOP

See also
moveDown() moveToBottom() moveToTop()
Returns
True if KageFrameset successfully moved up
Here is the call graph for this function:

◆ open()

bool KageScene::open ( string  p_filepath)
Here is the caller graph for this function:

◆ raiseSelectedShape()

vector< unsigned int > KageScene::raiseSelectedShape ( vector< unsigned int >  p_selectedShapes)
Here is the call graph for this function:

◆ raiseToTopSelectedShape()

vector< unsigned int > KageScene::raiseToTopSelectedShape ( vector< unsigned int >  p_selectedShapes)
Here is the call graph for this function:

◆ recenterRotationPoint()

bool KageScene::recenterRotationPoint ( vector< unsigned int >  p_selectedShapes)
Here is the call graph for this function:

◆ removeAllFrames()

bool KageScene::removeAllFrames ( )

◆ removeFrame()

bool KageScene::removeFrame ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ renderStage()

void KageScene::renderStage ( )
Here is the call graph for this function:

◆ save()

bool KageScene::save ( )

◆ selectAll()

void KageScene::selectAll ( bool  p_selectAll)
Here is the caller graph for this function:

◆ setActiveLayerID()

void KageScene::setActiveLayerID ( unsigned int  p_layerID)

◆ setCurrentFrame()

void KageScene::setCurrentFrame ( unsigned int  p_frame)
Here is the call graph for this function:

◆ setCurrentFrameByID()

void KageScene::setCurrentFrameByID ( unsigned int  p_frameID)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCurrentLayer()

void KageScene::setCurrentLayer ( unsigned int  p_currentLayer)
Here is the call graph for this function:

◆ setCurrentLayerByID()

void KageScene::setCurrentLayerByID ( unsigned int  p_layerID)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFrameData()

bool KageScene::setFrameData ( VectorDataManager  p_vectorsData)
Here is the call graph for this function:

◆ setFrameExtension()

void KageScene::setFrameExtension ( KageFrame::extension  p_extension)

Called by KageFrame for navigating to Next Frame.

Here is the call graph for this function:

◆ setTween()

bool KageScene::setTween ( unsigned int  p_tween)
Here is the call graph for this function:

◆ switchToNextFrame() [1/2]

bool KageScene::switchToNextFrame ( )

Called by KageFrame for navigating to Previous Frame.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ switchToNextFrame() [2/2]

bool KageScene::switchToNextFrame ( unsigned int  p_frameID)

Called by Kage for navigating to Next Frame.

Here is the call graph for this function:

◆ switchToPreviousFrame() [1/2]

bool KageScene::switchToPreviousFrame ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ switchToPreviousFrame() [2/2]

bool KageScene::switchToPreviousFrame ( unsigned int  p_frameID)

Called by Kage for navigating to Previous Frame.

Here is the call graph for this function:

◆ ungroupSelectedShapes()

vector< unsigned int > KageScene::ungroupSelectedShapes ( vector< unsigned int >  p_selectedShapes)
Here is the call graph for this function:

Field Documentation

◆ _activeLayer

unsigned int KageScene::_activeLayer
protected

◆ _document

KageDocument* KageScene::_document

◆ _parent

KageScene* KageScene::_parent

◆ _saved

bool KageScene::_saved
protected

◆ _selected

bool KageScene::_selected
protected

◆ ID

unsigned int KageScene::ID
protected

◆ Layers

vector<KageLayer *> KageScene::Layers

◆ LOADING_MODE

bool KageScene::LOADING_MODE = false
static

The documentation for this class was generated from the following files: