-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Omni support #106
base: master
Are you sure you want to change the base?
Omni support #106
Conversation
int wasModifyingNode = modifiedNode->StartModify(); | ||
|
||
const std::string deviceType = modifiedDevice->GetDeviceType(); | ||
const std::string deviceName = modifiedDevice->GetDeviceName(); | ||
|
||
std::cout << deviceType << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove all print statements
@@ -360,6 +382,32 @@ void vtkMRMLIGTLConnectorNode::vtkInternal::ProcessIncomingDeviceModifiedEvent( | |||
statusNode->Modified(); | |||
} | |||
} | |||
else if (strcmp(deviceType.c_str(), "NDARRAY") == 0) | |||
{ | |||
std::cout << "Device type is nd array" << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove commented lines and re-indent to 2 spaces
@@ -2534,4 +2603,4 @@ void vtkMRMLIGTLConnectorNode::SetCheckCRC(bool check) | |||
bool vtkMRMLIGTLConnectorNode::GetCheckCRC() | |||
{ | |||
return (this->Internal->IOConnector->GetCheckCRC() != 0); | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please restore the newline at the end of the file
I can help with the cleanup, but I would need to confirm first that everything is working as is. For that I would need the latest OpenGITLinkIO changes as well, and it seems that those are not the latest. So, I'll get back to this after OpenIGTLinkIO is good. |
…dency This commit adds VTK as dependency when the OpenIGTLinkIO external project is built in a Slicer custom application. Co-authored-by: Sam Horvath <[email protected]>
…essage (openigtlink#107) * ENH: Ensure correct spacing, origin, and directions when receiving an igtl Image message
…ode name. this is more robust against any user modification of node names
…if, rename of nodes needs to be determined by the query type instead of volume type.
Some extensions still used the RegisterIncomingMRMLNode(vtkMRMLNode*) signature. Restored so that those extensions can keep working.
Previously nodes were created directly by calling New, which circumvented the default parameters specified by the scene. Fixed by calling mrmlScene->CreateNodeByClass() instead of creating a node with New().
When a Python package was installed on the (Windows) machine, then configuration of OpenIGTLinkIO failed due to incorrect (or even after uninstalling the other Python, undefined) Python3_EXECUTABLE variable.
… change. Got rid of extra empty lines, print statements and comments too.
Added function in OpenIGTLinkIF -> MRML -> vtkMRMLConnectorNode to add NDArray messages to a table node in slicer.