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

vtkSMPVRepresentationProxy: add hint to change selection port

parent 974fd526
......@@ -122,7 +122,15 @@ void vtkSMPVRepresentationProxy::SetPropertyModifiedFlag(const char* name, int f
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);
......@@ -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.
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
<RepresentationProxy ...>
<ConnectToPortIndex value="2" />
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