----------------------------------------------------------------------------
| 64 | |
| 65 | //---------------------------------------------------------------------------- |
| 66 | void vtkImageSliceRepresentation::SetInputArrayToProcess( |
| 67 | int idx, int port, int connection, int fieldAssociation, const char* name) |
| 68 | { |
| 69 | this->Superclass::SetInputArrayToProcess(idx, port, connection, fieldAssociation, name); |
| 70 | this->SliceMapper->SelectColorArray(name); |
| 71 | switch (fieldAssociation) |
| 72 | { |
| 73 | case vtkDataObject::FIELD_ASSOCIATION_CELLS: |
| 74 | this->SliceMapper->SetScalarMode(VTK_SCALAR_MODE_USE_CELL_FIELD_DATA); |
| 75 | break; |
| 76 | |
| 77 | case vtkDataObject::FIELD_ASSOCIATION_NONE: |
| 78 | this->SliceMapper->SetScalarMode(VTK_SCALAR_MODE_USE_FIELD_DATA); |
| 79 | // Color entire block by zeroth tuple in the field data |
| 80 | this->SliceMapper->SetFieldDataTupleId(0); |
| 81 | break; |
| 82 | |
| 83 | case vtkDataObject::FIELD_ASSOCIATION_POINTS: |
| 84 | default: |
| 85 | this->SliceMapper->SetScalarMode(VTK_SCALAR_MODE_USE_POINT_FIELD_DATA); |
| 86 | break; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | //---------------------------------------------------------------------------- |
| 91 | int vtkImageSliceRepresentation::FillInputPortInformation(int, vtkInformation* info) |
no outgoing calls