------------------------------------------------------------------------------
| 26 | |
| 27 | //------------------------------------------------------------------------------ |
| 28 | void vtkImageExtractComponents::SetComponents(int c1, int c2, int c3) |
| 29 | { |
| 30 | int modified = 0; |
| 31 | |
| 32 | if (this->Components[0] != c1) |
| 33 | { |
| 34 | this->Components[0] = c1; |
| 35 | modified = 1; |
| 36 | } |
| 37 | if (this->Components[1] != c2) |
| 38 | { |
| 39 | this->Components[1] = c2; |
| 40 | modified = 1; |
| 41 | } |
| 42 | if (this->Components[2] != c3) |
| 43 | { |
| 44 | this->Components[2] = c3; |
| 45 | modified = 1; |
| 46 | } |
| 47 | |
| 48 | if (modified || this->NumberOfComponents != 3) |
| 49 | { |
| 50 | this->NumberOfComponents = 3; |
| 51 | this->Modified(); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | //------------------------------------------------------------------------------ |
| 56 | void vtkImageExtractComponents::SetComponents(int c1, int c2) |