Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PaletteModel Class Reference

(Qt) Data model for a TYPalette More...

#include <TYPaletteWidget.h>

Inheritance diagram for PaletteModel:
Inheritance graph
[legend]
Collaboration diagram for PaletteModel:
Collaboration graph
[legend]

Public Slots

int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
void deleteSelectedRows ()
 
void addRow (float noiseLevel)
 

Public Member Functions

 PaletteModel (TYPalette *p_palette, QObject *parent=NULL)
 
virtual ~PaletteModel ()
 
void getBoundsForValue (unsigned i, float &inf, float &sup) const
 

Protected Member Functions

bool isSpecialInfiniteCell (const QModelIndex &index) const
 

Protected Attributes

TYPalettep_palette
 
std::set< unsigned > checked_rows
 

Detailed Description

(Qt) Data model for a TYPalette

Definition at line 150 of file TYPaletteWidget.h.

Constructor & Destructor Documentation

◆ PaletteModel()

PaletteModel::PaletteModel ( TYPalette p_palette,
QObject *  parent = NULL 
)

Definition at line 252 of file TYPaletteWidget.cpp.

◆ ~PaletteModel()

PaletteModel::~PaletteModel ( )
virtual

Definition at line 257 of file TYPaletteWidget.cpp.

Member Function Documentation

◆ addRow

void PaletteModel::addRow ( float  noiseLevel)
slot

Definition at line 466 of file TYPaletteWidget.cpp.

Here is the call graph for this function:

◆ columnCount

int PaletteModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
slot

Definition at line 264 of file TYPaletteWidget.cpp.

◆ data

QVariant PaletteModel::data ( const QModelIndex &  index,
int  role 
) const
slot

Definition at line 285 of file TYPaletteWidget.cpp.

Here is the call graph for this function:

◆ deleteSelectedRows

void PaletteModel::deleteSelectedRows ( )
slot

Definition at line 448 of file TYPaletteWidget.cpp.

Here is the call graph for this function:

◆ flags

Qt::ItemFlags PaletteModel::flags ( const QModelIndex &  index) const
slot

Definition at line 348 of file TYPaletteWidget.cpp.

Here is the call graph for this function:

◆ getBoundsForValue()

void PaletteModel::getBoundsForValue ( unsigned  i,
float &  inf,
float &  sup 
) const

Definition at line 269 of file TYPaletteWidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ headerData

QVariant PaletteModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
slot

Definition at line 332 of file TYPaletteWidget.cpp.

◆ isSpecialInfiniteCell()

bool PaletteModel::isSpecialInfiniteCell ( const QModelIndex &  index) const
inlineprotected

Definition at line 174 of file TYPaletteWidget.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rowCount

int PaletteModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
slot

Definition at line 259 of file TYPaletteWidget.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setData

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

Definition at line 381 of file TYPaletteWidget.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ checked_rows

std::set<unsigned> PaletteModel::checked_rows
protected

Definition at line 181 of file TYPaletteWidget.h.

◆ p_palette

TYPalette* PaletteModel::p_palette
protected

Definition at line 180 of file TYPaletteWidget.h.


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