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

Method SetAxisUpdateExtent

Common/DataModel/vtkImageData.cxx:1340–1358  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1338
1339//------------------------------------------------------------------------------
1340void vtkImageData::SetAxisUpdateExtent(
1341 int idx, int min, int max, const int* updateExtent, int* axisUpdateExtent)
1342{
1343 if (idx > 2)
1344 {
1345 vtkWarningMacro("illegal axis!");
1346 return;
1347 }
1348
1349 memcpy(axisUpdateExtent, updateExtent, 6 * sizeof(int));
1350 if (axisUpdateExtent[idx * 2] != min)
1351 {
1352 axisUpdateExtent[idx * 2] = min;
1353 }
1354 if (axisUpdateExtent[idx * 2 + 1] != max)
1355 {
1356 axisUpdateExtent[idx * 2 + 1] = max;
1357 }
1358}
1359
1360//------------------------------------------------------------------------------
1361void vtkImageData::GetAxisUpdateExtent(int idx, int& min, int& max, const int* updateExtent)

Callers 2

vtkImageWriter.cxxFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected