View Issue Details

IDProjectCategoryView StatusLast Update
0002374Slicer4(No Category)public2012-12-30 09:19
Reporterpieper Assigned Tofinetjul  
PriorityhighSeveritymajorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.2.1Fixed in VersionSlicer 4.2.1 
Summary0002374: glyph display on slices is broken
Description

Glyphs visibility in slices does not work.

Steps To Reproduce
  • Download DTI sample data
  • go to Volumes module
  • turn on glyphs.

Nothing shows up on slice views, but they do appear in the 3D view.

After changing layouts the Red slice glyphs appeared, but not the yellow or green. See screen shot.

TagsNo tags attached.

Relationships

related to 0002570 closedalexy Newly created fiberbundles do not display in slice viewer, when tubes on slices is turned on 
child of 0001394 closedfinetjul vtkImageResliceMask extent issue when resizing with glyphs displayed 

Activities

2012-07-28 10:08

 

jcfr

jcfr

2012-11-02 11:33

administrator   ~0007024

From Alex:

I realized that glyphs on slices are broken both in 3D view and in
slice views, they do not show up at all.

I traced the 3D display problem to your changes in revision 20910

What happens is that
vtkMRMLModelDisplayableManager::IsModelDisplayable() checks display
nodes for InputPolyData,
but vtkMRMLDiffusionTensorVolumeSliceDisplayNode has no input polydata
since it generates it internally.

The same may be true for other display nodes I guess.

I have not figure out why the 2D display does not work, I am not sure
what mechanism it uses these days. But could you take a look at 3D
display issue?

Thanks,
Alex

finetjul

finetjul

2012-11-04 14:40

administrator   ~0007042

I fixed some issues here:
https://github.com/finetjul/Slicer/tree/2374-glyph-slice-display-node

However the glyph slice in 3D view still doesn't have a LUT correctly applied nor has its position correct.

As those commits are substantial, I would like a review/green light to push into trunk.

jcfr

jcfr

2012-11-05 10:26

administrator   ~0007051

Last edited: 2012-11-05 10:27

Julien: Looking at the code, the code seems to be limited to the "glyphable" nodes. That said, we should first check that tutorials and demo involving DTI work as expected.
Also thank you for adding comments into the code, that makes the review way easier :)

Alex: Could you take care of this ?

alexy

alexy

2012-11-06 04:51

developer   ~0007067

Reassigned to Julien since he is looking at it.

finetjul

finetjul

2012-11-07 01:20

administrator   ~0007092

From what I've seen, the glyphs are black because the normals are inverted.
I believe, it's link with the fact that the entire slice has the wrong location in the 3D view.
So the slice transform might be wrong. I can't think of why the polydata redesign could have impacted that part.

jcfr

jcfr

2012-11-07 05:53

administrator   ~0007094

Assigned back to Alex.

alexy

alexy

2012-11-08 10:26

developer   ~0007121

I don't see any changes in the code, and I don't see any glyphs displayed.
Not sure why JC re-assigned to me. Sending back to Julien.

jcfr

jcfr

2012-11-08 10:29

administrator   ~0007122

The issue has been re-assigned to you because Julien mentioned that it has very probably nothing to do with the polydata re-design he introduced. Would be appreciated if you could you investigate further. Would that be possible ? Thanks

jcfr

jcfr

2012-11-09 03:17

administrator   ~0007129

Alex: Did you try the following topic: https://github.com/finetjul/Slicer/tree/2374-glyph-slice-display-node ?

finetjul

finetjul

2012-11-10 10:34

administrator   ~0007154

At the end it appeared that I made a mistake in the redesign.
So https://github.com/finetjul/Slicer/tree/2374-glyph-slice-display-node now contains the fix for 0002374.

Please review and let me know when it is safe to push on Slicer trunk.

jcfr

jcfr

2012-11-12 14:03

administrator   ~0007170

Julien> Seems the three last commits associated with https://github.com/finetjul/Slicer/commits/2374-glyph-slice-display-node are 8 days old. Does this topic include your most recent work ?

finetjul

finetjul

2012-11-12 17:13

administrator   ~0007176

Yes, I rewrote the history (squashed some commit with git rebase -i) and for some reason it kept the old date.

alexy

alexy

2012-11-13 11:39

developer   ~0007194

I am testing the functionality, but one issue I found so far:

  • controls on Glyphs on Slices Display panel do not update glyphs immediately in 2D and 3D views. They get updated on interacting with the views.
alexy

alexy

2012-11-13 11:52

developer   ~0007195

Another issue:

  1. switch between FA and Color by Orientation in Glyphs on Slices Display panel
  2. rotate in 3D view to cause update (see previous note).
  3. The glyphs turn RED in 3D view (incorrect)
  4. Zoom or pan in 2D view: glyphs become correct color in both views.
alexy

alexy

2012-11-13 11:56

developer   ~0007196

One more:
Scalar Range in the Glyphs on Slices Display panel is greyed out.

alexy

alexy

2012-11-13 12:56

developer   ~0007199

I have finished testing of Julien's branch.
I tested mostly glyphs on slices, models, hierarchies, transforms and slices. I have not found any issues except for 3 that I reported above. I suggest committing the changes

jcfr

jcfr

2012-11-15 05:30

administrator   ~0007240

Julien> Before committing, do you know what could be done to ensure the renderer is updated when expected ? Do you think it could be related to http://na-mic.org/Mantis/view.php?id=1536#c7231

jcfr

jcfr

2012-11-15 13:43

administrator   ~0007260

For reference: After talking with Julien, he will provide a working patch by tomorrow 10am.

finetjul

finetjul

2012-11-16 06:03

administrator   ~0007281

Fixed in r21427, r21428, r21429 and r21430

Issue History

Date Modified Username Field Change
2012-07-28 10:08 pieper New Issue
2012-07-28 10:08 pieper Status new => assigned
2012-07-28 10:08 pieper Assigned To => demian
2012-07-28 10:08 pieper File Added: Screen Shot 2012-07-28 at 2.07.24 PM.png
2012-07-28 10:09 pieper Relationship added child of 0001394
2012-08-22 05:56 jcfr Target Version => Slicer 4.3.0
2012-10-30 11:14 pieper Assigned To demian => alexy
2012-10-30 11:15 pieper Relationship added related to 0002570
2012-11-02 11:33 jcfr Note Added: 0007024
2012-11-04 14:40 finetjul Note Added: 0007042
2012-11-05 10:26 jcfr Note Added: 0007051
2012-11-05 10:27 jcfr Note Edited: 0007051
2012-11-06 04:51 alexy Note Added: 0007067
2012-11-06 04:51 alexy Assigned To alexy => finetjul
2012-11-06 05:21 jcfr Priority normal => high
2012-11-06 10:23 pieper Target Version Slicer 4.3.0 => Slicer 4.2.1
2012-11-07 01:20 finetjul Note Added: 0007092
2012-11-07 05:53 jcfr Assigned To finetjul => jcfr
2012-11-07 05:53 jcfr Assigned To jcfr => alexy
2012-11-07 05:53 jcfr Note Added: 0007094
2012-11-08 10:26 alexy Note Added: 0007121
2012-11-08 10:26 alexy Assigned To alexy => finetjul
2012-11-08 10:29 jcfr Note Added: 0007122
2012-11-09 03:17 jcfr Assigned To finetjul => alexy
2012-11-09 03:17 jcfr Note Added: 0007129
2012-11-10 10:34 finetjul Note Added: 0007154
2012-11-12 14:03 jcfr Note Added: 0007170
2012-11-12 17:12 finetjul Assigned To alexy => finetjul
2012-11-12 17:13 finetjul Note Added: 0007176
2012-11-13 11:39 alexy Note Added: 0007194
2012-11-13 11:52 alexy Note Added: 0007195
2012-11-13 11:56 alexy Note Added: 0007196
2012-11-13 12:56 alexy Note Added: 0007199
2012-11-15 05:30 jcfr Note Added: 0007240
2012-11-15 13:43 jcfr Note Added: 0007260
2012-11-16 06:03 finetjul Note Added: 0007281
2012-11-16 06:03 finetjul Status assigned => resolved
2012-11-16 06:03 finetjul Fixed in Version => Slicer 4.2.1
2012-11-16 06:03 finetjul Resolution open => fixed
2012-12-30 09:19 kikinis Status resolved => closed
2016-02-29 13:56 jcfr Category Module Diffusion => (No Category)