#include <Libs/MRML/Widgets/qMRMLUtils.h>
|
static Q_INVOKABLE void | colorToQColor (const double *color, QColor &qcolor) |
| Convert C++ RGB array to QColor. More...
|
|
static Q_INVOKABLE int | countVisibleViewNode (vtkMRMLScene *scene) |
| Retrieve the number of visible view node associated with scene. More...
|
|
static Q_INVOKABLE QPixmap | createColorPixmap (QStyle *style, const QColor &color) |
| Create Icon using the given color. More...
|
|
static Q_INVOKABLE void | getTransformInCoordinateSystem (vtkMRMLNode *transformNode, bool global, vtkTransform *transform) |
|
static Q_INVOKABLE void | getTransformInCoordinateSystem (vtkMRMLTransformNode *transformNode, bool global, vtkTransform *transform) |
|
static Q_INVOKABLE void | qColorToColor (const QColor &qcolor, double *color) |
| Convert QColor to C++ RGB array. More...
|
|
static Q_INVOKABLE bool | qImageToVtkImageData (const QImage &img, vtkImageData *vtkimage) |
| Convert QImage to vtkImageData. More...
|
|
static Q_INVOKABLE bool | vtkImageDataToQImage (vtkImageData *vtkimage, QImage &img) |
| Convert vtkImageData to QImage. More...
|
|
static Q_INVOKABLE void | vtkMatrixToQVector (vtkMatrix4x4 *matrix, QVector< double > &vector) |
|
Convert a vtkMatrix to a QVector More...
|
|
Definition at line 42 of file qMRMLUtils.h.
◆ Self
◆ qMRMLUtils()
qMRMLUtils::qMRMLUtils |
( |
QObject * |
parent = 0 | ) |
|
◆ ~qMRMLUtils()
virtual qMRMLUtils::~qMRMLUtils |
( |
| ) |
|
|
virtual |
◆ colorToQColor()
static Q_INVOKABLE void qMRMLUtils::colorToQColor |
( |
const double * |
color, |
|
|
QColor & |
qcolor |
|
) |
| |
|
static |
Convert C++ RGB array to QColor.
◆ countVisibleViewNode()
static Q_INVOKABLE int qMRMLUtils::countVisibleViewNode |
( |
vtkMRMLScene * |
scene | ) |
|
|
static |
Retrieve the number of visible view node associated with scene.
◆ createColorPixmap()
static Q_INVOKABLE QPixmap qMRMLUtils::createColorPixmap |
( |
QStyle * |
style, |
|
|
const QColor & |
color |
|
) |
| |
|
static |
Create Icon using the given color.
◆ getTransformInCoordinateSystem() [1/2]
static Q_INVOKABLE void qMRMLUtils::getTransformInCoordinateSystem |
( |
vtkMRMLNode * |
transformNode, |
|
|
bool |
global, |
|
|
vtkTransform * |
transform |
|
) |
| |
|
static |
◆ getTransformInCoordinateSystem() [2/2]
static Q_INVOKABLE void qMRMLUtils::getTransformInCoordinateSystem |
( |
vtkMRMLTransformNode * |
transformNode, |
|
|
bool |
global, |
|
|
vtkTransform * |
transform |
|
) |
| |
|
static |
◆ qColorToColor()
static Q_INVOKABLE void qMRMLUtils::qColorToColor |
( |
const QColor & |
qcolor, |
|
|
double * |
color |
|
) |
| |
|
static |
Convert QColor to C++ RGB array.
◆ qImageToVtkImageData()
static Q_INVOKABLE bool qMRMLUtils::qImageToVtkImageData |
( |
const QImage & |
img, |
|
|
vtkImageData * |
vtkimage |
|
) |
| |
|
static |
Convert QImage to vtkImageData.
◆ vtkImageDataToQImage()
static Q_INVOKABLE bool qMRMLUtils::vtkImageDataToQImage |
( |
vtkImageData * |
vtkimage, |
|
|
QImage & |
img |
|
) |
| |
|
static |
Convert vtkImageData to QImage.
◆ vtkMatrixToQVector()
static Q_INVOKABLE void qMRMLUtils::vtkMatrixToQVector |
( |
vtkMatrix4x4 * |
matrix, |
|
|
QVector< double > & |
vector |
|
) |
| |
|
static |
Convert a vtkMatrix to a QVector
The documentation for this class was generated from the following file: