ENH: units/coordinates display in DataProbe
here I propose some modifications for implementing the two first points of: http://www.na-mic.org/Bug/view.php?id=4020
main modifications:
-
GetPixelString is now a method of vtkMRMLScalarVolumeDisplayNode. Child class methods have been implemented (Label and DiffusionTensor).
-
for enabling customization of the coordinate and units display I have added the following method: a) GetCustomizeWorldCoordinates in the vtkMRMLScalarVolumeNode (extension can fill the method for showing different coordinate in DataProbe b) added in vtkMRMLVolumeDisplayNode the following attributes and relative GET/SET method (and copy, WriteXML, etc.): HorizontalQuantity = "length"; VerticalQuantity = "length"; DepthQuantity = "length"; sysref = "RAS";
extension can modify this attributes for displaying different coordinates and units for each
each dimension (for the moment only for the GUI of DataProbe). DataProbe now use these, in
ProcessEvent, to format the string viewInfo.text. The coordinates and units display is set to the
first volume found with this order of priority : BackgroundLayer, ForegroundLayer and LabelLayer.
@finetjul, @pieper may you check this and have your feedback? Thanks.