#include <Modules/Loadable/SubjectHierarchy/Logic/vtkSlicerSubjectHierarchyModuleLogic.h>
|
static vtkIdType | AreItemsInSameBranch (vtkMRMLSubjectHierarchyNode *shNode, vtkIdType item1, vtkIdType item2, std::string lowestCommonLevel) |
|
static vtkIdType | AreNodesInSameBranch (vtkMRMLNode *node1, vtkMRMLNode *node2, std::string lowestCommonLevel) |
|
static vtkIdType | CloneSubjectHierarchyItem (vtkMRMLSubjectHierarchyNode *shNode, vtkIdType itemID, const char *name=NULL) |
|
static void | HardenTransformOnBranch (vtkMRMLSubjectHierarchyNode *shNode, vtkIdType itemID) |
|
static vtkIdType | InsertDicomSeriesInHierarchy (vtkMRMLSubjectHierarchyNode *shNode, const char *subjectId, const char *studyInstanceUID, const char *seriesInstanceUID) |
|
static bool | IsPatientTag (std::string tagName) |
| Determine if a tag name is a patient tag (not attribute, but tag - without prefix!) More...
|
|
static bool | IsStudyTag (std::string tagName) |
| Determine if a tag name is a study tag (not attribute, but tag - without prefix!) More...
|
|
static int | IsTypeOf (const char *type) |
|
static vtkSlicerSubjectHierarchyModuleLogic * | New () |
|
static vtkSlicerSubjectHierarchyModuleLogic * | SafeDownCast (vtkObject *o) |
|
static void | TransformBranch (vtkMRMLSubjectHierarchyNode *shNode, vtkIdType itemID, vtkMRMLTransformNode *transformNode, bool hardenExistingTransforms=true) |
|
static int | IsTypeOf (const char *type) |
|
static vtkSlicerModuleLogic * | New () |
| The Usual vtk class functions. More...
|
|
static vtkSlicerModuleLogic * | SafeDownCast (vtkObject *o) |
|
static int | IsTypeOf (const char *type) |
|
static vtkMRMLAbstractLogic * | New () |
|
static vtkMRMLAbstractLogic * | SafeDownCast (vtkObject *o) |
|
|
static void | MRMLLogicsCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
| MRMLLogicCallback is a static function to relay modified events from the logics. More...
|
|
static void | MRMLNodesCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
| MRMLNodesCallback is a static function to relay modified events from the nodes. More...
|
|
static void | MRMLSceneCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
|
◆ Superclass
◆ vtkSlicerSubjectHierarchyModuleLogic()
vtkSlicerSubjectHierarchyModuleLogic::vtkSlicerSubjectHierarchyModuleLogic |
( |
| ) |
|
|
protected |
◆ ~vtkSlicerSubjectHierarchyModuleLogic()
virtual vtkSlicerSubjectHierarchyModuleLogic::~vtkSlicerSubjectHierarchyModuleLogic |
( |
| ) |
|
|
protectedvirtual |
◆ AreItemsInSameBranch()
static vtkIdType vtkSlicerSubjectHierarchyModuleLogic::AreItemsInSameBranch |
( |
vtkMRMLSubjectHierarchyNode * |
shNode, |
|
|
vtkIdType |
item1, |
|
|
vtkIdType |
item2, |
|
|
std::string |
lowestCommonLevel |
|
) |
| |
|
static |
Determine if two subject hierarchy items are in the same branch (share the same parent)
- Parameters
-
shNode | Subject hierarchy to search in |
item1 | First item to check |
item2 | Second item to check |
lowestCommonLevel | Lowest level on which they have to share an ancestor |
- Returns
- The common parent if the two items share a parent on the specified level, INVALID_ITEM_ID otherwise
◆ AreNodesInSameBranch()
static vtkIdType vtkSlicerSubjectHierarchyModuleLogic::AreNodesInSameBranch |
( |
vtkMRMLNode * |
node1, |
|
|
vtkMRMLNode * |
node2, |
|
|
std::string |
lowestCommonLevel |
|
) |
| |
|
static |
Determine if two data nodes are in the same branch in subject hierarchy (share the same parent)
- Parameters
-
node1 | First node to check. Can be subject hierarchy node or a node associated with one |
node2 | Second node to check |
lowestCommonLevel | Lowest level on which they have to share an ancestor |
- Returns
- The common parent if the two nodes share a parent on the specified level, INVALID_ITEM_ID otherwise
◆ CloneSubjectHierarchyItem()
static vtkIdType vtkSlicerSubjectHierarchyModuleLogic::CloneSubjectHierarchyItem |
( |
vtkMRMLSubjectHierarchyNode * |
shNode, |
|
|
vtkIdType |
itemID, |
|
|
const char * |
name = NULL |
|
) |
| |
|
static |
Clone subject hierarchy node, the associated data node, and its display and storage nodes
- Parameters
-
itemID | Subject hierarchy item to clone |
name | Custom name. If omitted, then default postfix is added from |
- See also
- node
- Returns
- Clone subject hierarchy node
◆ GetClassName()
virtual const char* vtkSlicerSubjectHierarchyModuleLogic::GetClassName |
( |
| ) |
|
|
virtual |
◆ GetSubjectHierarchyNode()
Convenience function to get subject hierarchy node from the logic.
◆ HardenTransformOnBranch()
Harden transform on subject hierarchy item and on all children, recursively
- Parameters
-
shNode | Subject hierarchy where item can be found |
itemID | Subject hierarchy item defining branch to harden transform on |
◆ InsertDicomSeriesInHierarchy()
static vtkIdType vtkSlicerSubjectHierarchyModuleLogic::InsertDicomSeriesInHierarchy |
( |
vtkMRMLSubjectHierarchyNode * |
shNode, |
|
|
const char * |
subjectId, |
|
|
const char * |
studyInstanceUID, |
|
|
const char * |
seriesInstanceUID |
|
) |
| |
|
static |
Place series in subject hierarchy. Create subject and study node if needed
- Returns
- Series subject hierarchy node of the inserted series
◆ IsA()
virtual int vtkSlicerSubjectHierarchyModuleLogic::IsA |
( |
const char * |
type | ) |
|
|
virtual |
◆ IsPatientTag()
static bool vtkSlicerSubjectHierarchyModuleLogic::IsPatientTag |
( |
std::string |
tagName | ) |
|
|
static |
Determine if a tag name is a patient tag (not attribute, but tag - without prefix!)
◆ IsStudyTag()
static bool vtkSlicerSubjectHierarchyModuleLogic::IsStudyTag |
( |
std::string |
tagName | ) |
|
|
static |
Determine if a tag name is a study tag (not attribute, but tag - without prefix!)
◆ IsTypeOf()
static int vtkSlicerSubjectHierarchyModuleLogic::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
◆ New()
◆ PrintSelf()
void vtkSlicerSubjectHierarchyModuleLogic::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
◆ SafeDownCast()
◆ SetMRMLSceneInternal()
virtual void vtkSlicerSubjectHierarchyModuleLogic::SetMRMLSceneInternal |
( |
vtkMRMLScene * |
newScene | ) |
|
|
protectedvirtual |
◆ TransformBranch()
Apply transform node as parent transform on subject hierarchy node and on all children, recursively
- Parameters
-
shNode | Subject hierarchy where item can be found |
itemID | Subject hierarchy item defining branch to apply transform on |
transformNode | Transform node to apply. If NULL, then any existing transform is removed |
hardenExistingTransforms | Mode of handling already transformed nodes. If true (default), then the possible parent transforms of target nodes are hardened before applying the specified transform. If false, then the already applied parent transforms are transformed with the specified transform (Note: this latter approach may result in unwanted transformations of other nodes) |
◆ UpdateFromMRMLScene()
virtual void vtkSlicerSubjectHierarchyModuleLogic::UpdateFromMRMLScene |
( |
| ) |
|
|
protectedvirtual |
Called every time the scene has been significantly changed.
Reimplemented from vtkMRMLAbstractLogic.
◆ CLONED_NODE_NAME_POSTFIX
const char* vtkSlicerSubjectHierarchyModuleLogic::CLONED_NODE_NAME_POSTFIX |
|
static |
The documentation for this class was generated from the following file: