#include <Colors.hpp>
|
| enum | ColorType {
Mesh1Color,
Mesh1BorderColor,
Mesh1SelectColor,
Mesh1CellsColor,
Stack1BBoxColor,
Mesh2Color,
Mesh2BorderColor,
Mesh2SelectColor,
Mesh2CellsColor,
Stack2BBoxColor,
BackgroundColor,
Clip1GridColor,
Clip2GridColor,
Clip3GridColor,
CuttingPlaneGridColor,
LegendColor,
ScaleBarColor,
VoxelEditColor,
NbColors,
StartMesh1,
StartMesh2,
StartOthers
} |
| | Mesh1 and 2 must have the same order for their colors. More...
|
| |
|
|
|
|
|
| | Colors () |
| |
| virtual | ~Colors () |
| |
| void | readParms (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 |
| |
Definition at line 29 of file Colors.hpp.
◆ ColorType
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.
|
| VoxelEditColor | 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.
|
Definition at line 35 of file Colors.hpp.
◆ Colors()
◆ ~Colors()
| virtual mgx::Colors::~Colors |
( |
| ) |
|
|
inlinevirtual |
◆ backupColors
| void mgx::Colors::backupColors |
( |
| ) |
|
|
slot |
◆ color() [1/2]
◆ color() [2/2]
| QColor mgx::Colors::color |
( |
const QModelIndex & |
index | ) |
const |
|
inline |
◆ colorsChanged
| void mgx::Colors::colorsChanged |
( |
| ) |
|
|
signal |
◆ columnCount()
| int mgx::Colors::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
◆ data()
| QVariant mgx::Colors::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
◆ flags()
| Qt::ItemFlags mgx::Colors::flags |
( |
const QModelIndex & |
index | ) |
const |
◆ getColor()
◆ getQColor()
| static QColor mgx::Colors::getQColor |
( |
ColorType |
type | ) |
|
|
inlinestatic |
◆ hasChildren()
| bool mgx::Colors::hasChildren |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
◆ headerData()
| QVariant mgx::Colors::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
◆ index()
| QModelIndex mgx::Colors::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
◆ instance()
| static Colors* mgx::Colors::instance |
( |
| ) |
|
|
inlinestatic |
◆ parent()
| QModelIndex mgx::Colors::parent |
( |
const QModelIndex & |
index | ) |
const |
◆ qcolor()
| QColor mgx::Colors::qcolor |
( |
ColorType |
type | ) |
const |
|
inline |
◆ readParms()
| void mgx::Colors::readParms |
( |
Parms & |
parms, |
|
|
QString |
section |
|
) |
| |
◆ resetColors
| void mgx::Colors::resetColors |
( |
| ) |
|
|
slot |
◆ restoreColors
| void mgx::Colors::restoreColors |
( |
| ) |
|
|
slot |
◆ rowCount()
| int mgx::Colors::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
◆ setColor()
| void mgx::Colors::setColor |
( |
const QModelIndex & |
index, |
|
|
QColor |
col |
|
) |
| |
|
inline |
◆ setData()
| bool mgx::Colors::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
◆ writeParms()
| void mgx::Colors::writeParms |
( |
QTextStream & |
pout, |
|
|
QString |
section |
|
) |
| |
◆ _font
◆ _instance
| Colors* mgx::Colors::_instance |
|
staticprotected |
◆ backup
| std::vector<QColor> mgx::Colors::backup |
|
protected |
◆ categoryNames
| const QString mgx::Colors::categoryNames[3] |
|
static |
◆ categoryShift
| const int mgx::Colors::categoryShift[3] |
|
static |
◆ categorySize
| const int mgx::Colors::categorySize[3] |
|
static |
◆ colorNames
| const QString mgx::Colors::colorNames[NbColors] |
|
static |
◆ colors
| std::vector<QColor> mgx::Colors::colors |
|
protected |
The documentation for this class was generated from the following file: