SOFA plugin: image  master
Open source framework for multi-physics simuation
sofa::gui::qt::THistogramSetting< DataType > Class Template Reference

#include <HistogramWidget.h>

Inheritance diagram for sofa::gui::qt::THistogramSetting< DataType >:

Protected Attributes

const Histotypehisto
 
cimg_library::CImg< unsigned char > cimg
 
unsigned int channel
 
unsigned int channelmax
 
T currentpos
 
type::Vec< 2, Tclamp
 
QLabel * label1
 
QLabel * label2
 
QLabel * label3
 
- Protected Attributes inherited from sofa::gui::qt::HistogramSetting
QImage img
 
QWidgetwidget
 

Public Member Functions

 THistogramSetting (QWidget *parent)
 
 ~THistogramSetting () override
 
void readFromData (const Histotype &d0)
 
void writeToData (Histotype &d)
 
void fromGraph (const QPointF &pt, const bool clicked) override
 
void fromOption (const unsigned int i) override
 
void draw ()
 
const unsigned int & getChannelMax () const
 
- Public Member Functions inherited from sofa::gui::qt::HistogramSetting
 ~HistogramSetting () override
 
QImage * getImage ()
 
QWidgetgetWidget ()
 

Additional Inherited Members

- Signals inherited from sofa::gui::qt::HistogramSetting
void clampModified ()
 

Attribute details

◆ channel

template<class DataType >
unsigned int sofa::gui::qt::THistogramSetting< DataType >::channel
protected

◆ channelmax

template<class DataType >
unsigned int sofa::gui::qt::THistogramSetting< DataType >::channelmax
protected

◆ cimg

template<class DataType >
cimg_library::CImg<unsigned char> sofa::gui::qt::THistogramSetting< DataType >::cimg
protected

◆ clamp

template<class DataType >
type::Vec<2,T> sofa::gui::qt::THistogramSetting< DataType >::clamp
protected

◆ currentpos

template<class DataType >
T sofa::gui::qt::THistogramSetting< DataType >::currentpos
protected

◆ histo

template<class DataType >
const Histotype* sofa::gui::qt::THistogramSetting< DataType >::histo
protected

◆ label1

template<class DataType >
QLabel* sofa::gui::qt::THistogramSetting< DataType >::label1
protected

◆ label2

template<class DataType >
QLabel* sofa::gui::qt::THistogramSetting< DataType >::label2
protected

◆ label3

template<class DataType >
QLabel* sofa::gui::qt::THistogramSetting< DataType >::label3
protected

Constructor details

◆ THistogramSetting()

template<class DataType >
sofa::gui::qt::THistogramSetting< DataType >::THistogramSetting ( QWidget parent)
inline

◆ ~THistogramSetting()

template<class DataType >
sofa::gui::qt::THistogramSetting< DataType >::~THistogramSetting ( )
inlineoverride

Function details

◆ draw()

template<class DataType >
void sofa::gui::qt::THistogramSetting< DataType >::draw ( )
inline

◆ fromGraph()

template<class DataType >
void sofa::gui::qt::THistogramSetting< DataType >::fromGraph ( const QPointF &  pt,
const bool  clicked 
)
inlineoverridevirtual

◆ fromOption()

template<class DataType >
void sofa::gui::qt::THistogramSetting< DataType >::fromOption ( const unsigned int  i)
inlineoverridevirtual

◆ getChannelMax()

template<class DataType >
const unsigned int& sofa::gui::qt::THistogramSetting< DataType >::getChannelMax ( ) const
inline

◆ readFromData()

template<class DataType >
void sofa::gui::qt::THistogramSetting< DataType >::readFromData ( const Histotype d0)
inline

◆ writeToData()

template<class DataType >
void sofa::gui::qt::THistogramSetting< DataType >::writeToData ( Histotype d)
inline