MCPcopy Create free account
hub / github.com/Kitware/VTK / operator&=

Method operator&=

Common/DataModel/vtkPixelExtent.h:443–465  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

441
442//-----------------------------------------------------------------------------
443inline 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//-----------------------------------------------------------------------------
468inline void vtkPixelExtent::operator|=(const vtkPixelExtent& other)

Callers

nothing calls this directly

Calls 2

EmptyMethod · 0.95
ClearMethod · 0.95

Tested by

no test coverage detected