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

Function arrayWithRequestedComponent

Common/ExecutionModel/vtkAlgorithm.cxx:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93vtkSmartPointer<vtkAbstractArray> arrayWithRequestedComponent(
94 vtkAbstractArray* array, int specifiedComponent, int requestedComponent)
95{
96 assert(!!array && "Array must be non-null.");
97
98 // Override requestedComponent with specifiedComponent in most cases:
99 if (specifiedComponent != vtkArrayComponents::AllComponents ||
100 requestedComponent == vtkArrayComponents::Requested)
101 {
102 requestedComponent = specifiedComponent;
103 }
104
105 auto result = vtk::ComponentOrNormAsArray(array, requestedComponent);
106 return result;
107}
108
109} // anonymous namespace
110

Callers 1

GetInputArrayMethod · 0.85

Calls 2

ComponentOrNormAsArrayFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected