---------------------------------------------------------------------------
| 20 | |
| 21 | //--------------------------------------------------------------------------- |
| 22 | void vtkSMArrayRangeDomain::Update(vtkSMProperty*) |
| 23 | { |
| 24 | // Find the array whose range we are interested in and then find the producer |
| 25 | // who is producing the data with the array of interest. |
| 26 | |
| 27 | vtkSMProperty* propForInput = this->GetRequiredProperty("Input"); |
| 28 | vtkSMProperty* propForArraySelection = this->GetRequiredProperty("ArraySelection"); |
| 29 | vtkSMProperty* propForComponentSelection = this->GetRequiredProperty("ComponentSelection"); |
| 30 | if (!propForInput || !propForArraySelection) |
| 31 | { |
| 32 | return; |
| 33 | } |
| 34 | |
| 35 | vtkSMUncheckedPropertyHelper inputHelper(propForInput); |
| 36 | vtkSMUncheckedPropertyHelper arraySelectionHelper(propForArraySelection); |
| 37 | if (arraySelectionHelper.GetNumberOfElements() < 5) |
| 38 | { |
| 39 | return; |
| 40 | } |
| 41 | |
| 42 | const char* arrayName = arraySelectionHelper.GetAsString(4); |
| 43 | if (!arrayName || arrayName[0] == '\0') |
| 44 | { |
| 45 | return; |
| 46 | } |
| 47 | |
| 48 | int component = -1; |
| 49 | if (propForComponentSelection) |
| 50 | { |
| 51 | vtkSMUncheckedPropertyHelper componentSelectionHelper(propForComponentSelection); |
| 52 | component = componentSelectionHelper.GetAsInt(); |
| 53 | } |
| 54 | if (vtkSMSourceProxy::SafeDownCast(inputHelper.GetAsProxy()) != nullptr) |
| 55 | { |
| 56 | this->Update(arrayName, arraySelectionHelper.GetAsInt(3), |
| 57 | vtkSMSourceProxy::SafeDownCast(inputHelper.GetAsProxy()), inputHelper.GetOutputPort(), |
| 58 | component); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | //--------------------------------------------------------------------------- |
| 63 | void vtkSMArrayRangeDomain::Update(const char* arrayName, int fieldAssociation, |
nothing calls this directly
no test coverage detected