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

#include <TransferFunctionDlg.hpp>

+ Inheritance diagram for mgx::TransferFunctionDlg:

Public Slots

void loadSettings (bool changeFunction=true)
 
void setTransferFunction (const TransferFunction &fct)
 
void setDefaultTransferFunction (const TransferFunction &fct)
 
void setStickers (const std::vector< double > &pos)
 
void changeHistogram (const std::vector< double > &h)
 
void changeBounds (const std::pair< double, double > &bounds)
 
void apply ()
 
void reset ()
 
void accept ()
 
void reject ()
 
int exec ()
 

Signals

void changedTransferFunction (const TransferFunction &fct)
 
void appliedTransferFunction (const TransferFunction &fct)
 

Public Member Functions

 TransferFunctionDlg (QWidget *parent=0, Qt::WindowFlags f=0)
 
const TransferFunctiontransferFunction () const
 

Protected Slots

void changeTransferFunction (const QString &name)
 
void changeTransferFunction (const TransferFunction &fct)
 
void on_useChecks_toggled (bool on)
 
void on_useWhite_toggled (bool on)
 
void on_useBlack_toggled (bool on)
 
void on_useRGB_toggled (bool on)
 
void on_useHSV_toggled (bool on)
 
void on_useCyclicHSV_toggled (bool on)
 
void on_selectSelectionColor_clicked ()
 
void on_functionList_currentIndexChanged (const QString &name)
 
void on_exportFunction_clicked ()
 
void on_importFunction_clicked ()
 
void on_saveFunction_clicked ()
 
void on_renameFunction_clicked ()
 
void on_deleteFunction_clicked ()
 
void resetFunctionList ()
 
void on_buttonBox_clicked (QAbstractButton *btn)
 

Protected Member Functions

QColor getColor (QWidget *w)
 
void setColor (QWidget *w, const QColor &col)
 
bool changeColor (QWidget *w)
 

Protected Attributes

TransferFunction current
 
TransferFunction default_fct
 
Ui::TransferFunctionDlg ui
 
QStringList fct_names
 
QList< TransferFunctionfcts
 

Detailed Description

Definition at line 24 of file TransferFunctionDlg.hpp.

Constructor & Destructor Documentation

◆ TransferFunctionDlg()

mgx::TransferFunctionDlg::TransferFunctionDlg ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Member Function Documentation

◆ accept

void mgx::TransferFunctionDlg::accept ( )
slot

◆ appliedTransferFunction

void mgx::TransferFunctionDlg::appliedTransferFunction ( const TransferFunction fct)
signal

◆ apply

void mgx::TransferFunctionDlg::apply ( )
slot

◆ changeBounds

void mgx::TransferFunctionDlg::changeBounds ( const std::pair< double, double > &  bounds)
slot

◆ changeColor()

bool mgx::TransferFunctionDlg::changeColor ( QWidget *  w)
protected

◆ changedTransferFunction

void mgx::TransferFunctionDlg::changedTransferFunction ( const TransferFunction fct)
signal

◆ changeHistogram

void mgx::TransferFunctionDlg::changeHistogram ( const std::vector< double > &  h)
slot

◆ changeTransferFunction [1/2]

void mgx::TransferFunctionDlg::changeTransferFunction ( const QString &  name)
protectedslot

◆ changeTransferFunction [2/2]

void mgx::TransferFunctionDlg::changeTransferFunction ( const TransferFunction fct)
protectedslot

◆ exec

int mgx::TransferFunctionDlg::exec ( )
slot

◆ getColor()

QColor mgx::TransferFunctionDlg::getColor ( QWidget *  w)
protected

◆ loadSettings

void mgx::TransferFunctionDlg::loadSettings ( bool  changeFunction = true)
slot

◆ on_buttonBox_clicked

void mgx::TransferFunctionDlg::on_buttonBox_clicked ( QAbstractButton *  btn)
protectedslot

◆ on_deleteFunction_clicked

void mgx::TransferFunctionDlg::on_deleteFunction_clicked ( )
protectedslot

◆ on_exportFunction_clicked

void mgx::TransferFunctionDlg::on_exportFunction_clicked ( )
protectedslot

◆ on_functionList_currentIndexChanged

void mgx::TransferFunctionDlg::on_functionList_currentIndexChanged ( const QString &  name)
protectedslot

◆ on_importFunction_clicked

void mgx::TransferFunctionDlg::on_importFunction_clicked ( )
protectedslot

◆ on_renameFunction_clicked

void mgx::TransferFunctionDlg::on_renameFunction_clicked ( )
protectedslot

◆ on_saveFunction_clicked

void mgx::TransferFunctionDlg::on_saveFunction_clicked ( )
protectedslot

◆ on_selectSelectionColor_clicked

void mgx::TransferFunctionDlg::on_selectSelectionColor_clicked ( )
protectedslot

◆ on_useBlack_toggled

void mgx::TransferFunctionDlg::on_useBlack_toggled ( bool  on)
protectedslot

◆ on_useChecks_toggled

void mgx::TransferFunctionDlg::on_useChecks_toggled ( bool  on)
protectedslot

◆ on_useCyclicHSV_toggled

void mgx::TransferFunctionDlg::on_useCyclicHSV_toggled ( bool  on)
protectedslot

◆ on_useHSV_toggled

void mgx::TransferFunctionDlg::on_useHSV_toggled ( bool  on)
protectedslot

◆ on_useRGB_toggled

void mgx::TransferFunctionDlg::on_useRGB_toggled ( bool  on)
protectedslot

◆ on_useWhite_toggled

void mgx::TransferFunctionDlg::on_useWhite_toggled ( bool  on)
protectedslot

◆ reject

void mgx::TransferFunctionDlg::reject ( )
slot

◆ reset

void mgx::TransferFunctionDlg::reset ( )
slot

◆ resetFunctionList

void mgx::TransferFunctionDlg::resetFunctionList ( )
protectedslot

◆ setColor()

void mgx::TransferFunctionDlg::setColor ( QWidget *  w,
const QColor &  col 
)
protected

◆ setDefaultTransferFunction

void mgx::TransferFunctionDlg::setDefaultTransferFunction ( const TransferFunction fct)
slot

◆ setStickers

void mgx::TransferFunctionDlg::setStickers ( const std::vector< double > &  pos)
slot

◆ setTransferFunction

void mgx::TransferFunctionDlg::setTransferFunction ( const TransferFunction fct)
slot

◆ transferFunction()

const TransferFunction& mgx::TransferFunctionDlg::transferFunction ( ) const

Member Data Documentation

◆ current

TransferFunction mgx::TransferFunctionDlg::current
protected

Definition at line 72 of file TransferFunctionDlg.hpp.

◆ default_fct

TransferFunction mgx::TransferFunctionDlg::default_fct
protected

Definition at line 72 of file TransferFunctionDlg.hpp.

◆ fct_names

QStringList mgx::TransferFunctionDlg::fct_names
protected

Definition at line 74 of file TransferFunctionDlg.hpp.

◆ fcts

QList<TransferFunction> mgx::TransferFunctionDlg::fcts
protected

Definition at line 75 of file TransferFunctionDlg.hpp.

◆ ui

Ui::TransferFunctionDlg mgx::TransferFunctionDlg::ui
protected

Definition at line 73 of file TransferFunctionDlg.hpp.


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