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

Method SetImageReductionFactor

Rendering/Parallel/vtkParallelRenderManager.cxx:935–959  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

933
934//------------------------------------------------------------------------------
935void vtkParallelRenderManager::SetImageReductionFactor(double factor)
936{
937 // Clamp factor.
938 factor = (factor < 1) ? 1 : factor;
939 factor = (factor > this->MaxImageReductionFactor) ? this->MaxImageReductionFactor : factor;
940
941 if (this->MagnifyImageMethod == LINEAR)
942 {
943 // Make factor be a power of 2.
944 int pow_of_2 = 1;
945 while (pow_of_2 <= factor)
946 {
947 pow_of_2 <<= 1;
948 }
949 factor = pow_of_2 >> 1;
950 }
951
952 if (factor == this->ImageReductionFactor)
953 {
954 return;
955 }
956
957 this->ImageReductionFactor = factor;
958 this->Modified();
959}
960
961//------------------------------------------------------------------------------
962void vtkParallelRenderManager::SetMagnifyImageMethod(int method)

Callers 7

SetMagnifyImageMethodMethod · 0.95
SatelliteStartRenderMethod · 0.95
SlaveStartRenderMethod · 0.80
ExecuteMethod · 0.80
mainFunction · 0.80
PrmMagnifyFunction · 0.80

Calls 1

ModifiedMethod · 0.45

Tested by 2

ExecuteMethod · 0.64
mainFunction · 0.64