Kage Studio 0.7.230612
A Simple Free and Open Source 2D Animation Software
|
#include <layer.h>
Public Member Functions | |
KageLayer (KageScene *p_scene, unsigned int p_layerID, unsigned int p_frameCount) | |
virtual | ~KageLayer () |
unsigned int | getID () |
bool | selectAll (bool p_selectAll) |
unsigned int | getFrameCount () |
bool | addFrame () |
void | duplicateFrame () |
void | extendFrame () |
bool | removeFrame () |
unsigned int | getCurrentFrame () |
void | setCurrentFrame (unsigned int p_frame) |
void | setCurrentFrameByID (unsigned int p_frameID) |
void | removeAllFrames () |
KageScene * | getScene () |
KageFrame * | getFrame () |
KageFrame * | getFrameAt (unsigned int p_frame) |
unsigned int | getFrameNumberByID (unsigned int p_frameID) |
void | setSelected (KageFrame *p_frame) |
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 | doFlipVerticalSelectedShapeOn (unsigned int p_frameIndex, vector< unsigned int > p_selectedShapes) |
bool | doFlipVerticalSelectedShapeOnExtendedFrame (unsigned int p_frameIndex, vector< unsigned int > p_selectedShapes) |
bool | recenterRotationPoint (vector< unsigned int > p_selectedShapes) |
bool | addDataToFrame (VectorDataManager p_vectorsData) |
bool | setFrameData (VectorDataManager p_vectorsData) |
VectorDataManager | getFrameTweenData (unsigned int p_frameIndex) |
VectorDataManager | getFrameData () |
VectorDataManager | getFrameDataAt (unsigned int p_frame) |
VectorDataManager | getPreviousFrameData (unsigned int p_frameID) |
NOTE: "Frame" – NOT "frame ID". | |
bool | setFrameDataToPreviousFrame (VectorDataManager p_vectorsData, unsigned int p_frameID) |
Called by KageFrame if KageFrame is Extended. | |
bool | addDataToPreviousFrame (VectorDataManager v, unsigned int p_frameID) |
Called by KageFrame if KageFrame is Extended. | |
bool | setPreviousFrameTween (unsigned int p_frameID, unsigned int p_tween) |
Called by KageFrame if KageFrame is Extended. | |
bool | setExtendedFrameTween (unsigned int p_frameID, unsigned int p_tween) |
bool | forceSetTween (unsigned int p_tween) |
bool | setTween (unsigned int p_tween) |
unsigned int | getTween () |
bool | switchToPreviousFrame () |
bool | switchToPreviousFrame (unsigned int p_frameID) |
Called by FrameSet for navigating to Previous Frame. | |
bool | switchToNextFrame () |
Called by KageFrame for navigating to Previous Frame. | |
bool | switchToNextFrame (unsigned int p_frameID) |
Called by FrameSet for navigating to Next Frame. | |
bool | isCurrentFrame (unsigned int p_frameID) |
Called by KageFrame for navigating to Next Frame. | |
bool | canReUseNextFrame () |
Called by KageFrame when rendering. | |
void | setFrameExtension (KageFrame::extension p_extension) |
Called by KageScene when duplicating Frame. | |
unsigned int | getActiveFrameID () |
Will return which Frame is currently active for editing or viewing. | |
Data Fields | |
unsigned int | ID |
bool | _visible |
bool | _locked |
bool | _selected |
vector< KageFrame * > | Frames |
Protected Member Functions | |
bool | moveToLeft () |
bool | moveToLeftAt (unsigned int p_frame) |
Moves Current Frame to Left. | |
bool | moveToLeftMost () |
Moves Current Frame to Left on indicated Frame. | |
Protected Attributes | |
unsigned int | layerID |
unsigned int | frameCtr |
KageScene * | _scene |
unsigned int | _currentFrameID |
unsigned int | _currentFrameIndex |
unsigned int | _activeFrame |
Moves Current Frame to Left. | |
KageLayer::KageLayer | ( | KageScene * | p_scene, |
unsigned int | p_layerID, | ||
unsigned int | p_frameCount | ||
) |
|
virtual |
bool KageLayer::addDataToFrame | ( | VectorDataManager | p_vectorsData | ) |
bool KageLayer::addDataToPreviousFrame | ( | VectorDataManager | v, |
unsigned int | p_frameID | ||
) |
bool KageLayer::addFrame | ( | ) |
bool KageLayer::canReUseNextFrame | ( | ) |
Called by KageFrame when rendering.
bool KageLayer::doFlipVerticalSelectedShapeOn | ( | unsigned int | p_frameIndex, |
vector< unsigned int > | p_selectedShapes | ||
) |
bool KageLayer::doFlipVerticalSelectedShapeOnExtendedFrame | ( | unsigned int | p_frameIndex, |
vector< unsigned int > | p_selectedShapes | ||
) |
void KageLayer::duplicateFrame | ( | ) |
vector< unsigned int > KageLayer::duplicateShapes | ( | vector< unsigned int > | p_selectedShapes | ) |
void KageLayer::extendFrame | ( | ) |
bool KageLayer::flipHorizontalSelectedShape | ( | vector< unsigned int > | p_selectedShapes | ) |
bool KageLayer::flipVerticalSelectedShape | ( | vector< unsigned int > | p_selectedShapes | ) |
bool KageLayer::forceSetTween | ( | unsigned int | p_tween | ) |
unsigned int KageLayer::getActiveFrameID | ( | ) |
Will return which Frame is currently active for editing or viewing.
unsigned int KageLayer::getCurrentFrame | ( | ) |
KageFrame * KageLayer::getFrame | ( | ) |
KageFrame * KageLayer::getFrameAt | ( | unsigned int | p_frame | ) |
unsigned int KageLayer::getFrameCount | ( | ) |
VectorDataManager KageLayer::getFrameData | ( | ) |
VectorDataManager KageLayer::getFrameDataAt | ( | unsigned int | p_frame | ) |
unsigned int KageLayer::getFrameNumberByID | ( | unsigned int | p_frameID | ) |
VectorDataManager KageLayer::getFrameTweenData | ( | unsigned int | p_frameIndex | ) |
unsigned int KageLayer::getID | ( | ) |
VectorDataManager KageLayer::getPreviousFrameData | ( | unsigned int | p_frameID | ) |
NOTE: "Frame" – NOT "frame ID".
KageScene * KageLayer::getScene | ( | ) |
unsigned int KageLayer::getTween | ( | ) |
vector< unsigned int > KageLayer::groupSelectedShapes | ( | vector< unsigned int > | p_selectedShapes | ) |
bool KageLayer::isCurrentFrame | ( | unsigned int | p_frameID | ) |
vector< unsigned int > KageLayer::lowerSelectedShape | ( | vector< unsigned int > | p_selectedShapes | ) |
vector< unsigned int > KageLayer::lowerToBottomSelectedShape | ( | vector< unsigned int > | p_selectedShapes | ) |
|
protected |
|
protected |
Moves Current Frame to Left.
|
protected |
Moves Current Frame to Left on indicated Frame.
vector< unsigned int > KageLayer::raiseSelectedShape | ( | vector< unsigned int > | p_selectedShapes | ) |
vector< unsigned int > KageLayer::raiseToTopSelectedShape | ( | vector< unsigned int > | p_selectedShapes | ) |
bool KageLayer::recenterRotationPoint | ( | vector< unsigned int > | p_selectedShapes | ) |
void KageLayer::removeAllFrames | ( | ) |
bool KageLayer::removeFrame | ( | ) |
If KageFrame is NULL or Last Frame (but not Frame-index0), remove Frame Widget, else, do below steps.
bool KageLayer::selectAll | ( | bool | p_selectAll | ) |
void KageLayer::setCurrentFrame | ( | unsigned int | p_frame | ) |
For use of Kage. When a KageLayer is clicked, KageLayerManager will call this function via Kage then sets currently active Frame along Layer
p_frame | is Frame Number known to KageFrame(/Layer?) |
void KageLayer::setCurrentFrameByID | ( | unsigned int | p_frameID | ) |
bool KageLayer::setExtendedFrameTween | ( | unsigned int | p_frameID, |
unsigned int | p_tween | ||
) |
bool KageLayer::setFrameData | ( | VectorDataManager | p_vectorsData | ) |
bool KageLayer::setFrameDataToPreviousFrame | ( | VectorDataManager | p_vectorsData, |
unsigned int | p_frameID | ||
) |
void KageLayer::setFrameExtension | ( | KageFrame::extension | p_extension | ) |
bool KageLayer::setPreviousFrameTween | ( | unsigned int | p_frameID, |
unsigned int | p_tween | ||
) |
void KageLayer::setSelected | ( | KageFrame * | p_frame | ) |
bool KageLayer::setTween | ( | unsigned int | p_tween | ) |
bool KageLayer::switchToNextFrame | ( | ) |
Called by KageFrame for navigating to Previous Frame.
index + 1 = becomes frameNumber for current. then +1 becomes frameNumber of Next Frame
bool KageLayer::switchToNextFrame | ( | unsigned int | p_frameID | ) |
Called by FrameSet for navigating to Next Frame.
index + 1 = becomes frameNumber for current. then +1 becomes frameNumber of Next Frame
bool KageLayer::switchToPreviousFrame | ( | ) |
index + 1 = becomes frameNumber for current. then -1 becomes frameNumber of Previous Frame; thus ‘setCurrentFrame(i)’
bool KageLayer::switchToPreviousFrame | ( | unsigned int | p_frameID | ) |
Called by FrameSet for navigating to Previous Frame.
index + 1 = becomes frameNumber for current. then -1 becomes frameNumber of Previous Frame; thus ‘setCurrentFrame(i)’
vector< unsigned int > KageLayer::ungroupSelectedShapes | ( | vector< unsigned int > | p_selectedShapes | ) |
|
protected |
Moves Current Frame to Left.
|
protected |
|
protected |
bool KageLayer::_locked |
|
protected |
bool KageLayer::_selected |
bool KageLayer::_visible |
|
protected |
vector<KageFrame*> KageLayer::Frames |
unsigned int KageLayer::ID |
|
protected |