-----------------------------------------------------------------------------
| 466 | |
| 467 | //----------------------------------------------------------------------------- |
| 468 | inline void vtkPixelExtent::operator|=(const vtkPixelExtent& other) |
| 469 | { |
| 470 | if (other.Empty()) |
| 471 | { |
| 472 | return; |
| 473 | } |
| 474 | |
| 475 | if (this->Empty()) |
| 476 | { |
| 477 | this->SetData(other.GetData()); |
| 478 | return; |
| 479 | } |
| 480 | |
| 481 | this->Data[0] = (std::min)(this->Data[0], other.Data[0]); |
| 482 | this->Data[1] = (std::max)(this->Data[1], other.Data[1]); |
| 483 | this->Data[2] = (std::min)(this->Data[2], other.Data[2]); |
| 484 | this->Data[3] = (std::max)(this->Data[3], other.Data[3]); |
| 485 | } |
| 486 | |
| 487 | //----------------------------------------------------------------------------- |
| 488 | inline int vtkPixelExtent::Disjoint(vtkPixelExtent other) const |