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

Function GetConcatenatedTransform

Common/Transforms/vtkPerspectiveTransform.h:286–310  ·  view source on GitHub ↗

@{ * 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. */

Source from the content-addressed store, hash-verified

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 ///@{

Callers

nothing calls this directly

Calls 2

GetTransformMethod · 0.45
GetInverseMethod · 0.45

Tested by

no test coverage detected