MCPcopy Create free account
hub / github.com/Kitware/VTK / PrintSelf

Method PrintSelf

Common/DataModel/vtkCell.cxx:545–580  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

543
544//------------------------------------------------------------------------------
545void vtkCell::PrintSelf(ostream& os, vtkIndent indent)
546{
547 this->Superclass::PrintSelf(os, indent);
548
549 int numIds = this->PointIds->GetNumberOfIds();
550
551 os << indent << "Number Of Points: " << numIds << "\n";
552
553 if (numIds > 0)
554 {
555 const double* bounds = this->GetBounds();
556
557 os << indent << "Bounds: \n";
558 os << indent << " Xmin,Xmax: (" << bounds[0] << ", " << bounds[1] << ")\n";
559 os << indent << " Ymin,Ymax: (" << bounds[2] << ", " << bounds[3] << ")\n";
560 os << indent << " Zmin,Zmax: (" << bounds[4] << ", " << bounds[5] << ")\n";
561
562 os << indent << " Point ids are: ";
563 for (int i = 0; i < numIds; i++)
564 {
565 os << this->PointIds->GetId(i);
566 if (i && !(i % 12))
567 {
568 os << "\n\t";
569 }
570 else
571 {
572 if (i != (numIds - 1))
573 {
574 os << ", ";
575 }
576 }
577 }
578 os << indent << "\n";
579 }
580}
581
582// Usually overridden. Only composite cells do not override this.
583double* vtkCell::GetParametricCoords()

Callers

nothing calls this directly

Calls 3

GetBoundsMethod · 0.95
GetNumberOfIdsMethod · 0.45
GetIdMethod · 0.45

Tested by

no test coverage detected