#include <QmitkTransferFunctionCanvas.h>
|
| QmitkTransferFunctionCanvas (QWidget *parent=nullptr, Qt::WindowFlags f={}) |
|
mitk::SimpleHistogram * | GetHistogram () |
|
void | SetHistogram (mitk::SimpleHistogram *histogram) |
|
double | GetMin () |
|
void | SetMin (double min) |
|
double | GetMax () |
|
void | SetMax (double max) |
|
double | GetLower () |
|
void | SetLower (double lower) |
|
double | GetUpper () |
|
void | SetUpper (double upper) |
|
void | mousePressEvent (QMouseEvent *mouseEvent) override |
|
void | paintEvent (QPaintEvent *e) override |
|
virtual void | DoubleClickOnHandle (int handle)=0 |
|
void | mouseMoveEvent (QMouseEvent *mouseEvent) override |
|
void | mouseReleaseEvent (QMouseEvent *mouseEvent) override |
|
void | mouseDoubleClickEvent (QMouseEvent *mouseEvent) override |
|
void | PaintHistogram (QPainter &p) |
|
virtual int | GetNearHandle (int x, int y, unsigned int maxSquaredDistance=100)=0 |
|
virtual int | AddFunctionPoint (double x, double val)=0 |
|
virtual void | RemoveFunctionPoint (double x)=0 |
|
virtual void | MoveFunctionPoint (int index, std::pair< double, double > pos)=0 |
|
virtual double | GetFunctionX (int index)=0 |
|
virtual double | GetFunctionY (int index)=0 |
|
virtual int | GetFunctionSize ()=0 |
|
std::pair< int, int > | FunctionToCanvas (std::pair< double, double >) |
|
std::pair< double, double > | CanvasToFunction (std::pair< int, int >) |
|
void | keyPressEvent (QKeyEvent *e) override |
|
void | SetImmediateUpdate (bool state) |
|
std::pair< double, double > | ValidateCoord (std::pair< double, double > x) |
|
void | SetX (float x) |
|
void | SetY (float y) |
|
void | SetQLineEdits (QLineEdit *xEdit, QLineEdit *yEdit) |
|
◆ QmitkTransferFunctionCanvas()
QmitkTransferFunctionCanvas::QmitkTransferFunctionCanvas |
( |
QWidget * |
parent = nullptr , |
|
|
Qt::WindowFlags |
f = {} |
|
) |
| |
◆ AddFunctionPoint()
virtual int QmitkTransferFunctionCanvas::AddFunctionPoint |
( |
double |
x, |
|
|
double |
val |
|
) |
| |
|
pure virtual |
◆ CanvasToFunction()
std::pair<double, double> QmitkTransferFunctionCanvas::CanvasToFunction |
( |
std::pair< int, int > |
| ) |
|
◆ DoubleClickOnHandle()
virtual void QmitkTransferFunctionCanvas::DoubleClickOnHandle |
( |
int |
handle | ) |
|
|
pure virtual |
◆ FunctionToCanvas()
std::pair<int, int> QmitkTransferFunctionCanvas::FunctionToCanvas |
( |
std::pair< double, double > |
| ) |
|
◆ GetFunctionSize()
virtual int QmitkTransferFunctionCanvas::GetFunctionSize |
( |
| ) |
|
|
pure virtual |
◆ GetFunctionX()
virtual double QmitkTransferFunctionCanvas::GetFunctionX |
( |
int |
index | ) |
|
|
pure virtual |
◆ GetFunctionY()
virtual double QmitkTransferFunctionCanvas::GetFunctionY |
( |
int |
index | ) |
|
|
pure virtual |
◆ GetHistogram()
◆ GetLower()
double QmitkTransferFunctionCanvas::GetLower |
( |
| ) |
|
|
inline |
◆ GetMax()
double QmitkTransferFunctionCanvas::GetMax |
( |
| ) |
|
|
inline |
◆ GetMin()
double QmitkTransferFunctionCanvas::GetMin |
( |
| ) |
|
|
inline |
◆ GetNearHandle()
virtual int QmitkTransferFunctionCanvas::GetNearHandle |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned int |
maxSquaredDistance = 100 |
|
) |
| |
|
pure virtual |
◆ GetUpper()
double QmitkTransferFunctionCanvas::GetUpper |
( |
| ) |
|
|
inline |
◆ keyPressEvent()
void QmitkTransferFunctionCanvas::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
override |
◆ mouseDoubleClickEvent()
void QmitkTransferFunctionCanvas::mouseDoubleClickEvent |
( |
QMouseEvent * |
mouseEvent | ) |
|
|
override |
◆ mouseMoveEvent()
void QmitkTransferFunctionCanvas::mouseMoveEvent |
( |
QMouseEvent * |
mouseEvent | ) |
|
|
override |
◆ mousePressEvent()
void QmitkTransferFunctionCanvas::mousePressEvent |
( |
QMouseEvent * |
mouseEvent | ) |
|
|
override |
◆ mouseReleaseEvent()
void QmitkTransferFunctionCanvas::mouseReleaseEvent |
( |
QMouseEvent * |
mouseEvent | ) |
|
|
override |
◆ MoveFunctionPoint()
virtual void QmitkTransferFunctionCanvas::MoveFunctionPoint |
( |
int |
index, |
|
|
std::pair< double, double > |
pos |
|
) |
| |
|
pure virtual |
◆ paintEvent()
void QmitkTransferFunctionCanvas::paintEvent |
( |
QPaintEvent * |
e | ) |
|
|
override |
◆ PaintHistogram()
void QmitkTransferFunctionCanvas::PaintHistogram |
( |
QPainter & |
p | ) |
|
◆ RemoveFunctionPoint()
virtual void QmitkTransferFunctionCanvas::RemoveFunctionPoint |
( |
double |
x | ) |
|
|
pure virtual |
◆ SetHistogram()
◆ SetImmediateUpdate()
void QmitkTransferFunctionCanvas::SetImmediateUpdate |
( |
bool |
state | ) |
|
◆ SetLower()
void QmitkTransferFunctionCanvas::SetLower |
( |
double |
lower | ) |
|
|
inline |
◆ SetMax()
void QmitkTransferFunctionCanvas::SetMax |
( |
double |
max | ) |
|
|
inline |
◆ SetMin()
void QmitkTransferFunctionCanvas::SetMin |
( |
double |
min | ) |
|
|
inline |
◆ SetQLineEdits()
void QmitkTransferFunctionCanvas::SetQLineEdits |
( |
QLineEdit * |
xEdit, |
|
|
QLineEdit * |
yEdit |
|
) |
| |
|
inline |
◆ SetUpper()
void QmitkTransferFunctionCanvas::SetUpper |
( |
double |
upper | ) |
|
|
inline |
◆ SetX()
void QmitkTransferFunctionCanvas::SetX |
( |
float |
x | ) |
|
|
inline |
◆ SetY()
void QmitkTransferFunctionCanvas::SetY |
( |
float |
y | ) |
|
|
inline |
◆ ValidateCoord()
std::pair<double, double> QmitkTransferFunctionCanvas::ValidateCoord |
( |
std::pair< double, double > |
x | ) |
|
|
inline |
◆ m_GrabbedHandle
int QmitkTransferFunctionCanvas::m_GrabbedHandle |
◆ m_Histogram
◆ m_ImmediateUpdate
bool QmitkTransferFunctionCanvas::m_ImmediateUpdate |
|
protected |
◆ m_LineEditAvailable
bool QmitkTransferFunctionCanvas::m_LineEditAvailable |
|
protected |
◆ m_Lower
double QmitkTransferFunctionCanvas::m_Lower |
◆ m_Max
double QmitkTransferFunctionCanvas::m_Max |
◆ m_Min
double QmitkTransferFunctionCanvas::m_Min |
◆ m_Range
float QmitkTransferFunctionCanvas::m_Range |
|
protected |
◆ m_Upper
double QmitkTransferFunctionCanvas::m_Upper |
◆ m_XEdit
QLineEdit* QmitkTransferFunctionCanvas::m_XEdit |
|
protected |
◆ m_YEdit
QLineEdit* QmitkTransferFunctionCanvas::m_YEdit |
|
protected |
The documentation for this class was generated from the following file: