------------------------------------------------------------------------------ Set the bounds in various ways
| 31 | //------------------------------------------------------------------------------ |
| 32 | // Set the bounds in various ways |
| 33 | void vtkBox::SetBounds(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax) |
| 34 | { |
| 35 | const double* minP = this->BBox->GetMinPoint(); |
| 36 | const double* maxP = this->BBox->GetMaxPoint(); |
| 37 | if ((minP[0] == xMin) && (maxP[0] == xMax) && (minP[1] == yMin) && (maxP[1] == yMax) && |
| 38 | (minP[2] == zMin) && (maxP[2] == zMax)) |
| 39 | { |
| 40 | return; |
| 41 | } |
| 42 | this->BBox->SetBounds(xMin, xMax, yMin, yMax, zMin, zMax); |
| 43 | this->Modified(); |
| 44 | } |
| 45 | |
| 46 | //------------------------------------------------------------------------------ |
| 47 | void vtkBox::SetBounds(const double bounds[6]) |