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

Method GetCopyAttribute

Common/DataModel/vtkDataSetAttributes.cxx:1773–1791  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1771
1772//------------------------------------------------------------------------------
1773int vtkDataSetAttributes::GetCopyAttribute(int index, int ctype)
1774{
1775 if (index < 0 || ctype < 0 || index >= vtkDataSetAttributes::NUM_ATTRIBUTES ||
1776 ctype > vtkDataSetAttributes::ALLCOPY)
1777 {
1778 vtkWarningMacro("Cannot get copy attribute for attribute type "
1779 << index << " and copy operation " << ctype << ". These values are out of range.");
1780 return -1;
1781 }
1782 else if (ctype == vtkDataSetAttributes::ALLCOPY)
1783 {
1784 return (this->CopyAttributeFlags[COPYTUPLE][index] &&
1785 this->CopyAttributeFlags[INTERPOLATE][index] && this->CopyAttributeFlags[PASSDATA][index]);
1786 }
1787 else
1788 {
1789 return this->CopyAttributeFlags[ctype][index];
1790 }
1791}
1792
1793//------------------------------------------------------------------------------
1794void vtkDataSetAttributes::SetCopyScalars(vtkTypeBool i, int ctype)

Callers 12

GetCopyScalarsMethod · 0.95
GetCopyVectorsMethod · 0.95
GetCopyNormalsMethod · 0.95
GetCopyTangentsMethod · 0.95
GetCopyTCoordsMethod · 0.95
GetCopyTensorsMethod · 0.95
GetCopyGlobalIdsMethod · 0.95
GetCopyPedigreeIdsMethod · 0.95
GetCopyProcessIdsMethod · 0.95
InterpolatePointMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected