| 514 | } |
| 515 | |
| 516 | void vtkImageToPolyDataFilter::BuildTable(unsigned char* vtkNotUsed(inPixels)) |
| 517 | { |
| 518 | int red, green, blue, idx = 0; |
| 519 | |
| 520 | this->Table->SetNumberOfValues(256 * 3); |
| 521 | |
| 522 | // use 3-3-2 bits for rgb |
| 523 | for (blue = 0; blue < 256; blue += 64) |
| 524 | { |
| 525 | for (green = 0; green < 256; green += 32) |
| 526 | { |
| 527 | for (red = 0; red < 256; red += 32) |
| 528 | { |
| 529 | this->Table->SetValue(idx++, red); |
| 530 | this->Table->SetValue(idx++, green); |
| 531 | this->Table->SetValue(idx++, blue); |
| 532 | } |
| 533 | } |
| 534 | } |
| 535 | } |
| 536 | |
| 537 | int vtkImageToPolyDataFilter::FillInputPortInformation(int, vtkInformation* info) |
| 538 | { |
no test coverage detected