MCPcopy Create free account
hub / github.com/Kitware/VTK / RegisterTexturePoints

Method RegisterTexturePoints

IO/ExportPDF/vtkPDFContextDevice2D.cxx:1776–1788  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1774
1775//------------------------------------------------------------------------------
1776void vtkPDFContextDevice2D::RegisterTexturePoints(float* data, int numPoints)
1777{
1778 if (this->IsInTexturedFill)
1779 {
1780 for (int i = 0; i < numPoints; ++i)
1781 {
1782 this->TextureBounds[0] = std::min(this->TextureBounds[0], data[2 * i]);
1783 this->TextureBounds[1] = std::max(this->TextureBounds[1], data[2 * i]);
1784 this->TextureBounds[2] = std::min(this->TextureBounds[2], data[2 * i + 1]);
1785 this->TextureBounds[3] = std::max(this->TextureBounds[3], data[2 * i + 1]);
1786 }
1787 }
1788}
1789
1790//------------------------------------------------------------------------------
1791void vtkPDFContextDevice2D::FillTexture()

Callers 4

DrawQuadMethod · 0.95
DrawQuadStripMethod · 0.95
DrawPolygonMethod · 0.95
DrawEllipseWedgeMethod · 0.95

Calls 2

minFunction · 0.50
maxFunction · 0.50

Tested by

no test coverage detected