Commit bdc5bbf3 authored by Brad King's avatar Brad King 💬
Browse files

Fix HyperTreeGrid PrintSelf methods

Label recursive member PrintSelf output.  Do not call PrintSelf on NULL
members.

Change-Id: Ie5b6c0681123b7df47adb779b4c8ae4798434acd
parent 16eeea23
......@@ -215,10 +215,42 @@ void vtkHyperTreeGridAxisCut::PrintSelf(ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf( os, indent );
this->Input->PrintSelf( os, indent.GetNextIndent() );
this->Output->PrintSelf( os, indent.GetNextIndent() );
this->Points->PrintSelf( os, indent.GetNextIndent() );
this->Cells->PrintSelf( os, indent.GetNextIndent() );
if(this->Input)
{
os << indent << "Input:\n";
this->Input->PrintSelf( os, indent.GetNextIndent() );
}
else
{
os << indent << "Input: (none)\n";
}
if(this->Output)
{
os << indent << "Output:\n";
this->Output->PrintSelf( os, indent.GetNextIndent() );
}
else
{
os << indent << "Output: (none)\n";
}
if(this->Points)
{
os << indent << "Points:\n";
this->Points->PrintSelf( os, indent.GetNextIndent() );
}
else
{
os << indent << "Points: (none)\n";
}
if(this->Cells)
{
os << indent << "Cells:\n";
this->Cells->PrintSelf( os, indent.GetNextIndent() );
}
else
{
os << indent << "Cells: (none)\n";
}
os << indent << "Plane Normal Axis : " << this->PlaneNormalAxis << endl;
os << indent << "Plane Position : " << this->PlanePosition << endl;
......
......@@ -235,8 +235,40 @@ void vtkHyperTreeGridGeometry::PrintSelf(ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf( os, indent );
this->Input->PrintSelf( os, indent.GetNextIndent() );
this->Output->PrintSelf( os, indent.GetNextIndent() );
this->Points->PrintSelf( os, indent.GetNextIndent() );
this->Cells->PrintSelf( os, indent.GetNextIndent() );
if(this->Input)
{
os << indent << "Input:\n";
this->Input->PrintSelf( os, indent.GetNextIndent() );
}
else
{
os << indent << "Input: (none)\n";
}
if(this->Output)
{
os << indent << "Output:\n";
this->Output->PrintSelf( os, indent.GetNextIndent() );
}
else
{
os << indent << "Output: (none)\n";
}
if(this->Points)
{
os << indent << "Points:\n";
this->Points->PrintSelf( os, indent.GetNextIndent() );
}
else
{
os << indent << "Points: (none)\n";
}
if(this->Cells)
{
os << indent << "Cells:\n";
this->Cells->PrintSelf( os, indent.GetNextIndent() );
}
else
{
os << indent << "Cells: (none)\n";
}
}
Supports Markdown
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