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

Method Scale

Common/Transforms/vtkTransform2D.cxx:110–122  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

108
109//------------------------------------------------------------------------------
110void vtkTransform2D::Scale(double x, double y)
111{
112 if (x == 1.0 && y == 1.0)
113 {
114 return;
115 }
116 double matrix[3][3];
117 vtkMatrix3x3::Identity(*matrix);
118 matrix[0][0] = x;
119 matrix[1][1] = y;
120 vtkMatrix3x3::Multiply3x3(this->Matrix->GetData(), *matrix, this->Matrix->GetData());
121 this->Matrix->Modified();
122}
123
124//------------------------------------------------------------------------------
125void vtkTransform2D::SetMatrix(const double elements[9])

Callers 8

ScaleFunction · 0.45
ScaleFunction · 0.45
ScaleFunction · 0.45
ScaleFunction · 0.45
SetTransformFunction · 0.45

Calls 4

IdentityFunction · 0.70
Multiply3x3Function · 0.50
GetDataMethod · 0.45
ModifiedMethod · 0.45

Tested by 4

ScaleFunction · 0.36
SetTransformFunction · 0.36