qMRMLUtils Class Reference

#include <qMRMLUtils.h>

List of all members.

Public Types

typedef qMRMLUtils Self

Static Public Member Functions

static bool canBeAChild (vtkMRMLNode *node)
 fast function that only check the type of the node to know if it can be a child.
static bool canBeAParent (vtkMRMLNode *node)
 fast function that only check the type of the node to know if it can be a parent.
static bool canReparent (vtkMRMLNode *node, vtkMRMLNode *newParent)
 fast function that check if the node can be a child of newParent
static int childCount (vtkMRMLScene *node)
 count 1 level of children
static int childCount (vtkMRMLNode *node)
 count 1 level of children
static vtkMRMLNodechildNode (vtkMRMLNode *node, int childIndex=0)
static void getTransformInCoordinateSystem (vtkMRMLLinearTransformNode *transformNode, bool global, vtkTransform *transform)
static void getTransformInCoordinateSystem (vtkMRMLNode *transformNode, bool global, vtkTransform *transform)
static int nodeIndex (vtkMRMLNode *node)
static vtkMRMLNodeparentNode (vtkMRMLNode *node)
static bool reparent (vtkMRMLNode *node, vtkMRMLNode *newParent)
 if newParent == 0, set the node into the vtkMRMLScene
static vtkMRMLNodetopLevelNthNode (vtkMRMLScene *scene, int index)
static void vtkMatrixToQVector (vtkMatrix4x4 *matrix, QVector< double > &vector)

Private Member Functions

 qMRMLUtils ()
 Not implemented.
virtual ~qMRMLUtils ()

Member Typedef Documentation


Constructor & Destructor Documentation

qMRMLUtils::qMRMLUtils (  )  [inline, private]

Not implemented.

virtual qMRMLUtils::~qMRMLUtils (  )  [inline, private, virtual]

Member Function Documentation

bool qMRMLUtils::canBeAChild ( vtkMRMLNode node  )  [static]

fast function that only check the type of the node to know if it can be a child.

Referenced by qMRMLNodeItemHelper::flags(), and qMRMLItemModel::flags().

bool qMRMLUtils::canBeAParent ( vtkMRMLNode node  )  [static]

fast function that only check the type of the node to know if it can be a parent.

Referenced by childNode(), qMRMLNodeItemHelper::flags(), qMRMLItemModel::flags(), qMRMLNodeItemHelper::hasChildren(), and qMRMLItemModel::hasChildren().

bool qMRMLUtils::canReparent ( vtkMRMLNode node,
vtkMRMLNode newParent 
) [static]

fast function that check if the node can be a child of newParent

int qMRMLUtils::childCount ( vtkMRMLScene node  )  [static]
int qMRMLUtils::childCount ( vtkMRMLNode node  )  [static]

count 1 level of children

References vtkMRMLNode::GetScene(), mathExample::n, and parentNode().

Referenced by childCount(), qMRMLUtilsTest1(), and qMRMLItemModel::rowCount().

vtkMRMLNode * qMRMLUtils::childNode ( vtkMRMLNode node,
int  childIndex = 0 
) [static]
void qMRMLUtils::getTransformInCoordinateSystem ( vtkMRMLLinearTransformNode transformNode,
bool  global,
vtkTransform transform 
) [static]
void qMRMLUtils::getTransformInCoordinateSystem ( vtkMRMLNode transformNode,
bool  global,
vtkTransform transform 
) [static]
int qMRMLUtils::nodeIndex ( vtkMRMLNode node  )  [static]
vtkMRMLNode * qMRMLUtils::parentNode ( vtkMRMLNode node  )  [static]
bool qMRMLUtils::reparent ( vtkMRMLNode node,
vtkMRMLNode newParent 
) [static]
vtkMRMLNode * qMRMLUtils::topLevelNthNode ( vtkMRMLScene scene,
int  index 
) [static]
void qMRMLUtils::vtkMatrixToQVector ( vtkMatrix4x4 *  matrix,
QVector< double > &  vector 
) [static]

Convert a vtkMatrix to a QVector

References j.


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

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1