Pencil2D Animation
Download Community News Docs Contribute
  • Overview
  • Articles
  • Code
  •  
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • File List
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
KeyFrame Class Reference
+ Inheritance diagram for KeyFrame:
Inheritance graph
[legend]
+ Collaboration diagram for KeyFrame:
Collaboration graph
[legend]

Public Member Functions

 KeyFrame (const KeyFrame &k2)
 
KeyFrame & operator= (const KeyFrame &k2)
 
int pos () const
 
void setPos (int position)
 
int length () const
 
void setLength (int len)
 
void modification ()
 
void setModified (bool b)
 
bool isModified () const
 
void setSelected (bool b)
 
bool isSelected () const
 
QString fileName () const
 
void setFileName (QString strFileName)
 
void addEventListener (KeyFrameEventListener *)
 
void removeEventListner (KeyFrameEventListener *)
 
virtual KeyFrame * clone () const
 
virtual void loadFile ()
 
virtual void unloadFile ()
 
virtual bool isLoaded () const
 
virtual quint64 memoryUsage ()
 

Private Attributes

int mFrame = -1
 
int mLength = 1
 
bool mIsModified = true
 
bool mIsSelected = false
 
QString mAttachedFileName
 
std::vector< KeyFrameEventListener * > mEventListeners
 

Detailed Description

Definition at line 29 of file keyframe.h.

Constructor & Destructor Documentation

◆ KeyFrame() [1/2]

KeyFrame::KeyFrame ( )
explicit

Definition at line 21 of file keyframe.cpp.

◆ KeyFrame() [2/2]

KeyFrame::KeyFrame ( const KeyFrame &  k2)
explicit

Definition at line 25 of file keyframe.cpp.

◆ ~KeyFrame()

KeyFrame::~KeyFrame ( )
virtual

Definition at line 35 of file keyframe.cpp.

Member Function Documentation

◆ addEventListener()

void KeyFrame::addEventListener ( KeyFrameEventListener *  listener)

Definition at line 59 of file keyframe.cpp.

◆ clone()

virtual KeyFrame * KeyFrame::clone ( ) const
inlinevirtual

Definition at line 57 of file keyframe.h.

◆ fileName()

QString KeyFrame::fileName ( ) const
inline

Definition at line 51 of file keyframe.h.

◆ isLoaded()

virtual bool KeyFrame::isLoaded ( ) const
inlinevirtual

Definition at line 60 of file keyframe.h.

◆ isModified()

bool KeyFrame::isModified ( ) const
inline

Definition at line 46 of file keyframe.h.

◆ isSelected()

bool KeyFrame::isSelected ( ) const
inline

Definition at line 49 of file keyframe.h.

◆ length()

int KeyFrame::length ( ) const
inline

Definition at line 41 of file keyframe.h.

◆ loadFile()

virtual void KeyFrame::loadFile ( )
inlinevirtual

Definition at line 58 of file keyframe.h.

◆ memoryUsage()

virtual quint64 KeyFrame::memoryUsage ( )
inlinevirtual

Definition at line 62 of file keyframe.h.

◆ modification()

void KeyFrame::modification ( )
inline

Definition at line 44 of file keyframe.h.

◆ operator=()

KeyFrame & KeyFrame::operator= ( const KeyFrame &  k2)

Definition at line 43 of file keyframe.cpp.

◆ pos()

int KeyFrame::pos ( ) const
inline

Definition at line 38 of file keyframe.h.

◆ removeEventListner()

void KeyFrame::removeEventListner ( KeyFrameEventListener *  listener)

Definition at line 68 of file keyframe.cpp.

◆ setFileName()

void KeyFrame::setFileName ( QString  strFileName)
inline

Definition at line 52 of file keyframe.h.

◆ setLength()

void KeyFrame::setLength ( int  len)
inline

Definition at line 42 of file keyframe.h.

◆ setModified()

void KeyFrame::setModified ( bool  b)
inline

Definition at line 45 of file keyframe.h.

◆ setPos()

void KeyFrame::setPos ( int  position)
inline

Definition at line 39 of file keyframe.h.

◆ setSelected()

void KeyFrame::setSelected ( bool  b)
inline

Definition at line 48 of file keyframe.h.

◆ unloadFile()

virtual void KeyFrame::unloadFile ( )
inlinevirtual

Definition at line 59 of file keyframe.h.

Member Data Documentation

◆ mAttachedFileName

QString KeyFrame::mAttachedFileName
private

Definition at line 69 of file keyframe.h.

◆ mEventListeners

std::vector<KeyFrameEventListener*> KeyFrame::mEventListeners
private

Definition at line 71 of file keyframe.h.

◆ mFrame

int KeyFrame::mFrame = -1
private

Definition at line 65 of file keyframe.h.

◆ mIsModified

bool KeyFrame::mIsModified = true
private

Definition at line 67 of file keyframe.h.

◆ mIsSelected

bool KeyFrame::mIsSelected = false
private

Definition at line 68 of file keyframe.h.

◆ mLength

int KeyFrame::mLength = 1
private

Definition at line 66 of file keyframe.h.


The documentation for this class was generated from the following files:
  • core_lib/src/structure/keyframe.h
  • core_lib/src/structure/keyframe.cpp
Generated on Thu May 8 2025 04:47:54 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39