MorphoGraphX  2.0-1-227
Public Types | Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mgx::TransferMarkerModel Class Reference

#include <TransferMarkers.hpp>

+ Inheritance diagram for mgx::TransferMarkerModel:

Public Types

typedef TransferFunction::Interpolation Interpolation
 

Public Slots

void addMarker (const QItemSelection &selection)
 
void removeMarker (const QItemSelection &selection)
 
void spreadMarkers (const QItemSelection &selection)
 
void rgbaMode ()
 
void hsvaMode ()
 

Public Member Functions

 TransferMarkerModel (const std::vector< double > &markers, const std::vector< QColor > &colors, Interpolation m, bool showRgba, QObject *parent=0)
 
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)
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
const std::vector< double > & getMarkers () const
 
const std::vector< QColor > & getColors () const
 

Protected Member Functions

QString colorText (int idx) const
 
bool setColorText (int idx, QString txt)
 

Protected Attributes

std::vector< double > markers
 
std::vector< QColor > colors
 
Interpolation mode
 
bool showRgba
 
QPushButton * spread_button
 
QFont _font
 

Detailed Description

Definition at line 48 of file TransferMarkers.hpp.

Member Typedef Documentation

◆ Interpolation

Definition at line 51 of file TransferMarkers.hpp.

Constructor & Destructor Documentation

◆ TransferMarkerModel()

mgx::TransferMarkerModel::TransferMarkerModel ( const std::vector< double > &  markers,
const std::vector< QColor > &  colors,
Interpolation  m,
bool  showRgba,
QObject *  parent = 0 
)

Member Function Documentation

◆ addMarker

void mgx::TransferMarkerModel::addMarker ( const QItemSelection &  selection)
slot

◆ colorText()

QString mgx::TransferMarkerModel::colorText ( int  idx) const
protected

◆ columnCount()

int mgx::TransferMarkerModel::columnCount ( const QModelIndex &  = QModelIndex()) const
inline

Definition at line 56 of file TransferMarkers.hpp.

◆ data()

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

◆ flags()

Qt::ItemFlags mgx::TransferMarkerModel::flags ( const QModelIndex &  index) const

◆ getColors()

const std::vector<QColor>& mgx::TransferMarkerModel::getColors ( ) const
inline

Definition at line 69 of file TransferMarkers.hpp.

◆ getMarkers()

const std::vector<double>& mgx::TransferMarkerModel::getMarkers ( ) const
inline

Definition at line 66 of file TransferMarkers.hpp.

◆ headerData()

QVariant mgx::TransferMarkerModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

◆ hsvaMode

void mgx::TransferMarkerModel::hsvaMode ( )
slot

◆ removeMarker

void mgx::TransferMarkerModel::removeMarker ( const QItemSelection &  selection)
slot

◆ rgbaMode

void mgx::TransferMarkerModel::rgbaMode ( )
slot

◆ rowCount()

int mgx::TransferMarkerModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

◆ setColorText()

bool mgx::TransferMarkerModel::setColorText ( int  idx,
QString  txt 
)
protected

◆ setData()

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

◆ spreadMarkers

void mgx::TransferMarkerModel::spreadMarkers ( const QItemSelection &  selection)
slot

Member Data Documentation

◆ _font

QFont mgx::TransferMarkerModel::_font
protected

Definition at line 89 of file TransferMarkers.hpp.

◆ colors

std::vector<QColor> mgx::TransferMarkerModel::colors
protected

Definition at line 85 of file TransferMarkers.hpp.

◆ markers

std::vector<double> mgx::TransferMarkerModel::markers
protected

Definition at line 84 of file TransferMarkers.hpp.

◆ mode

Interpolation mgx::TransferMarkerModel::mode
protected

Definition at line 86 of file TransferMarkers.hpp.

◆ showRgba

bool mgx::TransferMarkerModel::showRgba
protected

Definition at line 87 of file TransferMarkers.hpp.

◆ spread_button

QPushButton* mgx::TransferMarkerModel::spread_button
protected

Definition at line 88 of file TransferMarkers.hpp.


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