|
MorphoGraphX
|
Inheritance diagram for mgx::Colors:Public Types | |
| enum | ColorType { Mesh1Color, Mesh1BorderColor, Mesh1SelectColor, Mesh1CellsColor, Stack1BBoxColor, Mesh2Color, Mesh2BorderColor, Mesh2SelectColor, Mesh2CellsColor, Stack2BBoxColor, BackgroundColor, Clip1GridColor, Clip2GridColor, Clip3GridColor, CuttingPlaneGridColor, LegendColor, ScaleBarColor, PixelEditColor, NbColors, StartMesh1, StartMesh2, StartOthers } |
| Mesh1 and 2 must have the same order for their colors. More... | |
Public Slots | |
| void | backupColors () |
| void | restoreColors () |
| void | resetColors () |
Signals | |
| void | colorsChanged () |
Public Member Functions | |
| void | readParms (util::Parms &parms, QString section) |
| void | writeParms (QTextStream &pout, QString section) |
| bool | hasChildren (const QModelIndex &parent=QModelIndex()) const |
| QColor | color (const QModelIndex &index) const |
| void | setColor (const QModelIndex &index, QColor col) |
| QColor | qcolor (ColorType type) const |
| Colorf | color (ColorType type) const |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| int | columnCount (const QModelIndex &parent=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) |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| QModelIndex | parent (const QModelIndex &index) const |
Public Member Functions inherited from QAbstractItemModel | |
| QAbstractItemModel (QObject *parent=0) | |
| beginInsertColumns (const QModelIndex &parent, int first, int last) | |
| beginInsertRows (const QModelIndex &parent, int first, int last) | |
| beginMoveColumns (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild) | |
| beginMoveRows (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild) | |
| beginRemoveColumns (const QModelIndex &parent, int first, int last) | |
| beginRemoveRows (const QModelIndex &parent, int first, int last) | |
| beginResetModel () | |
| buddy (const QModelIndex &index) | |
| canFetchMore (const QModelIndex &parent) | |
| changePersistentIndex (const QModelIndex &from, const QModelIndex &to) | |
| changePersistentIndexList (const QModelIndexList &from, const QModelIndexList &to) | |
| columnCount (const QModelIndex &parent=QModelIndex() | |
| columnsAboutToBeInserted (const QModelIndex &parent, int start, int end) | |
| columnsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationColumn) | |
| columnsAboutToBeRemoved (const QModelIndex &parent, int start, int end) | |
| columnsInserted (const QModelIndex &parent, int start, int end) | |
| columnsMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationColumn) | |
| columnsRemoved (const QModelIndex &parent, int start, int end) | |
| createIndex (int row, int column, void *ptr=0) | |
| createIndex (int row, int column, quint32 id) | |
| data (const QModelIndex &index, int role=Qt::DisplayRole) | |
| dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) | |
| dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) | |
| endInsertColumns () | |
| endInsertRows () | |
| endMoveColumns () | |
| endMoveRows () | |
| endRemoveColumns () | |
| endRemoveRows () | |
| endResetModel () | |
| fetchMore (const QModelIndex &parent) | |
| ItemFlags QAbstractItemModel::flags(const QModelIndex &index) | |
| hasChildren (const QModelIndex &parent=QModelIndex() | |
| hasIndex (int row, int column, const QModelIndex &parent=QModelIndex() | |
| headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) | |
| headerDataChanged (Qt::Orientation orientation, int first, int last) | |
| index (int row, int column, const QModelIndex &parent=QModelIndex() | |
| insertColumn (int column, const QModelIndex &parent=QModelIndex() | |
| insertColumns (int column, int count, const QModelIndex &parent=QModelIndex() | |
| insertRow (int row, const QModelIndex &parent=QModelIndex() | |
| insertRows (int row, int count, const QModelIndex &parent=QModelIndex() | |
| itemData (const QModelIndex &index) | |
| layoutAboutToBeChanged () | |
| layoutChanged () | |
| match (const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap) | |
| mimeData (const QModelIndexList &indexes) | |
| mimeTypes () | |
| modelAboutToBeReset () | |
| modelReset () | |
| parent (const QModelIndex &index) | |
| persistentIndexList () | |
| removeColumn (int column, const QModelIndex &parent=QModelIndex() | |
| removeColumns (int column, int count, const QModelIndex &parent=QModelIndex() | |
| removeRow (int row, const QModelIndex &parent=QModelIndex() | |
| removeRows (int row, int count, const QModelIndex &parent=QModelIndex() | |
| reset () | |
| revert () | |
| roleNames () | |
| rowCount (const QModelIndex &parent=QModelIndex() | |
| rowsAboutToBeInserted (const QModelIndex &parent, int start, int end) | |
| rowsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow) | |
| rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) | |
| rowsInserted (const QModelIndex &parent, int start, int end) | |
| rowsMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow) | |
| rowsRemoved (const QModelIndex &parent, int start, int end) | |
| setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) | |
| setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole) | |
| setItemData (const QModelIndex &index, const QMap< int, QVariant > &roles) | |
| setRoleNames (const QHash< int, QByteArray > &roleNames) | |
| setSupportedDragActions (Qt::DropActions actions) | |
| sibling (int row, int column, const QModelIndex &index) | |
| sort (int column, Qt::SortOrder order=Qt::AscendingOrder) | |
| span (const QModelIndex &index) | |
| submit () | |
| DropActions QAbstractItemModel::supportedDragActions() | |
| DropActions QAbstractItemModel::supportedDropActions() | |
| horizontalStepsPerItem () | |
| setHorizontalStepsPerItem (int steps) | |
| setVerticalStepsPerItem (int steps) | |
| verticalStepsPerItem () | |
Static Public Member Functions | |
| static Colors * | instance () |
| static QColor | getQColor (ColorType type) |
| static Colorf | getColor (ColorType type) |
Static Public Attributes | |
| static const QString | colorNames [NbColors] |
| static const QString | categoryNames [3] |
| static const int | categoryShift [3] |
| static const int | categorySize [3] |
Protected Attributes | |
| std::vector< QColor > | colors |
| std::vector< QColor > | backup |
| QFont | _font |
Static Protected Attributes | |
| static Colors * | _instance |
Mesh1 and 2 must have the same order for their colors.
1.8.11