AnnotationObjectManager Class Reference

List of all members.

Public Slots

void select (const QModelIndex &index)
 select() is called when an item is selected in the table
void objectSelected (int itemId)
 Inform the manager that an item is being selected in the graphicsview.
void addVertex (QPointF)
 Add a vertex to the selected object.
void removeVertex (QPointF)
 Remove a vertex from the selected object.
void removeObject ()
 Remove an object.
void frameChanged (int fnum)
 The frame number has changed.
void selectAnimationRow (int rowIdx)
 Select a row in the animation view.
void setOpacity (int opacity)
 Set the opacity of all objects.

Signals

void selectingObject (int)
 Emit a signal to let the view know that a particular object has been selected.

Public Member Functions

 AnnotationObjectManager (QObject *parent=0)
 Construct a new Annotation Object Manager inside of parent.
int rowCount (const QModelIndex &parent=QModelIndex()) const
 Get the number Annotation Objects being managed by this manager.
int columnCount (const QModelIndex &parent=QModelIndex()) const
 Get the number of data items to report for each Annotation Object.
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 Get a data item from the object list.
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 Get the header names.
bool setData (const QModelIndex &index, const QVariant &value, int role)
 Set a particular data member of one of our Annotation Objects.
Qt::ItemFlags flags (const QModelIndex &index) const
 Return the flags of a particular row/column cell.
bool addObject (AnnotationObject *object)
 Add an object to our object list.
AnnotationObjectgetObjectById (int id)
 Get an object reference by it's ID, or NULL if no object exists with that ID.
void setAnimationView (QTableView *animationView)
 Sets itsAnimationView.
void constructAnimationContextMenu (QPoint globalPos, int row, int column)
 Pass a request to construct a menu off to the current selected object.
void clear ()
 Clear the entire storage, deleting all existing Annotation Objects.
void setAnimationRowSelected (int rowIdx)
void setLastAnimViewClick (const QModelIndex &pos)
std::map< int, std::map< int,
AnnotationObjectFrame > > 
renderAnimations ()
QList< AnnotationObject * > getAnnotationObjects ()

Detailed Description

Definition at line 8 of file AnnotationObjectManager.qt.H.


Constructor & Destructor Documentation

AnnotationObjectManager::AnnotationObjectManager ( QObject *  parent = 0  ) 

Construct a new Annotation Object Manager inside of parent.

Definition at line 9 of file AnnotationObjectManager.qt.C.


Member Function Documentation

bool AnnotationObjectManager::addObject ( AnnotationObject object  ) 

Add an object to our object list.

Definition at line 91 of file AnnotationObjectManager.qt.C.

References objectSelected(), rowCount(), and selectAnimationRow().

Referenced by MainWindow::addObject().

void AnnotationObjectManager::addVertex ( QPointF  point  )  [slot]

Add a vertex to the selected object.

Definition at line 254 of file AnnotationObjectManager.qt.C.

void AnnotationObjectManager::clear (  ) 

Clear the entire storage, deleting all existing Annotation Objects.

Definition at line 348 of file AnnotationObjectManager.qt.C.

References removeObject().

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

Get the number of data items to report for each Annotation Object.

Definition at line 27 of file AnnotationObjectManager.qt.C.

void AnnotationObjectManager::constructAnimationContextMenu ( QPoint  globalPos,
int  row,
int  column 
)

Pass a request to construct a menu off to the current selected object.

Definition at line 162 of file AnnotationObjectManager.qt.C.

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

Get a data item from the object list.

Definition at line 33 of file AnnotationObjectManager.qt.C.

References AnnotationObject::getDescription(), AnnotationObject::getId(), and AnnotationObject::getType().

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

Return the flags of a particular row/column cell.

Definition at line 150 of file AnnotationObjectManager.qt.C.

void AnnotationObjectManager::frameChanged ( int  fnum  )  [slot]

The frame number has changed.

Definition at line 303 of file AnnotationObjectManager.qt.C.

AnnotationObject * AnnotationObjectManager::getObjectById ( int  id  ) 

Get an object reference by it's ID, or NULL if no object exists with that ID.

Definition at line 362 of file AnnotationObjectManager.qt.C.

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

Get the header names.

Definition at line 67 of file AnnotationObjectManager.qt.C.

void AnnotationObjectManager::objectSelected ( int  itemId  )  [slot]

Inform the manager that an item is being selected in the graphicsview.

This highlights and selects the object

Definition at line 176 of file AnnotationObjectManager.qt.C.

Referenced by addObject().

void AnnotationObjectManager::removeObject (  )  [slot]

Remove an object.

Definition at line 272 of file AnnotationObjectManager.qt.C.

Referenced by clear().

void AnnotationObjectManager::removeVertex ( QPointF  point  )  [slot]

Remove a vertex from the selected object.

Definition at line 263 of file AnnotationObjectManager.qt.C.

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

Get the number Annotation Objects being managed by this manager.

Definition at line 21 of file AnnotationObjectManager.qt.C.

Referenced by addObject().

void AnnotationObjectManager::select ( const QModelIndex &  index  )  [slot]

select() is called when an item is selected in the table

In this method we ensure that our graphicsview and tableview are in sync and that only one item is selected at a time

Definition at line 170 of file AnnotationObjectManager.qt.C.

void AnnotationObjectManager::selectAnimationRow ( int  rowIdx  )  [slot]

Select a row in the animation view.

Definition at line 226 of file AnnotationObjectManager.qt.C.

References AnimationModel::animationChanged().

Referenced by addObject().

void AnnotationObjectManager::selectingObject ( int   )  [signal]

Emit a signal to let the view know that a particular object has been selected.

The integer parameter indicates the item's row.

void AnnotationObjectManager::setAnimationView ( QTableView *  animationView  ) 

Sets itsAnimationView.

Definition at line 15 of file AnnotationObjectManager.qt.C.

Referenced by MainWindow::buildWindow().

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

Set a particular data member of one of our Annotation Objects.

Definition at line 113 of file AnnotationObjectManager.qt.C.

References AnnotationObject::setDescription(), and AnnotationObject::setType().

void AnnotationObjectManager::setOpacity ( int  opacity  )  [slot]

Set the opacity of all objects.

Definition at line 309 of file AnnotationObjectManager.qt.C.


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