MCPcopy Create free account
hub / github.com/Kitware/ParaView / SetInputArrayToProcess

Method SetInputArrayToProcess

Remoting/Views/vtkImageSliceRepresentation.cxx:66–88  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

64
65//----------------------------------------------------------------------------
66void 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//----------------------------------------------------------------------------
91int vtkImageSliceRepresentation::FillInputPortInformation(int, vtkInformation* info)

Callers 15

SetupPipelineMethod · 0.45
setDrawModeMethod · 0.45
CoProcessMethod · 0.45
ShallowCopyMethod · 0.45
ProcessViewRequestMethod · 0.45
SetupScalarsMethod · 0.45
SelectInputVectorsMethod · 0.45
PostInitializeProxyMethod · 0.45

Calls

no outgoing calls

Tested by 1

ShallowCopyMethod · 0.36