MorphoGraphX
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
LabelModel Class Reference
+ Inheritance diagram for LabelModel:

Public Member Functions

 LabelModel (std::vector< mgx::Colorf > *colors)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &=QModelIndex()) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
void apply ()
 
void reset ()
 
void makeGray ()
 
void makeRandom ()
 
void setNbColors (int n)
 
bool insertRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
- Public Member Functions inherited from QAbstractListModel
 QAbstractListModel (QObject *parent=0)
 
 dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
 
 index (int row, int column=0, const QModelIndex &parent=QModelIndex()
 

Protected Attributes

std::vector< mgx::Colorf > * toChange
 
std::vector< mgx::ColorflocalCopy
 

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