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

Method GetAttribute

Common/DataModel/vtkDataSetAttributes.cxx:1603–1614  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1601
1602//------------------------------------------------------------------------------
1603vtkDataArray* vtkDataSetAttributes::GetAttribute(int attributeType)
1604{
1605 int index = this->AttributeIndices[attributeType];
1606 if (index == -1)
1607 {
1608 return nullptr;
1609 }
1610 else
1611 {
1612 return vtkArrayDownCast<vtkDataArray>(this->Data[index]);
1613 }
1614}
1615
1616//------------------------------------------------------------------------------
1617vtkAbstractArray* vtkDataSetAttributes::GetAbstractAttribute(int attributeType)

Callers 11

InterpolateTimeMethod · 0.95
GetScalarsMethod · 0.95
GetVectorsMethod · 0.95
GetNormalsMethod · 0.95
GetTangentsMethod · 0.95
GetTCoordsMethod · 0.95
GetTensorsMethod · 0.95
GetGlobalIdsMethod · 0.95
GetRationalWeightsMethod · 0.95
GetHigherOrderDegreesMethod · 0.95
GetProcessIdsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected