------------------------------------------------------------------------------
| 1771 | |
| 1772 | //------------------------------------------------------------------------------ |
| 1773 | int 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 | //------------------------------------------------------------------------------ |
| 1794 | void vtkDataSetAttributes::SetCopyScalars(vtkTypeBool i, int ctype) |
no outgoing calls
no test coverage detected