Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions
qMRMLUtils Class Reference

#include <Libs/MRML/Widgets/qMRMLUtils.h>

Inheritance diagram for qMRMLUtils:
Inheritance graph
[legend]
Collaboration diagram for qMRMLUtils:
Collaboration graph
[legend]

Public Types

typedef qMRMLUtils Self
 

Public Member Functions

 qMRMLUtils (QObject *parent=nullptr)
 
 ~qMRMLUtils () override
 

Static Public Member Functions

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 mimeDataToSubjectHierarchyItemIDs (const QMimeData *mimeData, vtkIdList *idList)
 
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...
 

Detailed Description

Definition at line 44 of file qMRMLUtils.h.

Member Typedef Documentation

◆ Self

Definition at line 46 of file qMRMLUtils.h.

Constructor & Destructor Documentation

◆ qMRMLUtils()

qMRMLUtils::qMRMLUtils ( QObject *  parent = nullptr)

◆ ~qMRMLUtils()

qMRMLUtils::~qMRMLUtils ( )
override

Member Function Documentation

◆ 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

◆ mimeDataToSubjectHierarchyItemIDs()

static Q_INVOKABLE void qMRMLUtils::mimeDataToSubjectHierarchyItemIDs ( const QMimeData *  mimeData,
vtkIdList *  idList 
)
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: