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

Method SetAxisMagnificationFactor

Imaging/Core/vtkImageResample.cxx:98–111  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

96
97//------------------------------------------------------------------------------
98void vtkImageResample::SetAxisMagnificationFactor(int axis, double factor)
99{
100 if (axis < 0 || axis > 2)
101 {
102 vtkErrorMacro("Bad axis: " << axis);
103 return;
104 }
105
106 double factors[3];
107 this->GetMagnificationFactors(factors);
108 factors[axis] = factor;
109
110 this->SetMagnificationFactors(factors);
111}
112
113//------------------------------------------------------------------------------
114double vtkImageResample::GetAxisMagnificationFactor(int axis, vtkInformation* inInfo)

Calls 1