#include <qMRMLUtils.h>
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 vtkMRMLNode * | childNode (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 vtkMRMLNode * | parentNode (vtkMRMLNode *node) |
| static bool | reparent (vtkMRMLNode *node, vtkMRMLNode *newParent) |
| if newParent == 0, set the node into the vtkMRMLScene | |
| static vtkMRMLNode * | topLevelNthNode (vtkMRMLScene *scene, int index) |
| static void | vtkMatrixToQVector (vtkMatrix4x4 *matrix, QVector< double > &vector) |
Private Member Functions | |
| qMRMLUtils () | |
| Not implemented. | |
| virtual | ~qMRMLUtils () |
| typedef qMRMLUtils qMRMLUtils::Self |
| qMRMLUtils::qMRMLUtils | ( | ) | [inline, private] |
Not implemented.
| virtual qMRMLUtils::~qMRMLUtils | ( | ) | [inline, private, virtual] |
| 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] |
count 1 level of children
References childCount(), vtkMRMLScene::GetNthNode(), vtkMRMLScene::GetNumberOfNodes(), mathExample::n, and parentNode().
| 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] |
References canBeAParent(), vtkMRMLNode::GetScene(), mathExample::n, and parentNode().
Referenced by qMRMLNodeItemHelper::child(), qMRMLNodeItemHelper::hasChildren(), qMRMLItemModel::hasChildren(), and qMRMLItemModel::index().
| 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] |
References vtkMRMLTransformableNode::GetParentTransformNode().
Referenced by childCount(), childNode(), nodeIndex(), qMRMLNodeItemHelper::parent(), qMRMLItemModel::parent(), and topLevelNthNode().
| bool qMRMLUtils::reparent | ( | vtkMRMLNode * | node, | |
| vtkMRMLNode * | newParent | |||
| ) | [static] |
if newParent == 0, set the node into the vtkMRMLScene
References vtkMRMLTransformableNode::SetAndObserveTransformNodeID(), and vtkMRMLTransformableNode::TransformModifiedEvent.
Referenced by qMRMLItemModel::dropMimeData().
| vtkMRMLNode * qMRMLUtils::topLevelNthNode | ( | vtkMRMLScene * | scene, | |
| int | index | |||
| ) | [static] |
Used by the qMRMLItemModel;
References vtkMRMLScene::GetNthNode(), vtkMRMLScene::GetNumberOfNodes(), and parentNode().
Referenced by qMRMLSceneItemHelper::child(), and qMRMLItemModel::index().
| void qMRMLUtils::vtkMatrixToQVector | ( | vtkMatrix4x4 * | matrix, | |
| QVector< double > & | vector | |||
| ) | [static] |
Convert a vtkMatrix to a QVector
References j.
1.6.1