Skip to content
Snippets Groups Projects
Commit 7d43cf20 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Basic information provided for VTK model overlays

parent fc34a370
No related branches found
No related tags found
No related merge requests found
......@@ -302,6 +302,10 @@ labels = TypeDict({
'OverlayInfoPanel.Image' : 'NIFTI1 image',
'OverlayInfoPanel.FEATImage' : 'NIFTI1 image (FEAT analysis)',
'OverlayInfoPanel.FEATImage.featInfo' : 'FEAT information',
'OverlayInfoPanel.Model' : 'VTK model',
'OverlayInfoPanel.Model.numVertices' : 'Number of vertices',
'OverlayInfoPanel.Model.numIndices' : 'Number of indices',
'OverlayInfoPanel.dataSource' : 'Data source',
})
......@@ -562,7 +566,6 @@ anatomy = TypeDict({
nifti = TypeDict({
'dimensions' : 'Number of dimensions',
'dataSource' : 'Data source',
'datatype' : 'Data type',
'vox_units' : 'XYZ units',
......
......@@ -147,7 +147,7 @@ class OverlayInfoPanel(fslpanel.FSLViewPanel):
info.addSection(xformSect)
info.addSection(orientSect)
info.addInfo(strings.nifti['dataSource'], overlay.dataSource)
info.addInfo(strings.labels[self, 'dataSource'], overlay.dataSource)
info.addInfo(strings.nifti['datatype'],
strings.nifti['datatype', int(hdr['datatype'])])
info.addInfo(strings.nifti['descrip'], hdr['descrip'])
......@@ -243,7 +243,17 @@ class OverlayInfoPanel(fslpanel.FSLViewPanel):
def __getModelInfo(self, overlay, display):
info = OverlayInfo(display.name)
info = OverlayInfo('{} - {}'.format(
display.name,
strings.labels[self, overlay]))
info.addInfo(strings.labels[self, 'dataSource'], overlay.dataSource)
info.addInfo(
strings.labels[self, overlay, 'numVertices'],
overlay.vertices.shape[0])
info.addInfo(
strings.labels[self, overlay, 'numIndices'],
overlay.indices.shape[0])
return info
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment