Skip to content

Conversation

@LauraConnolly
Copy link

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

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

}
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

{
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