#include <assetmanager.h>
◆ KageAssetManager()
KageAssetManager::KageAssetManager |
( |
Kage * |
p_kage | ) |
|
◆ ~KageAssetManager()
KageAssetManager::~KageAssetManager |
( |
| ) |
|
|
virtual |
◆ addAsset()
unsigned int KageAssetManager::addAsset |
( |
Glib::ustring |
p_name = "" | ) |
|
TODO:
- [DONE] check p_name exists – done in Kage with AssetManager
- if project is saved, copy file to project path [DONE] else, copy file to temporary
- [DONE] create hash for path and filesize for future check by assetManager if already existing in Library use kHash from Quixie
TODO:
- [DONE] check if file p_name exists
- [DONE] if existing, copy to temp path
- [DONE] load copied file – use original path as hash
- select image on stage
- resize image on stage
- delete image on stage
- add image on stage FROM LIBRARY (double click)
- add image on stage FROM ASSET (double click)
- add image on stage FROM LIBRARY (drag-n-drop)
- add image on stage FROM ASSET (drag-n-dropl)
◆ assetCount()
unsigned int KageAssetManager::assetCount |
( |
| ) |
|
For use of Kage when exporting/saving to file.
- Returns
- size of array of KageAsset
◆ deleteAsset()
void KageAssetManager::deleteAsset |
( |
| ) |
|
◆ exists()
bool KageAssetManager::exists |
( |
string |
p_filePath | ) |
|
Checks all Asset if already imported
- Parameters
-
p_filePath | Asset's full path1 |
- Returns
- true if p_filePath is in AssetManager. Otherwise, false.
◆ getAsset()
Not to be confused of getCurrentAsset(). This function returns the pointer to active KageAsset Object to caller
- Returns
- pointer to registered active asset
◆ getAssetType()
◆ getCurrentAsset()
unsigned int KageAssetManager::getCurrentAsset |
( |
| ) |
|
◆ getImageByID()
string KageAssetManager::getImageByID |
( |
unsigned int |
p_id | ) |
|
For use by Stage when rendering an Asset, it needs the image path (why not the loaded image object?)
- Parameters
-
◆ getImagePathByID()
string KageAssetManager::getImagePathByID |
( |
unsigned int |
p_index | ) |
|
◆ getLabel()
string KageAssetManager::getLabel |
( |
| ) |
|
◆ moveDown()
bool KageAssetManager::moveDown |
( |
| ) |
|
◆ moveToBottom()
bool KageAssetManager::moveToBottom |
( |
| ) |
|
NOTE: assets are organized as index 0 as BOTTOM and last index is TOP
- See also
- moveDown() moveToTop() moveUp()
- Returns
- True if successfully moved to bottom
◆ moveToTop()
bool KageAssetManager::moveToTop |
( |
| ) |
|
◆ moveUp()
bool KageAssetManager::moveUp |
( |
| ) |
|
◆ removeAllAssets()
bool KageAssetManager::removeAllAssets |
( |
| ) |
|
◆ renameAsset() [1/2]
void KageAssetManager::renameAsset |
( |
| ) |
|
For use of Kage when User clicked Asset->Rename
- See also
- renameAsset(KageAsset)
◆ renameAsset() [2/2]
void KageAssetManager::renameAsset |
( |
KageAsset * |
p_asset | ) |
|
◆ render()
void KageAssetManager::render |
( |
unsigned int |
p_renderID | ) |
|
◆ renderLibrary()
void KageAssetManager::renderLibrary |
( |
unsigned int |
p_ID | ) |
|
◆ renderStage()
void KageAssetManager::renderStage |
( |
| ) |
|
For use of KageAsset. When a KageAsset's visibility is clicked, this function will be called to reflect Asset's visibility on stage.
◆ setAssetHash()
void KageAssetManager::setAssetHash |
( |
string |
p_assetHash | ) |
|
Set's an Asset's hash
- Parameters
-
◆ setAssetType()
Set the AssetType of the selected Asset
- Parameters
-
p_assetType | which AssetType to set |
◆ setCurrentAsset()
void KageAssetManager::setCurrentAsset |
( |
unsigned int |
p_asset | ) |
|
For use of Kage. When a KageFrame is clicked, KageFramesetManager will call this function via Kage then sets currently active Asset via Index
- Parameters
-
- See also
- getCurrentAsset()
◆ setCurrentAssetByID()
void KageAssetManager::setCurrentAssetByID |
( |
unsigned int |
p_assetID | ) |
|
For use of Kage. When a KageFrame is clicked, KageFramesetManager will call this function via Kage then sets currently active Asset via Asset ID
- Parameters
-
p_assetID | is assetID of Asset known to KageFrame |
- See also
- getCurrentAsset()
◆ setLabel()
void KageAssetManager::setLabel |
( |
string |
p_label | ) |
|
Sets the label of current active Asset.
- Parameters
-
p_label | the new label for the active Asset |
◆ setSelected()
void KageAssetManager::setSelected |
( |
KageAsset * |
p_asset | ) |
|
◆ _currentAssetID
unsigned int KageAssetManager::_currentAssetID |
|
protected |
◆ _currentAssetIndex
unsigned int KageAssetManager::_currentAssetIndex |
|
protected |
◆ _kage
Kage* KageAssetManager::_kage |
◆ _KageStudioAsset
string KageAssetManager::_KageStudioAsset |
◆ assetCtr
unsigned int KageAssetManager::assetCtr |
|
protected |
◆ assets
std::vector<KageAsset*> KageAssetManager::assets |
|
protected |
◆ labels
std::vector<Gtk::Button*> KageAssetManager::labels |
|
protected |
The documentation for this class was generated from the following files: