AnimationModel Class Reference

Collaboration diagram for AnimationModel:
Collaboration graph
[legend]

List of all members.

Public Slots

void animationChanged ()

Public Member Functions

 AnimationModel (AnnotationObject *parent)
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 Get the header names.
int rowCount (const QModelIndex &parent=QModelIndex()) const
 Let our view know how many rows to display.
int columnCount (const QModelIndex &parent=QModelIndex()) const
 Get the number framers in the animation.
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 Get a data item from the object list.
bool setData (const QModelIndex &index, const QVariant &value, int role)
 Set a particular frame of this animation.
Qt::ItemFlags flags (const QModelIndex &index) const
 Return the flags of a particular row/column cell.
Qt::DropActions supportedDropActions () const
 Let Qt know that we support move operations.
void setPosition (int frameNum, QPointF pos)
 Insert a new keyframe at frameNumber indicating the object is at position pos.
bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int col, const QModelIndex &parent)
 Called when a keyframe is dragged to a new position.
void beginInsertRow (int row)
 A wrapper around the protected QAbstractTableModel::beginInsertRows function.
void endInsertRow ()
 A wrapper around the protected QAbstractTableModel::endInsertRows function.
void beginRemoveRow (int row)
 A wrapper around the protected QAbstractTableModel::beginRemoveRows function.
void endRemoveRow ()
 A wrapper around the protected QAbstractTableModel::endRemoveRows function.
void beginRemoveRowsPub (const QModelIndex &i, int first, int last)
 A wrapper around the protected QAbstractTableModel::beginRemoveRows function.
void setLastClick (const QModelIndex &index)

Detailed Description

Definition at line 10 of file AnimationModel.qt.H.


Member Function Documentation

void AnimationModel::animationChanged (  )  [slot]

Whenever any aspect of the animation has changed, this slot gets called to redraw the whole animation view. This should be reimplemented later to only redraw the changed sections.

Definition at line 164 of file AnimationModel.qt.C.

References AnnotationObject::getAnimation(), and ObjectAnimation::getFrameRange().

Referenced by AnnotationObject::addVertex(), AnnotationObject::frameChanged(), AnnotationObject::mousePressEvent(), AnnotationObjectManager::selectAnimationRow(), and AnnotationObject::selectVertex().

void AnimationModel::beginInsertRow ( int  row  ) 

A wrapper around the protected QAbstractTableModel::beginInsertRows function.

Definition at line 177 of file AnimationModel.qt.C.

Referenced by AnnotationObject::addVertex().

void AnimationModel::beginRemoveRow ( int  row  ) 

A wrapper around the protected QAbstractTableModel::beginRemoveRows function.

Definition at line 187 of file AnimationModel.qt.C.

Referenced by AnnotationObject::removeVertex().

void AnimationModel::beginRemoveRowsPub ( const QModelIndex &  i,
int  first,
int  last 
)

A wrapper around the protected QAbstractTableModel::beginRemoveRows function.

Definition at line 193 of file AnimationModel.qt.C.

Referenced by AnnotationObject::setVertices().

int AnimationModel::columnCount ( const QModelIndex &  parent = QModelIndex()  )  const

Get the number framers in the animation.

Definition at line 40 of file AnimationModel.qt.C.

References AnnotationObject::getAnimation(), and ObjectAnimation::getFrameRange().

QVariant AnimationModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Get a data item from the object list.

Definition at line 48 of file AnimationModel.qt.C.

References AnnotationObject::getAnimation(), and ObjectAnimation::getFrameRange().

bool AnimationModel::dropMimeData ( const QMimeData *  data,
Qt::DropAction  action,
int  row,
int  col,
const QModelIndex &  parent 
)

Called when a keyframe is dragged to a new position.

Definition at line 108 of file AnimationModel.qt.C.

References AnnotationObject::getAnimation(), ObjectAnimation::getFrameRange(), and ObjectAnimation::moveKeyframe().

void AnimationModel::endInsertRow (  ) 

A wrapper around the protected QAbstractTableModel::endInsertRows function.

Definition at line 182 of file AnimationModel.qt.C.

Referenced by AnnotationObject::addVertex().

void AnimationModel::endRemoveRow (  ) 

A wrapper around the protected QAbstractTableModel::endRemoveRows function.

Definition at line 198 of file AnimationModel.qt.C.

Referenced by AnnotationObject::removeVertex(), and AnnotationObject::setVertices().

Qt::ItemFlags AnimationModel::flags ( const QModelIndex &  index  )  const

Return the flags of a particular row/column cell.

Definition at line 78 of file AnimationModel.qt.C.

References AnnotationObject::getAnimation(), and ObjectAnimation::getFrameRange().

QVariant AnimationModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

Get the header names.

Definition at line 17 of file AnimationModel.qt.C.

int AnimationModel::rowCount ( const QModelIndex &  parent = QModelIndex()  )  const

Let our view know how many rows to display.

Definition at line 35 of file AnimationModel.qt.C.

bool AnimationModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)

Set a particular frame of this animation.

Definition at line 73 of file AnimationModel.qt.C.

void AnimationModel::setPosition ( int  frameNum,
QPointF  pos 
)

Insert a new keyframe at frameNumber indicating the object is at position pos.

Qt::DropActions AnimationModel::supportedDropActions (  )  const

Let Qt know that we support move operations.

Definition at line 103 of file AnimationModel.qt.C.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:06 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3