21 #ifndef __qMRMLUtils_h 22 #define __qMRMLUtils_h 30 #include "qMRMLWidgetsExport.h" 40 #define compare_double(x, y) (((x-y)<0.000001) && ((x-y)>-0.000001)) 52 Q_INVOKABLE
static void vtkMatrixToQVector(vtkMatrix4x4* matrix, QVector<double> & vector);
55 Q_INVOKABLE
static void getTransformInCoordinateSystem(
vtkMRMLNode* transformNode,
bool global,
56 vtkTransform* transform);
58 bool global, vtkTransform* transform);
61 Q_INVOKABLE
static int countVisibleViewNode(
vtkMRMLScene* scene);
64 Q_INVOKABLE
static QPixmap createColorPixmap(QStyle * style,
const QColor& color);
67 Q_INVOKABLE
static bool vtkImageDataToQImage(vtkImageData* vtkimage, QImage& img);
70 Q_INVOKABLE
static bool qImageToVtkImageData(
const QImage& img, vtkImageData* vtkimage);
73 Q_INVOKABLE
static void colorToQColor(
const double *color, QColor &qcolor);
76 Q_INVOKABLE
static void qColorToColor(
const QColor &qcolor,
double* color);
A set of MRML Nodes that supports serialization and undo/redo.
Abstract Superclass for all specific types of MRML nodes.