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

#include <LabelEditorDlg.hpp>

+ Inheritance diagram for LabelModel:

Public Member Functions

 LabelModel (std::vector< mgx::Colorf > *colors)
 
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 makeGray ()
 
void makeRandom ()
 
void setNbColors (int n)
 
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::Colorf > * toChange
 
std::vector< mgx::ColorflocalCopy
 

Detailed Description

Definition at line 26 of file LabelEditorDlg.hpp.

Constructor & Destructor Documentation

◆ LabelModel()

LabelModel::LabelModel ( std::vector< mgx::Colorf > *  colors)

Member Function Documentation

◆ apply()

void LabelModel::apply ( )

◆ columnCount()

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

Definition at line 32 of file LabelEditorDlg.hpp.

◆ data()

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

◆ flags()

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

◆ insertRows()

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

◆ makeGray()

void LabelModel::makeGray ( )

◆ makeRandom()

void LabelModel::makeRandom ( )

◆ removeRows()

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

◆ reset()

void LabelModel::reset ( )

◆ rowCount()

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

◆ setData()

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

◆ setNbColors()

void LabelModel::setNbColors ( int  n)

Member Data Documentation

◆ localCopy

std::vector<mgx::Colorf> LabelModel::localCopy
protected

Definition at line 54 of file LabelEditorDlg.hpp.

◆ toChange

std::vector<mgx::Colorf>* LabelModel::toChange
protected

Definition at line 53 of file LabelEditorDlg.hpp.


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