Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
Medical Imaging Interaction Toolkit
QmitkTransferFunctionCanvas Class Referenceabstract

#include <QmitkTransferFunctionCanvas.h>

Inheritance diagram for QmitkTransferFunctionCanvas:
Collaboration diagram for QmitkTransferFunctionCanvas:

Public Member Functions

 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
 
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=32)=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)
 

Public Attributes

int m_GrabbedHandle
 
double m_Lower
 
double m_Upper
 
double m_Min
 
double m_Max
 
mitk::SimpleHistogramm_Histogram
 

Protected Attributes

bool m_ImmediateUpdate
 
float m_Range
 
bool m_LineEditAvailable
 
QLineEdit * m_XEdit
 
QLineEdit * m_YEdit
 

Detailed Description

Definition at line 24 of file QmitkTransferFunctionCanvas.h.

Constructor & Destructor Documentation

◆ QmitkTransferFunctionCanvas()

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

Member Function Documentation

◆ 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()

mitk::SimpleHistogram* QmitkTransferFunctionCanvas::GetHistogram ( )
inline

Definition at line 31 of file QmitkTransferFunctionCanvas.h.

◆ GetLower()

double QmitkTransferFunctionCanvas::GetLower ( )
inline

Definition at line 47 of file QmitkTransferFunctionCanvas.h.

◆ GetMax()

double QmitkTransferFunctionCanvas::GetMax ( )
inline

Definition at line 40 of file QmitkTransferFunctionCanvas.h.

◆ GetMin()

double QmitkTransferFunctionCanvas::GetMin ( )
inline

Definition at line 33 of file QmitkTransferFunctionCanvas.h.

◆ GetNearHandle()

virtual int QmitkTransferFunctionCanvas::GetNearHandle ( int  x,
int  y,
unsigned int  maxSquaredDistance = 32 
)
pure virtual

◆ GetUpper()

double QmitkTransferFunctionCanvas::GetUpper ( )
inline

Definition at line 49 of file QmitkTransferFunctionCanvas.h.

◆ 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()

void QmitkTransferFunctionCanvas::SetHistogram ( mitk::SimpleHistogram histogram)
inline

Definition at line 32 of file QmitkTransferFunctionCanvas.h.

◆ SetImmediateUpdate()

void QmitkTransferFunctionCanvas::SetImmediateUpdate ( bool  state)

◆ SetLower()

void QmitkTransferFunctionCanvas::SetLower ( double  lower)
inline

Definition at line 48 of file QmitkTransferFunctionCanvas.h.

◆ SetMax()

void QmitkTransferFunctionCanvas::SetMax ( double  max)
inline

◆ SetMin()

void QmitkTransferFunctionCanvas::SetMin ( double  min)
inline

◆ SetQLineEdits()

void QmitkTransferFunctionCanvas::SetQLineEdits ( QLineEdit *  xEdit,
QLineEdit *  yEdit 
)
inline

Definition at line 115 of file QmitkTransferFunctionCanvas.h.

◆ SetUpper()

void QmitkTransferFunctionCanvas::SetUpper ( double  upper)
inline

Definition at line 50 of file QmitkTransferFunctionCanvas.h.

◆ 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

Member Data Documentation

◆ m_GrabbedHandle

int QmitkTransferFunctionCanvas::m_GrabbedHandle

Definition at line 67 of file QmitkTransferFunctionCanvas.h.

◆ m_Histogram

mitk::SimpleHistogram* QmitkTransferFunctionCanvas::m_Histogram

Definition at line 74 of file QmitkTransferFunctionCanvas.h.

◆ m_ImmediateUpdate

bool QmitkTransferFunctionCanvas::m_ImmediateUpdate
protected

Definition at line 123 of file QmitkTransferFunctionCanvas.h.

◆ m_LineEditAvailable

bool QmitkTransferFunctionCanvas::m_LineEditAvailable
protected

Definition at line 126 of file QmitkTransferFunctionCanvas.h.

◆ m_Lower

double QmitkTransferFunctionCanvas::m_Lower

Definition at line 69 of file QmitkTransferFunctionCanvas.h.

◆ m_Max

double QmitkTransferFunctionCanvas::m_Max

Definition at line 69 of file QmitkTransferFunctionCanvas.h.

◆ m_Min

double QmitkTransferFunctionCanvas::m_Min

Definition at line 69 of file QmitkTransferFunctionCanvas.h.

◆ m_Range

float QmitkTransferFunctionCanvas::m_Range
protected

Definition at line 124 of file QmitkTransferFunctionCanvas.h.

◆ m_Upper

double QmitkTransferFunctionCanvas::m_Upper

Definition at line 69 of file QmitkTransferFunctionCanvas.h.

◆ m_XEdit

QLineEdit* QmitkTransferFunctionCanvas::m_XEdit
protected

Definition at line 127 of file QmitkTransferFunctionCanvas.h.

◆ m_YEdit

QLineEdit* QmitkTransferFunctionCanvas::m_YEdit
protected

Definition at line 128 of file QmitkTransferFunctionCanvas.h.


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