Hello,
We are trying to automate data export from an IGTLink server within Slicer. Unfortunately we were not able to access more information than the number of metaElement in the vtkMRMLabelMetaListNode object.
It seems the GetLabelMetaElement is not wrapped in python, is this by design or is there a straightforward way to add that ?
igtConnNode = slicer.vtkMRMLIGTLConnectorNode()
slicer.mrmlScene.AddNode(igtConnNode)
igtConnNode.SetName("IGTserver")
igtConnNode.SetTypeClient(<IP>, <PORT>)
igtConnNode.Start()
#create image list request
queryNode = slicer.vtkMRMLIGTLQueryNode()
queryNode.SetIGTLName("IMGMETA")
queryNode.SetQueryType(queryNode.TYPE_GET)
#send query
igtConnNode.PushQuery(queryNode)
igtConnNode.ImportDataFromCircularBuffer()
igtConnNode.ImportEventsFromEventBuffer()
igtConnNode.PushOutgoingMessages()
#get the metalist
metaList = igtConnNode.GetIncomingMRMLNode(1)
imgNb = metaList.GetNumberOfImageMetaElement()
Hello,
We are trying to automate data export from an IGTLink server within Slicer. Unfortunately we were not able to access more information than the number of
metaElementin thevtkMRMLabelMetaListNodeobject.It seems the
GetLabelMetaElementis not wrapped in python, is this by design or is there a straightforward way to add that ?