@{ * Get one of the concatenated transformations as a vtkAbstractTransform. * These transformations are applied, in series, every time the * transformation of a coordinate occurs. This method is provided * to make it possible to decompose a transformation into its * constituents, for example to save a transformation to a file. */
| 284 | * constituents, for example to save a transformation to a file. |
| 285 | */ |
| 286 | vtkHomogeneousTransform* GetConcatenatedTransform(int i) |
| 287 | { |
| 288 | vtkAbstractTransform* t; |
| 289 | if (this->Input == nullptr) |
| 290 | { |
| 291 | t = this->Concatenation->GetTransform(i); |
| 292 | } |
| 293 | else if (i < this->Concatenation->GetNumberOfPreTransforms()) |
| 294 | { |
| 295 | t = this->Concatenation->GetTransform(i); |
| 296 | } |
| 297 | else if (i > this->Concatenation->GetNumberOfPreTransforms()) |
| 298 | { |
| 299 | t = this->Concatenation->GetTransform(i - 1); |
| 300 | } |
| 301 | else if (this->GetInverseFlag()) |
| 302 | { |
| 303 | t = this->Input->GetInverse(); |
| 304 | } |
| 305 | else |
| 306 | { |
| 307 | t = this->Input; |
| 308 | } |
| 309 | return static_cast<vtkHomogeneousTransform*>(t); |
| 310 | } |
| 311 | ///@} |
| 312 | |
| 313 | ///@{ |
nothing calls this directly
no test coverage detected