Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkPiecewiseFunctionCanvas Class Reference

#include <QmitkPiecewiseFunctionCanvas.h>

Inheritance diagram for QmitkPiecewiseFunctionCanvas:
Collaboration diagram for QmitkPiecewiseFunctionCanvas:

Public Member Functions

 QmitkPiecewiseFunctionCanvas (QWidget *parent=nullptr, Qt::WindowFlags f={})
 
void paintEvent (QPaintEvent *e) override
 
void SetTitle (const QString &title)
 
int GetNearHandle (int x, int y, unsigned int maxSquaredDistance=100) override
 
void SetPiecewiseFunction (vtkPiecewiseFunction *piecewiseFunction)
 
int AddFunctionPoint (double x, double val) override
 
void RemoveFunctionPoint (double x) override
 
double GetFunctionX (int index) override
 
double GetFunctionY (int index) override
 
int GetFunctionSize () override
 
void DoubleClickOnHandle (int) override
 
void MoveFunctionPoint (int index, std::pair< double, double > pos) override
 
double GetFunctionMax ()
 
double GetFunctionMin ()
 
double GetFunctionRange ()
 
void RemoveAllFunctionPoints ()
 
void ResetGO ()
 
- Public Member Functions inherited from QmitkTransferFunctionCanvas
 QmitkTransferFunctionCanvas (QWidget *parent=nullptr, Qt::WindowFlags f={})
 
mitk::SimpleHistogramGetHistogram ()
 
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
 
void mouseMoveEvent (QMouseEvent *mouseEvent) override
 
void mouseReleaseEvent (QMouseEvent *mouseEvent) override
 
void mouseDoubleClickEvent (QMouseEvent *mouseEvent) override
 
void PaintHistogram (QPainter &p)
 
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)
 

Protected Attributes

vtkPiecewiseFunction * m_PiecewiseFunction
 
QString m_Title
 
- Protected Attributes inherited from QmitkTransferFunctionCanvas
bool m_ImmediateUpdate
 
float m_Range
 
bool m_LineEditAvailable
 
QLineEdit * m_XEdit
 
QLineEdit * m_YEdit
 

Additional Inherited Members

- Public Attributes inherited from QmitkTransferFunctionCanvas
int m_GrabbedHandle
 
double m_Lower
 
double m_Upper
 
double m_Min
 
double m_Max
 
mitk::SimpleHistogramm_Histogram
 

Detailed Description

Definition at line 21 of file QmitkPiecewiseFunctionCanvas.h.

Constructor & Destructor Documentation

◆ QmitkPiecewiseFunctionCanvas()

QmitkPiecewiseFunctionCanvas::QmitkPiecewiseFunctionCanvas ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = {} 
)

Member Function Documentation

◆ AddFunctionPoint()

int QmitkPiecewiseFunctionCanvas::AddFunctionPoint ( double  x,
double  val 
)
inlineoverridevirtual

Implements QmitkTransferFunctionCanvas.

Definition at line 41 of file QmitkPiecewiseFunctionCanvas.h.

◆ DoubleClickOnHandle()

void QmitkPiecewiseFunctionCanvas::DoubleClickOnHandle ( int  )
inlineoverridevirtual

Implements QmitkTransferFunctionCanvas.

Definition at line 60 of file QmitkPiecewiseFunctionCanvas.h.

◆ GetFunctionMax()

double QmitkPiecewiseFunctionCanvas::GetFunctionMax ( )
inline

Definition at line 63 of file QmitkPiecewiseFunctionCanvas.h.

◆ GetFunctionMin()

double QmitkPiecewiseFunctionCanvas::GetFunctionMin ( )
inline

Definition at line 64 of file QmitkPiecewiseFunctionCanvas.h.

◆ GetFunctionRange()

double QmitkPiecewiseFunctionCanvas::GetFunctionRange ( )
inline

Definition at line 65 of file QmitkPiecewiseFunctionCanvas.h.

◆ GetFunctionSize()

int QmitkPiecewiseFunctionCanvas::GetFunctionSize ( )
inlineoverridevirtual

Implements QmitkTransferFunctionCanvas.

Definition at line 59 of file QmitkPiecewiseFunctionCanvas.h.

◆ GetFunctionX()

double QmitkPiecewiseFunctionCanvas::GetFunctionX ( int  index)
inlineoverridevirtual

Implements QmitkTransferFunctionCanvas.

Definition at line 53 of file QmitkPiecewiseFunctionCanvas.h.

◆ GetFunctionY()

double QmitkPiecewiseFunctionCanvas::GetFunctionY ( int  index)
inlineoverridevirtual

Implements QmitkTransferFunctionCanvas.

Definition at line 54 of file QmitkPiecewiseFunctionCanvas.h.

◆ GetNearHandle()

int QmitkPiecewiseFunctionCanvas::GetNearHandle ( int  x,
int  y,
unsigned int  maxSquaredDistance = 100 
)
overridevirtual

◆ MoveFunctionPoint()

void QmitkPiecewiseFunctionCanvas::MoveFunctionPoint ( int  index,
std::pair< double, double >  pos 
)
overridevirtual

◆ paintEvent()

void QmitkPiecewiseFunctionCanvas::paintEvent ( QPaintEvent *  e)
override

◆ RemoveAllFunctionPoints()

void QmitkPiecewiseFunctionCanvas::RemoveAllFunctionPoints ( )
inline

Definition at line 80 of file QmitkPiecewiseFunctionCanvas.h.

◆ RemoveFunctionPoint()

void QmitkPiecewiseFunctionCanvas::RemoveFunctionPoint ( double  x)
inlineoverridevirtual

◆ ResetGO()

void QmitkPiecewiseFunctionCanvas::ResetGO ( )
inline

Definition at line 86 of file QmitkPiecewiseFunctionCanvas.h.

◆ SetPiecewiseFunction()

void QmitkPiecewiseFunctionCanvas::SetPiecewiseFunction ( vtkPiecewiseFunction *  piecewiseFunction)
inline

◆ SetTitle()

void QmitkPiecewiseFunctionCanvas::SetTitle ( const QString &  title)

Member Data Documentation

◆ m_PiecewiseFunction

vtkPiecewiseFunction* QmitkPiecewiseFunctionCanvas::m_PiecewiseFunction
protected

Definition at line 95 of file QmitkPiecewiseFunctionCanvas.h.

◆ m_Title

QString QmitkPiecewiseFunctionCanvas::m_Title
protected

Definition at line 96 of file QmitkPiecewiseFunctionCanvas.h.


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