------------------------------------------------------------------------------
| 55 | |
| 56 | //------------------------------------------------------------------------------ |
| 57 | void vtkStructuredGridConnectivity::PrintSelf(std::ostream& os, vtkIndent indent) |
| 58 | { |
| 59 | this->Superclass::PrintSelf(os, indent); |
| 60 | |
| 61 | os << "========================\n"; |
| 62 | os << "DATA DIMENSION: " << this->DataDimension << std::endl; |
| 63 | os << "WHOLE EXTENT: [ "; |
| 64 | for (int i = 0; i < 6; i++) |
| 65 | { |
| 66 | os << this->WholeExtent[i] << " "; |
| 67 | } |
| 68 | os << "]\n"; |
| 69 | os << "CONNECTIVITY INFORMATION: \n"; |
| 70 | for (unsigned int gridID = 0; gridID < this->NumberOfGrids; ++gridID) |
| 71 | { |
| 72 | int GridExtent[6]; |
| 73 | int RealExtent[6]; |
| 74 | this->GetGridExtent(gridID, GridExtent); |
| 75 | this->GetRealExtent(gridID, GridExtent, RealExtent); |
| 76 | os << "GRID[ " << gridID << "]: "; |
| 77 | for (int i = 0; i < 6; i += 2) |
| 78 | { |
| 79 | os << " ["; |
| 80 | os << GridExtent[i] << ", " << GridExtent[i + 1] << "]"; |
| 81 | } |
| 82 | os << " REAL EXTENT: "; |
| 83 | for (int i = 0; i < 6; i += 2) |
| 84 | { |
| 85 | os << " ["; |
| 86 | os << RealExtent[i] << ", " << RealExtent[i + 1] << "]"; |
| 87 | } |
| 88 | os << std::endl; |
| 89 | os << " Connecting faces: " << this->GetNumberOfConnectingBlockFaces(gridID) << " "; |
| 90 | |
| 91 | os << "[ "; |
| 92 | if (this->HasBlockConnection(gridID, BlockFace::FRONT)) |
| 93 | { |
| 94 | os << "FRONT(+k) "; |
| 95 | } |
| 96 | if (this->HasBlockConnection(gridID, BlockFace::BACK)) |
| 97 | { |
| 98 | os << "BACK(-k) "; |
| 99 | } |
| 100 | if (this->HasBlockConnection(gridID, BlockFace::RIGHT)) |
| 101 | { |
| 102 | os << "RIGHT(+i) "; |
| 103 | } |
| 104 | if (this->HasBlockConnection(gridID, BlockFace::LEFT)) |
| 105 | { |
| 106 | os << "LEFT(-i) "; |
| 107 | } |
| 108 | if (this->HasBlockConnection(gridID, BlockFace::TOP)) |
| 109 | { |
| 110 | os << "TOP(+j) "; |
| 111 | } |
| 112 | if (this->HasBlockConnection(gridID, BlockFace::BOTTOM)) |
| 113 | { |
| 114 | os << "BOTTOM(-j) "; |
nothing calls this directly
no test coverage detected