MorphoGraphX  2.0-1-227
Public Member Functions | Protected Attributes | List of all members
ColorModel Class Reference

#include <ColorEditDlg.hpp>

+ Inheritance diagram for ColorModel:

Public Member Functions

 ColorModel (std::vector< mgx::Colorb > &colors, mgx::Point2f &bounds)
 
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 presetColors (const QString &preset)
 
void loadPresetColors (const QString &preset)
 
void setNbColors (int n)
 
void setBoundsMin (float a)
 
void setBoundsMax (float a)
 
bool insertRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
 

Protected Attributes

std::vector< mgx::Colorb > & colorsDest
 
std::vector< mgx::ColorbcolorsLocal
 
mgx::Point2fboundsDest
 
mgx::Point2f boundsLocal
 

Detailed Description

Definition at line 27 of file ColorEditDlg.hpp.

Constructor & Destructor Documentation

◆ ColorModel()

ColorModel::ColorModel ( std::vector< mgx::Colorb > &  colors,
mgx::Point2f bounds 
)

Member Function Documentation

◆ apply()

void ColorModel::apply ( )

◆ columnCount()

int ColorModel::columnCount ( const QModelIndex &  = QModelIndex()) const
inline

Definition at line 33 of file ColorEditDlg.hpp.

◆ data()

QVariant ColorModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

◆ flags()

Qt::ItemFlags ColorModel::flags ( const QModelIndex &  index) const

◆ insertRows()

bool ColorModel::insertRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)

◆ loadPresetColors()

void ColorModel::loadPresetColors ( const QString &  preset)

◆ presetColors()

void ColorModel::presetColors ( const QString &  preset)

◆ removeRows()

bool ColorModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)

◆ reset()

void ColorModel::reset ( )

◆ rowCount()

int ColorModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

◆ setBoundsMax()

void ColorModel::setBoundsMax ( float  a)
inline

Definition at line 47 of file ColorEditDlg.hpp.

◆ setBoundsMin()

void ColorModel::setBoundsMin ( float  a)
inline

Definition at line 46 of file ColorEditDlg.hpp.

◆ setData()

bool ColorModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

◆ setNbColors()

void ColorModel::setNbColors ( int  n)

Member Data Documentation

◆ boundsDest

mgx::Point2f& ColorModel::boundsDest
protected

Definition at line 55 of file ColorEditDlg.hpp.

◆ boundsLocal

mgx::Point2f ColorModel::boundsLocal
protected

Definition at line 56 of file ColorEditDlg.hpp.

◆ colorsDest

std::vector<mgx::Colorb>& ColorModel::colorsDest
protected

Definition at line 53 of file ColorEditDlg.hpp.

◆ colorsLocal

std::vector<mgx::Colorb> ColorModel::colorsLocal
protected

Definition at line 54 of file ColorEditDlg.hpp.


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