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

Method InternalRequestUpdateExtent

Imaging/Core/vtkImageMagnify.cxx:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void vtkImageMagnify::InternalRequestUpdateExtent(int* inExt, int* outExt)
80{
81 int idx;
82
83 for (idx = 0; idx < 3; idx++)
84 {
85 // For Min. Round Down
86 inExt[idx * 2] = static_cast<int>(floor(
87 static_cast<double>(outExt[idx * 2]) / static_cast<double>(this->MagnificationFactors[idx])));
88 inExt[idx * 2 + 1] = static_cast<int>(floor(static_cast<double>(outExt[idx * 2 + 1]) /
89 static_cast<double>(this->MagnificationFactors[idx])));
90 }
91}
92
93//------------------------------------------------------------------------------
94// The templated execute function handles all the data types.

Callers 5

RequestUpdateExtentMethod · 0.95
ThreadedRequestDataMethod · 0.95
ThreadedRequestDataMethod · 0.45
ThreadedRequestDataMethod · 0.45
ThreadedRequestDataMethod · 0.45

Calls 1

floorFunction · 0.50

Tested by

no test coverage detected