Commit ffc7f7cc authored by T.J. Corona's avatar T.J. Corona

vtkSMPVRepresentationProxy: add hint to change selection port

parent 2dd5dac5
Pipeline #143940 passed with stage
......@@ -122,7 +122,15 @@ void vtkSMPVRepresentationProxy::SetPropertyModifiedFlag(const char* name, int f
}
else
{
vtkSMPropertyHelper(selectionRepr, "Input").Set(esProxy);
int port = 0;
if (vtkPVXMLElement* hints = selectionRepr->GetHints()
? selectionRepr->GetHints()->FindNestedElementByName("ConnectToPortIndex")
: nullptr)
{
hints->GetScalarAttribute("value", &port);
}
vtkSMPropertyHelper(selectionRepr, "Input").Set(esProxy, port);
selectionRepr->UpdateVTKObjects();
}
}
......
......@@ -314,3 +314,19 @@ true if the algorithm needs update.
The `interval` attribute is optional (defaults to 100) and can be used to
provide a refresh rate in milliseconds.
ConnectToPortIndex
--------------------------
Connect to a specific port index.
This is used to connect a representation to an output port of a filter
other than the default (index = 0). Currently, this is only used to
modify the input port for the selection representation subproxy in
vtkSMPVRepresentationProxy.
<RepresentationProxy ...>
...
<Hints>
<ConnectToPortIndex value="2" />
</Hints>
</RepresentationProxy>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment