ItemHandler Class Reference

MathVizAnimator: ItemHandler Class Reference
MathVizAnimator  0.0.1
Inheritance diagram for ItemHandler:
[legend]
Collaboration diagram for ItemHandler:
[legend]

Public Types

enum  ItemRoles { ITEM_OBSERVER = Qt::UserRole + 1 }
 

Public Slots

void clear ()
 
void addItem (BasicItem *const basic_item)
 
void removeItem (BasicItem *const basic_item)
 
void setCurrentItem (const QString &itemName)
 
void removeCurrentItem ()
 
void addAnimation (const QString &item_name, const QString &animation_type, const qreal start_time, const qreal duration)
 
void addAnimations (const QString &item_name, const QList< QSharedPointer< AbstractAnimation >> animations)
 
void removeAnimation (const qint32 animation_number)
 
void setTime (const qreal time)
 
void changeProperty (const QString &item_name, const QByteArray &property, const QVariant &value)
 

Public Member Functions

 ItemHandler (QObject *parent=nullptr)
 
qsizetype numItems () const
 
QStandardItemModel * model ()
 
QItemSelectionModel * selectionModel ()
 
PropertyModelpropertyModel ()
 
QStandardItemModel * animationModel ()
 
QList< BasicItem * > basicItems ()
 
QList< QSharedPointer< ItemObserver > > items ()
 
void scaleItems (const qreal width_ratio, const qreal height_ratio)
 

The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/mathvizanimator/checkouts/latest/libs/mva_workflow/include/workflow/itemhandler.h
  • /home/docs/checkouts/readthedocs.org/user_builds/mathvizanimator/checkouts/latest/libs/mva_workflow/src/itemhandler.cpp