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

Method InverseTransformPoints

Common/Transforms/vtkTransform2D.cxx:223–235  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

221
222//------------------------------------------------------------------------------
223void vtkTransform2D::InverseTransformPoints(const float* inPts, float* outPts, int n)
224{
225 if (this->Matrix->GetMTime() > this->InverseMatrix->GetMTime())
226 {
227 vtkMatrix3x3::Invert(this->Matrix, this->InverseMatrix);
228 }
229 double* M = this->InverseMatrix->GetData();
230
231 for (int i = 0; i < n; ++i)
232 {
233 vtkHomogeneousTransformPoint2D(M, &inPts[2 * i], &outPts[2 * i]);
234 }
235}
236
237//------------------------------------------------------------------------------
238void vtkTransform2D::InverseTransformPoints(const double* inPts, double* outPts, int n)

Callers 13

PaintCellMethod · 0.80
MouseMoveEventMethod · 0.80
LocatePointInPlotsMethod · 0.80
MouseMoveEventMethod · 0.80
LocatePointInPlotsMethod · 0.80
ZoomInAxesMethod · 0.80
TransformBoxOrPolygonMethod · 0.80
MouseMoveEventMethod · 0.80
TestMatrix3x3Function · 0.80
MapFromParentMethod · 0.80
MouseButtonPressEventMethod · 0.80
MouseMoveEventMethod · 0.80

Calls 8

InvertFunction · 0.50
GetMTimeMethod · 0.45
GetDataMethod · 0.45
GetNumberOfPointsMethod · 0.45
SetNumberOfPointsMethod · 0.45
GetPointMethod · 0.45
SetPointMethod · 0.45

Tested by 2

PaintCellMethod · 0.64
TestMatrix3x3Function · 0.64