Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkColorTransferFunctionCanvas Class Reference

#include <QmitkColorTransferFunctionCanvas.h>

Inheritance diagram for QmitkColorTransferFunctionCanvas:
Collaboration diagram for QmitkColorTransferFunctionCanvas:

Public Member Functions

 QmitkColorTransferFunctionCanvas (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 
void paintEvent (QPaintEvent *e) override
 
int GetNearHandle (int x, int y, unsigned int maxSquaredDistance=32) override
 
void SetTitle (const QString &title)
 
void SetColorTransferFunction (vtkColorTransferFunction *colorTransferFunction)
 
int AddFunctionPoint (double x, double) override
 
void RemoveFunctionPoint (double x) override
 
double GetFunctionX (int index) override
 
int GetFunctionSize () override
 
void DoubleClickOnHandle (int handle) override
 
void MoveFunctionPoint (int index, std::pair< double, double > pos) override
 
void AddRGB (double x, double r, double g, double b)
 
double GetFunctionMax ()
 
double GetFunctionMin ()
 
double GetFunctionRange ()
 
void RemoveAllFunctionPoints ()
 
double GetFunctionY (int) override
 
- Public Member Functions inherited from QmitkTransferFunctionCanvas
 QmitkTransferFunctionCanvas (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 
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

vtkColorTransferFunction * m_ColorTransferFunction
 
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 QmitkColorTransferFunctionCanvas.h.

Constructor & Destructor Documentation

◆ QmitkColorTransferFunctionCanvas()

QmitkColorTransferFunctionCanvas::QmitkColorTransferFunctionCanvas ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = nullptr 
)

Member Function Documentation

◆ AddFunctionPoint()

int QmitkColorTransferFunctionCanvas::AddFunctionPoint ( double  x,
double   
)
inlineoverridevirtual

Implements QmitkTransferFunctionCanvas.

Definition at line 40 of file QmitkColorTransferFunctionCanvas.h.

◆ AddRGB()

void QmitkColorTransferFunctionCanvas::AddRGB ( double  x,
double  r,
double  g,
double  b 
)

◆ DoubleClickOnHandle()

void QmitkColorTransferFunctionCanvas::DoubleClickOnHandle ( int  handle)
overridevirtual

◆ GetFunctionMax()

double QmitkColorTransferFunctionCanvas::GetFunctionMax ( )
inline

Definition at line 66 of file QmitkColorTransferFunctionCanvas.h.

◆ GetFunctionMin()

double QmitkColorTransferFunctionCanvas::GetFunctionMin ( )
inline

Definition at line 67 of file QmitkColorTransferFunctionCanvas.h.

◆ GetFunctionRange()

double QmitkColorTransferFunctionCanvas::GetFunctionRange ( )
inline

Definition at line 68 of file QmitkColorTransferFunctionCanvas.h.

◆ GetFunctionSize()

int QmitkColorTransferFunctionCanvas::GetFunctionSize ( )
inlineoverridevirtual

Implements QmitkTransferFunctionCanvas.

Definition at line 60 of file QmitkColorTransferFunctionCanvas.h.

◆ GetFunctionX()

double QmitkColorTransferFunctionCanvas::GetFunctionX ( int  index)
inlineoverridevirtual

Implements QmitkTransferFunctionCanvas.

Definition at line 59 of file QmitkColorTransferFunctionCanvas.h.

◆ GetFunctionY()

double QmitkColorTransferFunctionCanvas::GetFunctionY ( int  )
inlineoverridevirtual

Implements QmitkTransferFunctionCanvas.

Definition at line 88 of file QmitkColorTransferFunctionCanvas.h.

◆ GetNearHandle()

int QmitkColorTransferFunctionCanvas::GetNearHandle ( int  x,
int  y,
unsigned int  maxSquaredDistance = 32 
)
overridevirtual

◆ MoveFunctionPoint()

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

◆ paintEvent()

void QmitkColorTransferFunctionCanvas::paintEvent ( QPaintEvent *  e)
override

◆ RemoveAllFunctionPoints()

void QmitkColorTransferFunctionCanvas::RemoveAllFunctionPoints ( )
inline

Definition at line 83 of file QmitkColorTransferFunctionCanvas.h.

◆ RemoveFunctionPoint()

void QmitkColorTransferFunctionCanvas::RemoveFunctionPoint ( double  x)
inlineoverridevirtual

◆ SetColorTransferFunction()

void QmitkColorTransferFunctionCanvas::SetColorTransferFunction ( vtkColorTransferFunction *  colorTransferFunction)
inline

◆ SetTitle()

void QmitkColorTransferFunctionCanvas::SetTitle ( const QString &  title)

Member Data Documentation

◆ m_ColorTransferFunction

vtkColorTransferFunction* QmitkColorTransferFunctionCanvas::m_ColorTransferFunction
protected

Definition at line 90 of file QmitkColorTransferFunctionCanvas.h.

◆ m_Title

QString QmitkColorTransferFunctionCanvas::m_Title
protected

Definition at line 91 of file QmitkColorTransferFunctionCanvas.h.


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