Commit 4a97483f authored by lassoan's avatar lassoan
Browse files

ENH: Simplified hiding of volume rendering display nodes

Volume rendering display node was set to be hidden at the lowest level of the class hierarchy:
* vtkMRMLCPURayCastVolumeRenderingDisplayNode -> this->SetHideFromEditors(1);
* vtkMRMLVolumeRenderingDisplayNode -> this->SetHideFromEditors(false);
* vtkMRMLDisplayNode -> this->HideFromEditors = 1;
* vtkMRMLNode -> this->HideFromEditors = 0;

This was unnecessarily complex and confusing. Simplified it by removing HideFromEditors flag adjustment in all volume rendering display node base class and all children classes:
* vtkMRMLDisplayNode -> this->HideFromEditors = 1;
* vtkMRMLNode -> this->HideFromEditors = 0;

git-svn-id: http://svn.slicer.org/Slicer4/trunk@24997 3bd1e089-480b-0410-8dfb-8563597acbee
parent 765eb815
......@@ -34,8 +34,6 @@ vtkMRMLNodeNewMacro(vtkMRMLCPURayCastVolumeRenderingDisplayNode);
vtkMRMLCPURayCastVolumeRenderingDisplayNode::vtkMRMLCPURayCastVolumeRenderingDisplayNode()
{
this->RaycastTechnique = vtkMRMLCPURayCastVolumeRenderingDisplayNode::Composite;
this->SetHideFromEditors(1);
}
//----------------------------------------------------------------------------
......
......@@ -34,8 +34,6 @@ vtkMRMLNodeNewMacro(vtkMRMLGPURayCastVolumeRenderingDisplayNode);
vtkMRMLGPURayCastVolumeRenderingDisplayNode::vtkMRMLGPURayCastVolumeRenderingDisplayNode()
{
this->RaycastTechnique = vtkMRMLGPURayCastVolumeRenderingDisplayNode::Composite;
this->SetHideFromEditors(1);
}
//----------------------------------------------------------------------------
......
......@@ -74,8 +74,6 @@ vtkMRMLVolumeRenderingDisplayNode::vtkMRMLVolumeRenderingDisplayNode()
this->WindowLevel[1] = 0.0;
this->PerformanceControl = 0;
this->SetHideFromEditors(false);
}
//----------------------------------------------------------------------------
......
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