| 57 | // Pass the point through each transform in turn |
| 58 | template <class T2, class T3> |
| 59 | void vtkConcatenationTransformPoint( |
| 60 | vtkAbstractTransform* input, vtkTransformConcatenation* concat, T2 point[3], T3 output[3]) |
| 61 | { |
| 62 | output[0] = point[0]; |
| 63 | output[1] = point[1]; |
| 64 | output[2] = point[2]; |
| 65 | |
| 66 | int i = 0; |
| 67 | int nTransforms = concat->GetNumberOfTransforms(); |
| 68 | int nPreTransforms = concat->GetNumberOfPreTransforms(); |
| 69 | |
| 70 | // push point through the PreTransforms |
| 71 | for (; i < nPreTransforms; i++) |
| 72 | { |
| 73 | concat->GetTransform(i)->InternalTransformPoint(output, output); |
| 74 | } |
| 75 | |
| 76 | // push point though the Input, if present |
| 77 | if (input) |
| 78 | { |
| 79 | if (concat->GetInverseFlag()) |
| 80 | { |
| 81 | input = input->GetInverse(); |
| 82 | } |
| 83 | input->InternalTransformPoint(output, output); |
| 84 | } |
| 85 | |
| 86 | // push point through PostTransforms |
| 87 | for (; i < nTransforms; i++) |
| 88 | { |
| 89 | concat->GetTransform(i)->InternalTransformPoint(output, output); |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | //------------------------------------------------------------------------------ |
| 94 | // Pass the point through each transform in turn, |
no test coverage detected