------------------------------------------------------------------------------
| 164 | |
| 165 | //------------------------------------------------------------------------------ |
| 166 | void vtkGraph::ComputeBounds() |
| 167 | { |
| 168 | if (this->Points) |
| 169 | { |
| 170 | if (this->GetMTime() >= this->ComputeTime) |
| 171 | { |
| 172 | const double* bounds = this->Points->GetBounds(); |
| 173 | for (int i = 0; i < 6; i++) |
| 174 | { |
| 175 | this->Bounds[i] = bounds[i]; |
| 176 | } |
| 177 | // TODO: how to compute the bounds for a distributed graph? |
| 178 | this->ComputeTime.Modified(); |
| 179 | } |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | //------------------------------------------------------------------------------ |
| 184 | double* vtkGraph::GetBounds() |
no test coverage detected