Commit 830c27ad authored by Lisa Avila's avatar Lisa Avila
Browse files

FIX: Fixed missing/incorrect PrintSelf() information

parent 22661582
......@@ -114,7 +114,14 @@ void vtkDataObject::PrintSelf(ostream& os, vtkIndent indent)
{
vtkObject::PrintSelf(os,indent);
os << indent << "Source: " << this->Source << "\n";
if ( this->Source )
{
os << indent << "Source: " << this->Source << "\n";
}
else
{
os << indent << "Source: (none)\n";
}
os << indent << "Release Data: " << (this->ReleaseDataFlag ? "On\n" : "Off\n");
os << indent << "Data Released: " << (this->DataReleased ? "True\n" : "False\n");
......
......@@ -101,13 +101,30 @@ void vtkImageCache::PrintSelf(ostream& os, vtkIndent indent)
os << indent << "MemoryLimit: " << this->MemoryLimit << endl;
os << indent << "NumberOfScalarComponents: " <<
this->NumberOfScalarComponents << endl;
os << indent << "Source: (" << this->Source << ").\n";
if ( this->Source )
{
os << indent << "Source: (" << this->Source << ").\n";
}
else
{
os << indent << "Source: (none).\n";
}
os << indent << "ReleaseDataFlag: " << this->ReleaseDataFlag << "\n";
os << indent << "Data Released: " << this->DataReleased << "\n";
os << indent << "ScalarType: "<<vtkImageScalarTypeNameMacro(this->ScalarType)
<< "\n";
os << indent << "ImageToStructuredPoints: ("
<< this->ImageToStructuredPoints << ")\n";
if ( this->ImageToStructuredPoints )
{
os << indent << "ImageToStructuredPoints: ("
<< this->ImageToStructuredPoints << ")\n";
}
else
{
os << indent << "ImageToStructuredPoints: (none)\n";
}
os << indent << "Spacing: (" << this->Spacing[0];
for (idx = 1; idx < 3; ++idx)
......
......@@ -133,7 +133,15 @@ void vtkWindow::PrintSelf(ostream& os, vtkIndent indent)
vtkObject::PrintSelf(os,indent);
os << indent << "Erase: " << (this->Erase ? "On\n" : "Off\n");
os << indent << "Window Name: " << this->WindowName << "\n";
if ( this->WindowName )
{
os << indent << "Window Name: " << this->WindowName << "\n";
}
else
{
os << indent << "Window Name: (none)\n";
}
temp = this->GetPosition();
os << indent << "Position: (" << temp[0] << ", " << temp[1] << ")\n";
temp = this->GetSize();
......
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