MorphoGraphX
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | Static Protected Attributes | List of all members
mgx::Colors Class Reference
+ 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 Colorsinstance ()
 
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< QColorcolors
 
std::vector< QColorbackup
 
QFont _font
 

Static Protected Attributes

static Colors_instance
 

Member Enumeration Documentation

Mesh1 and 2 must have the same order for their colors.

Enumerator
Mesh1Color 

Color of the lines.

Mesh1BorderColor 

Color of the border.

Mesh1SelectColor 

Color of the selected points and edges.

Mesh1CellsColor 

Color of the cell ids.

Stack1BBoxColor 

Color of the bounding box.

Mesh2Color 

Color of the lines

Mesh2BorderColor 

Color of the border.

Mesh2SelectColor 

Color of the selected points and edges.

Mesh2CellsColor 

Color of the cell ids.

Stack2BBoxColor 

Color of the bounding box.

BackgroundColor 

Color of the image background

Clip1GridColor 

Color of the grid of the 1st clipping planes.

Clip2GridColor 

Color of the grid of the 2nd clipping planes.

Clip3GridColor 

Color of the grid of the 3rd clipping planes.

CuttingPlaneGridColor 

Color of the grid of the cutting surface.

LegendColor 

Color of the text and lines in the color bar.

ScaleBarColor 

Color of the text and lines in the scale bar.

PixelEditColor 

Color of the xircle for the pixel edit tool.

NbColors 

Total number of colors

StartMesh1 

First id for the mesh2 colors.

StartMesh2 

First id for the mesh2 colors.

StartOthers 

First id for the other colors.


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