21 #ifndef __qMRMLUtils_h 22 #define __qMRMLUtils_h 30 #include "vtkIdList.h" 31 #include "qMRMLWidgetsExport.h" 42 #define compare_double(x, y) (((x-y)<0.000001) && ((x-y)>-0.000001)) 54 Q_INVOKABLE
static void vtkMatrixToQVector(vtkMatrix4x4* matrix, QVector<double> & vector);
57 Q_INVOKABLE
static void getTransformInCoordinateSystem(
vtkMRMLNode* transformNode,
bool global,
58 vtkTransform* transform);
60 bool global, vtkTransform* transform);
63 Q_INVOKABLE
static int countVisibleViewNode(
vtkMRMLScene* scene);
66 Q_INVOKABLE
static QPixmap createColorPixmap(QStyle * style,
const QColor& color);
69 Q_INVOKABLE
static bool vtkImageDataToQImage(vtkImageData* vtkimage, QImage& img);
72 Q_INVOKABLE
static bool qImageToVtkImageData(
const QImage& img, vtkImageData* vtkimage);
75 Q_INVOKABLE
static void colorToQColor(
const double *color, QColor &qcolor);
78 Q_INVOKABLE
static void qColorToColor(
const QColor &qcolor,
double* color);
80 Q_INVOKABLE
static void mimeDataToSubjectHierarchyItemIDs(
const QMimeData* mimeData, vtkIdList* idList);
A set of MRML Nodes that supports serialization and undo/redo.
Abstract Superclass for all specific types of MRML nodes.