| 223 | } |
| 224 | |
| 225 | vtkDataArray* vtkUniformHyperTreeGrid::GetYCoordinates() |
| 226 | { |
| 227 | std::cerr << "Bad to call vtkUniformHyperTreeGrid::GetYCoordinates" << std::endl; |
| 228 | // Compute coordinates only if necessary |
| 229 | if (!this->ComputedYCoordinates) |
| 230 | { |
| 231 | // Compute and store actual coordinates |
| 232 | unsigned int np = this->GetDimensions()[1]; |
| 233 | this->YCoordinates->SetNumberOfTuples(np); |
| 234 | double y = this->Origin[1]; |
| 235 | for (unsigned int i = 0; i < np; ++i, y += this->GridScale[1]) |
| 236 | { |
| 237 | this->YCoordinates->SetTuple1(i, y); |
| 238 | } |
| 239 | |
| 240 | // Keep track that computation was done |
| 241 | this->ComputedYCoordinates = true; |
| 242 | } // if ( ! this->ComputedCoordinates ) |
| 243 | |
| 244 | // Return coordinates |
| 245 | return this->YCoordinates; |
| 246 | } |
| 247 | |
| 248 | //------------------------------------------------------------------------------ |
| 249 | void vtkUniformHyperTreeGrid::SetZCoordinates(vtkDataArray* m_ZCoordinates) |
nothing calls this directly
no test coverage detected