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

#include <document.h>

Collaboration diagram for KageDocument:

Data Structures

struct  Asset
 

Public Types

enum  AssetType { ASSET_IMAGE , ASSET_VIDEO , ASSET_KAGE }
 

Public Member Functions

 KageDocument (Kage *p_kage)
 
 KageDocument (Kage *p_kage, KageProject p_project)
 
virtual ~KageDocument ()
 
void setProjectInformation (KageProject p_project)
 
unsigned int openScene (string p_filepath)
 
bool saveScene (unsigned int p_sceneID)
 Kage Document will contain several scenes. This will allow saving one Scene to be saved each time.
 
bool openProject ()
 
bool saveProject ()
 
bool isSaved ()
 
unsigned int getActiveSceneID ()
 
unsigned int getActiveLayerID ()
 
unsigned int getActiveFrameID ()
 
unsigned int frameCount ()
 
void setCurrentFrame (unsigned int p_frame)
 

Data Fields

KageProject Project
 
Kage_kage
 
vector< AssetAssets
 
vector< KageSceneScenes
 

Static Public Attributes

static unsigned int ACTIVE_SCENE = 0
 

Protected Attributes

bool _saved
 
unsigned int _activeSceneID
 

Member Enumeration Documentation

◆ AssetType

Enumerator
ASSET_IMAGE 
ASSET_VIDEO 
ASSET_KAGE 

Constructor & Destructor Documentation

◆ KageDocument() [1/2]

KageDocument::KageDocument ( Kage p_kage)

◆ KageDocument() [2/2]

KageDocument::KageDocument ( Kage p_kage,
KageProject  p_project 
)
Here is the call graph for this function:

◆ ~KageDocument()

KageDocument::~KageDocument ( )
virtual

Member Function Documentation

◆ frameCount()

unsigned int KageDocument::frameCount ( )
Here is the caller graph for this function:

◆ getActiveFrameID()

unsigned int KageDocument::getActiveFrameID ( )
Here is the call graph for this function:

◆ getActiveLayerID()

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

◆ getActiveSceneID()

unsigned int KageDocument::getActiveSceneID ( )

◆ isSaved()

bool KageDocument::isSaved ( )

◆ openProject()

bool KageDocument::openProject ( )

◆ openScene()

unsigned int KageDocument::openScene ( string  p_filepath)

◆ saveProject()

bool KageDocument::saveProject ( )
Here is the call graph for this function:

◆ saveScene()

bool KageDocument::saveScene ( unsigned int  p_sceneID)

Kage Document will contain several scenes. This will allow saving one Scene to be saved each time.

Parameters
p_sceneIDwhich Scene do we want to save?
Returns
true
false

◆ setCurrentFrame()

void KageDocument::setCurrentFrame ( unsigned int  p_frame)
Here is the caller graph for this function:

◆ setProjectInformation()

void KageDocument::setProjectInformation ( KageProject  p_project)
Here is the caller graph for this function:

Field Documentation

◆ _activeSceneID

unsigned int KageDocument::_activeSceneID
protected

◆ _kage

Kage* KageDocument::_kage

◆ _saved

bool KageDocument::_saved
protected

◆ ACTIVE_SCENE

unsigned int KageDocument::ACTIVE_SCENE = 0
static

◆ Assets

vector<Asset> KageDocument::Assets

◆ Project

KageProject KageDocument::Project

◆ Scenes

vector<KageScene> KageDocument::Scenes

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