Commit 6b2539c1 authored by naucoin's avatar naucoin
Browse files

BUG: fix hide from editor flag on volume rendering nodes

The volume rendering nodes are appearing in the Data tree
after the change to set the default of the hide from editors
flag to false on the MRML node superclass.
This change sets them hidden by default and sets up the
display node combo box to show them in the Volume
Rendering Inputs panel.

Issue #2906

git-svn-id: http://svn.slicer.org/Slicer4/trunk@24995 3bd1e089-480b-0410-8dfb-8563597acbee
parent 94c1b41f
......@@ -34,6 +34,8 @@ vtkMRMLNodeNewMacro(vtkMRMLCPURayCastVolumeRenderingDisplayNode);
vtkMRMLCPURayCastVolumeRenderingDisplayNode::vtkMRMLCPURayCastVolumeRenderingDisplayNode()
{
this->RaycastTechnique = vtkMRMLCPURayCastVolumeRenderingDisplayNode::Composite;
this->SetHideFromEditors(1);
}
//----------------------------------------------------------------------------
......
......@@ -34,6 +34,8 @@ vtkMRMLNodeNewMacro(vtkMRMLGPURayCastVolumeRenderingDisplayNode);
vtkMRMLGPURayCastVolumeRenderingDisplayNode::vtkMRMLGPURayCastVolumeRenderingDisplayNode()
{
this->RaycastTechnique = vtkMRMLGPURayCastVolumeRenderingDisplayNode::Composite;
this->SetHideFromEditors(1);
}
//----------------------------------------------------------------------------
......
......@@ -28,6 +28,8 @@ vtkMRMLNodeNewMacro(vtkMRMLVolumeRenderingScenarioNode);
vtkMRMLVolumeRenderingScenarioNode::vtkMRMLVolumeRenderingScenarioNode()
{
this->ParametersNodeID = NULL;
this->SetHideFromEditors(1);
}
//----------------------------------------------------------------------------
......
......@@ -114,6 +114,9 @@
<property name="addEnabled">
<bool>false</bool>
</property>
<property name="showHidden">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment