Public Member Functions | |
Object (Object const &)=delete | |
Object (Object &&)=delete | |
Object & | operator= (Object const &)=delete |
Object & | operator= (Object &&)=delete |
void | init () |
void | createWorkingDir () |
void | deleteWorkingDir () const |
void | setWorkingDir (const QString &path) |
QString | filePath () const |
void | setFilePath (const QString &strFileName) |
QString | workingDir () const |
QString | dataDir () const |
void | setDataDir (const QString &dirPath) |
QString | mainXMLFile () const |
void | setMainXMLFile (const QString &file) |
QDomElement | saveXML (QDomDocument &doc) const |
bool | loadXML (const QDomElement &element, ProgressCallback progressForward) |
void | paintImage (QPainter &painter, int frameNumber, bool background, bool antialiasing) const |
QString | copyFileToDataFolder (const QString &strFilePath) |
ColorRef | getColor (int index) const |
void | setColor (int index, const QColor &newColor) |
void | setColorRef (int index, const ColorRef &newColorRef) |
void | movePaletteColor (int start, int end) |
void | moveVectorColor (int start, int end) |
void | addColor (const ColorRef &newColor) |
void | addColorAtIndex (int index, const ColorRef &newColor) |
void | removeColor (int index) |
bool | isColorInUse (int index) const |
void | renameColor (int i, const QString &text) |
int | getColorCount () |
bool | importPalette (const QString &filePath) |
void | importPaletteGPL (QFile &file) |
void | importPalettePencil (QFile &file) |
void | openPalette (const QString &filePath) |
bool | exportPalette (const QString &filePath) const |
void | exportPaletteGPL (QFile &file) const |
void | exportPalettePencil (QFile &file) const |
QString | savePalette (const QString &filePath) const |
void | loadDefaultPalette () |
LayerBitmap * | addNewBitmapLayer () |
LayerVector * | addNewVectorLayer () |
LayerSound * | addNewSoundLayer () |
LayerCamera * | addNewCameraLayer () |
int | getLayerCount () const |
Layer * | getLayer (int i) const |
Layer * | getLayerBelow (int i, Layer::LAYER_TYPE type) const |
Layer * | findLayerByName (const QString &strName, Layer::LAYER_TYPE type=Layer::UNDEFINED) const |
Layer * | findLayerById (int layerId) const |
Layer * | takeLayer (int layerId) |
bool | swapLayers (int i, int j) |
bool | canSwapLayers (int layerIndexLeft, int layerIndexRight) const |
Allows you to check whether two layers can be swappped, before doing the actual operation. | |
bool | canDeleteLayer (int index) const |
Allows you to check whether the layer at the given index can be deleted. | |
void | deleteLayer (int i) |
void | deleteLayer (Layer *) |
bool | addLayer (Layer *layer) |
template<typename T > | |
std::vector< T * > | getLayersByType () const |
bool | exportFrames (int frameStart, int frameEnd, const LayerCamera *cameraLayer, QSize exportSize, QString filePath, QString format, bool transparency, bool exportKeyframesOnly, const QString &layerName, bool antialiasing, QProgressDialog *progress, int progressMax) const |
bool | exportIm (int frameStart, const QTransform &view, QSize cameraSize, QSize exportSize, const QString &filePath, const QString &format, bool antialiasing, bool transparency) const |
void | modification () |
bool | isModified () const |
void | setModified (bool b) |
int | getUniqueLayerID () |
ObjectData * | data () |
const ObjectData * | data () const |
void | setData (const ObjectData &) |
int | totalKeyFrameCount () const |
void | updateActiveFrames (int frame) const |
void | setActiveFramePoolSize (int sizeInMB) |
Private Member Functions | |
int | getMaxLayerID () |
Private Attributes | |
QString | mFilePath |
QString | mWorkingDirPath |
QString | mDataDirPath |
QString | mMainXMLFile |
QList< Layer * > | mLayers |
bool | modified = false |
QList< ColorRef > | mPalette |
ObjectData | mData |
std::unique_ptr< ActiveFramePool > | mActiveFramePool |
|
explicit |
Definition at line 43 of file object.cpp.
Object::~Object | ( | ) |
Definition at line 48 of file object.cpp.
void Object::addColorAtIndex | ( | int | index, |
const ColorRef & | newColor | ||
) |
Definition at line 424 of file object.cpp.
bool Object::addLayer | ( | Layer * | layer | ) |
Definition at line 375 of file object.cpp.
LayerBitmap * Object::addNewBitmapLayer | ( | ) |
Definition at line 120 of file object.cpp.
LayerCamera * Object::addNewCameraLayer | ( | ) |
Definition at line 150 of file object.cpp.
LayerSound * Object::addNewSoundLayer | ( | ) |
Definition at line 140 of file object.cpp.
LayerVector * Object::addNewVectorLayer | ( | ) |
Definition at line 130 of file object.cpp.
bool Object::canDeleteLayer | ( | int | index | ) | const |
Allows you to check whether the layer at the given index can be deleted.
[in] | index | The layer index to check |
Definition at line 341 of file object.cpp.
bool Object::canSwapLayers | ( | int | layerIndexLeft, |
int | layerIndexRight | ||
) | const |
Allows you to check whether two layers can be swappped, before doing the actual operation.
[in] | layerIndexLeft | The first layer to compare |
[in] | layerIndexRight | The second layer to compare |
Definition at line 316 of file object.cpp.
Definition at line 762 of file object.cpp.
void Object::createWorkingDir | ( | ) |
Definition at line 160 of file object.cpp.
|
inline |
|
inline |
void Object::deleteLayer | ( | int | i | ) |
Definition at line 356 of file object.cpp.
void Object::deleteLayer | ( | Layer * | layer | ) |
Definition at line 364 of file object.cpp.
void Object::deleteWorkingDir | ( | ) | const |
Definition at line 193 of file object.cpp.
bool Object::exportFrames | ( | int | frameStart, |
int | frameEnd, | ||
const LayerCamera * | cameraLayer, | ||
QSize | exportSize, | ||
QString | filePath, | ||
QString | format, | ||
bool | transparency, | ||
bool | exportKeyframesOnly, | ||
const QString & | layerName, | ||
bool | antialiasing, | ||
QProgressDialog * | progress = nullptr , |
||
int | progressMax = 50 |
||
) | const |
Definition at line 791 of file object.cpp.
bool Object::exportIm | ( | int | frameStart, |
const QTransform & | view, | ||
QSize | cameraSize, | ||
QSize | exportSize, | ||
const QString & | filePath, | ||
const QString & | format, | ||
bool | antialiasing, | ||
bool | transparency | ||
) | const |
Definition at line 884 of file object.cpp.
bool Object::exportPalette | ( | const QString & | filePath | ) | const |
Definition at line 514 of file object.cpp.
void Object::exportPaletteGPL | ( | QFile & | file | ) | const |
Definition at line 476 of file object.cpp.
void Object::exportPalettePencil | ( | QFile & | file | ) | const |
Definition at line 493 of file object.cpp.
Layer * Object::findLayerById | ( | int | layerId | ) | const |
Definition at line 253 of file object.cpp.
Layer * Object::findLayerByName | ( | const QString & | strName, |
Layer::LAYER_TYPE | type = Layer::UNDEFINED |
||
) | const |
Definition at line 265 of file object.cpp.
ColorRef Object::getColor | ( | int | index | ) | const |
Definition at line 386 of file object.cpp.
Layer * Object::getLayer | ( | int | i | ) | const |
Definition at line 228 of file object.cpp.
Layer * Object::getLayerBelow | ( | int | i, |
Layer::LAYER_TYPE | type | ||
) | const |
Definition at line 238 of file object.cpp.
int Object::getLayerCount | ( | ) | const |
Definition at line 905 of file object.cpp.
|
inline |
|
private |
Definition at line 210 of file object.cpp.
int Object::getUniqueLayerID | ( | ) |
Definition at line 223 of file object.cpp.
bool Object::importPalette | ( | const QString & | filePath | ) |
Definition at line 659 of file object.cpp.
void Object::importPaletteGPL | ( | QFile & | file | ) |
Definition at line 539 of file object.cpp.
void Object::importPalettePencil | ( | QFile & | file | ) |
Definition at line 622 of file object.cpp.
void Object::init | ( | ) |
Definition at line 59 of file object.cpp.
bool Object::isColorInUse | ( | int | index | ) | const |
Definition at line 429 of file object.cpp.
void Object::loadDefaultPalette | ( | ) |
Definition at line 678 of file object.cpp.
bool Object::loadXML | ( | const QDomElement & | element, |
ProgressCallback | progressForward | ||
) |
Definition at line 79 of file object.cpp.
void Object::movePaletteColor | ( | int | start, |
int | end | ||
) |
Definition at line 408 of file object.cpp.
void Object::moveVectorColor | ( | int | start, |
int | end | ||
) |
Definition at line 413 of file object.cpp.
void Object::openPalette | ( | const QString & | filePath | ) |
Definition at line 645 of file object.cpp.
void Object::paintImage | ( | QPainter & | painter, |
int | frameNumber, | ||
bool | background, | ||
bool | antialiasing | ||
) | const |
Definition at line 707 of file object.cpp.
void Object::removeColor | ( | int | index | ) |
Definition at line 446 of file object.cpp.
void Object::renameColor | ( | int | i, |
const QString & | text | ||
) |
Definition at line 462 of file object.cpp.
Definition at line 467 of file object.cpp.
QDomElement Object::saveXML | ( | QDomDocument & | doc | ) | const |
Definition at line 67 of file object.cpp.
void Object::setActiveFramePoolSize | ( | int | sizeInMB | ) |
Definition at line 946 of file object.cpp.
void Object::setColor | ( | int | index, |
const QColor & | newColor | ||
) |
Definition at line 396 of file object.cpp.
void Object::setColorRef | ( | int | index, |
const ColorRef & | newColorRef | ||
) |
Definition at line 403 of file object.cpp.
void Object::setData | ( | const ObjectData & | d | ) |
Definition at line 910 of file object.cpp.
|
inline |
void Object::setWorkingDir | ( | const QString & | path | ) |
Definition at line 203 of file object.cpp.
bool Object::swapLayers | ( | int | i, |
int | j | ||
) |
Definition at line 300 of file object.cpp.
Layer * Object::takeLayer | ( | int | layerId | ) |
Definition at line 279 of file object.cpp.
int Object::totalKeyFrameCount | ( | ) | const |
Definition at line 915 of file object.cpp.
void Object::updateActiveFrames | ( | int | frame | ) | const |
Definition at line 925 of file object.cpp.
|
mutableprivate |
|
private |