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

Function GetInputArrayAs

Common/ExecutionModel/vtkAlgorithm.h:1057–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1055 int requestedComponent = vtkArrayComponents::Requested);
1056 template <typename ArrayType, typename... Params>
1057 vtkSmartPointer<ArrayType> GetInputArrayAs(Params&&... params)
1058 {
1059 auto abstractArray = this->GetInputArray(std::forward<Params>(params)...);
1060 auto* castArray = ArrayType::SafeDownCast(abstractArray.GetPointer());
1061 auto result = vtkSmartPointer<ArrayType>(castArray);
1062 return result;
1063 }
1064 ///@}
1065
1066 /**

Callers

nothing calls this directly

Calls 2

GetInputArrayMethod · 0.80
GetPointerMethod · 0.45

Tested by

no test coverage detected