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

Method operator|=

Common/DataModel/vtkPixelExtent.h:468–485  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

466
467//-----------------------------------------------------------------------------
468inline 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//-----------------------------------------------------------------------------
488inline int vtkPixelExtent::Disjoint(vtkPixelExtent other) const

Callers

nothing calls this directly

Calls 3

EmptyMethod · 0.95
SetDataMethod · 0.95
GetDataMethod · 0.45

Tested by

no test coverage detected