-----------------------------------------------------------------------------
| 302 | |
| 303 | //----------------------------------------------------------------------------- |
| 304 | bool VolumeOptions::isArrayValidForColoring(vtkDataArray* a, bool& mapScalars) |
| 305 | { |
| 306 | if (!a) |
| 307 | { |
| 308 | return false; |
| 309 | } |
| 310 | int numberOfComponents = a->GetNumberOfComponents(); |
| 311 | if (numberOfComponents == 4 || numberOfComponents == 3) |
| 312 | { |
| 313 | // RGBA or RGB |
| 314 | mapScalars = false; |
| 315 | return true; |
| 316 | } |
| 317 | else if (numberOfComponents == 1) |
| 318 | { |
| 319 | mapScalars = true; |
| 320 | return true; |
| 321 | } |
| 322 | else |
| 323 | { |
| 324 | return false; |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | //----------------------------------------------------------------------------- |
| 329 | void VolumeOptions::surfaceColoringModeChanged(int index) |
nothing calls this directly
no outgoing calls
no test coverage detected