19 #include <QAbstractItemModel> 21 #include <QModelIndex> 23 #include <QTextStream> 27 typedef util::Color<float> Colorf;
67 StartMesh1 = Mesh1Color,
68 StartMesh2 = Mesh2Color,
69 StartOthers = BackgroundColor
73 static const QString colorNames[NbColors];
74 static const QString categoryNames[3];
75 static const int categoryShift[3];
76 static const int categorySize[3];
88 return data(index, Qt::DecorationRole).
value<
QColor>();
91 setData(index, col, Qt::DecorationRole);
98 return (Colorf)colors[type];
104 Qt::ItemFlags flags(
const QModelIndex& index)
const;
108 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
121 return instance()->qcolor(type);
125 return instance()->color(type);
129 void colorsChanged();
133 void restoreColors();
137 std::vector<QColor> colors, backup;
Color of the cell ids.
Definition: Colors.hpp:41
Color of the image background.
Definition: Colors.hpp:55
Color of the selected points and edges.
Definition: Colors.hpp:49
Color of the lines.
Definition: Colors.hpp:37
Color of the bounding box.
Definition: Colors.hpp:51
Color of the border.
Definition: Colors.hpp:47
Defines the util::Parms class.
Color of the selected points and edges.
Definition: Colors.hpp:40
Color of the grid of the 3rd clipping planes.
Definition: Colors.hpp:58
Color of the lines.
Definition: Colors.hpp:46
Color of the bounding box.
Definition: Colors.hpp:42
Color of the text and lines in the color bar.
Definition: Colors.hpp:60
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
A utility class to parse L-Studio like parameter files.
Definition: Parms.hpp:115
Color of the xircle for the pixel edit tool.
Definition: Colors.hpp:62
Color of the grid of the 1st clipping planes.
Definition: Colors.hpp:56
Total number of colors.
Definition: Colors.hpp:66
ColorType
Mesh1 and 2 must have the same order for their colors.
Definition: Colors.hpp:34
Defines the Color class template.
Color of the cell ids.
Definition: Colors.hpp:50
Definition: Colors.hpp:29
Color of the text and lines in the scale bar.
Definition: Colors.hpp:61
Color of the grid of the cutting surface.
Definition: Colors.hpp:59
Color of the grid of the 2nd clipping planes.
Definition: Colors.hpp:57
Color of the border.
Definition: Colors.hpp:38