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

Method Update

Remoting/ServerManager/vtkSMArrayRangeDomain.cxx:22–60  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

20
21//---------------------------------------------------------------------------
22void 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//---------------------------------------------------------------------------
63void vtkSMArrayRangeDomain::Update(const char* arrayName, int fieldAssociation,

Callers

nothing calls this directly

Calls 13

GetRequiredPropertyMethod · 0.80
GetAsStringMethod · 0.80
GetAsIntMethod · 0.80
GetAsProxyMethod · 0.80
GetComponentRangeMethod · 0.80
push_backMethod · 0.80
GetNumberOfElementsMethod · 0.45
GetOutputPortMethod · 0.45
CreateOutputPortsMethod · 0.45
GetDataInformationMethod · 0.45
GetArrayInformationMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected