-----------------------------------------------------------------------------
| 441 | |
| 442 | //----------------------------------------------------------------------------- |
| 443 | inline void vtkPixelExtent::operator&=(const vtkPixelExtent& other) |
| 444 | { |
| 445 | if (this->Empty()) |
| 446 | { |
| 447 | return; |
| 448 | } |
| 449 | |
| 450 | if (other.Empty()) |
| 451 | { |
| 452 | this->Clear(); |
| 453 | return; |
| 454 | } |
| 455 | |
| 456 | this->Data[0] = (std::max)(this->Data[0], other.Data[0]); |
| 457 | this->Data[1] = (std::min)(this->Data[1], other.Data[1]); |
| 458 | this->Data[2] = (std::max)(this->Data[2], other.Data[2]); |
| 459 | this->Data[3] = (std::min)(this->Data[3], other.Data[3]); |
| 460 | |
| 461 | if (this->Empty()) |
| 462 | { |
| 463 | this->Clear(); |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | //----------------------------------------------------------------------------- |
| 468 | inline void vtkPixelExtent::operator|=(const vtkPixelExtent& other) |