Pencil2D  ff90c0872e88be3bf81c548cd60f01983012ec49
Pencil2D is an animation software for both bitmap and vector graphics. It is free, multi-platform, and open source.
 All Classes Functions
Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Object Class Reference
+ Inheritance diagram for Object:

Signals

void layerChanged (int layerId)
 

Public Member Functions

 Object (QObject *parent=nullptr)
 
void init ()
 
void createWorkingDir ()
 
void deleteWorkingDir () const
 
QString filePath () const
 
void setFilePath (QString strFileName)
 
QString workingDir () const
 
QString dataDir () const
 
void setDataDir (QString dirPath)
 
QString mainXMLFile () const
 
void setMainXMLFile (QString file)
 
QDomElement saveXML (QDomDocument &doc)
 
bool loadXML (QDomElement element, ProgressCallback progress=[](float){})
 
void paintImage (QPainter &painter, int frameNumber, bool background, bool antialiasing) const
 
QString copyFileToDataFolder (QString strFilePath)
 
ColourRef getColour (int i)
 
void setColour (int index, QColor newColour)
 
void addColour (QColor)
 
void addColour (ColourRef newColour)
 
bool removeColour (int index)
 
void renameColour (int i, QString text)
 
int getColourCount ()
 
bool importPalette (QString filePath)
 
bool exportPalette (QString filePath)
 
bool savePalette (QString filePath)
 
void loadDefaultPalette ()
 
LayerBitmapaddNewBitmapLayer ()
 
LayerVectoraddNewVectorLayer ()
 
LayerSoundaddNewSoundLayer ()
 
LayerCameraaddNewCameraLayer ()
 
int getLayerCount () const
 
LayergetLayer (int i) const
 
LayerfindLayerByName (QString strName, Layer::LAYER_TYPE type=Layer::UNDEFINED) const
 
bool moveLayer (int i, int j)
 
void deleteLayer (int i)
 
void deleteLayer (Layer *)
 
template<typename T >
std::vector< T * > getLayersByType () const
 
bool exportFrames (int frameStart, int frameEnd, Layer *currentLayer, QSize exportSize, QString filePath, const char *format, int quality, bool transparency, bool antialiasing, QProgressDialog *progress, int progressMax)
 
bool exportX (int frameStart, int frameEnd, QTransform view, QSize exportSize, QString filePath, bool antialiasing)
 
bool exportIm (int frameStart, int frameEnd, QTransform view, QSize exportSize, QString filePath, QString format, bool antialiasing, bool transparency)
 
void modification ()
 
bool isModified ()
 
void setModified (bool b)
 
int getUniqueLayerID ()
 
ObjectDatadata ()
 
void setData (ObjectData *)
 
void setLayerUpdated (int layerId)
 

Private Member Functions

int getMaxLayerID ()
 

Private Attributes

QString mFilePath
 
QString mWorkingDirPath
 
QString mDataDirPath
 
QString mMainXMLFile
 
QList< Layer * > mLayers
 
bool modified = false
 
QList< ColourRefmPalette
 
std::unique_ptr< ObjectDatamEditorState
 

Detailed Description

Definition at line 71 of file object.h.


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