Skip to content
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

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open

Conversation

LauraConnolly
Copy link

Added function in OpenIGTLinkIF -> MRML -> vtkMRMLConnectorNode to add NDArray messages to a table node in slicer.

int wasModifyingNode = modifiedNode->StartModify();

const std::string deviceType = modifiedDevice->GetDeviceType();
const std::string deviceName = modifiedDevice->GetDeviceName();

std::cout << deviceType << std::endl;
Copy link
Contributor

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;
Copy link
Contributor

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);
}
}
Copy link
Contributor

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

@lassoan
Copy link
Contributor

lassoan commented Nov 27, 2020

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.

Sunderlandkyl and others added 19 commits November 23, 2021 13:19
…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.
Sunderlandkyl and others added 11 commits November 23, 2021 13:20
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants