MorphoGraphX
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mgx::gui::TransferMarkerModel Class Reference
+ Inheritance diagram for mgx::gui::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
 
- Public Member Functions inherited from QAbstractTableModel
 QAbstractTableModel (QObject *parent=0)
 
 dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
 
 index (int row, int column, const QModelIndex &parent=QModelIndex()
 

Protected Member Functions

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

Protected Attributes

std::vector< double > markers
 
std::vector< QColorcolors
 
Interpolation mode
 
bool showRgba
 
QPushButtonspread_button
 
QFont _font
 

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