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

Method input

Wrapping/Python/paraview/detail/pythonalgorithm.py:216–229  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

214
215 @staticmethod
216 def input(**kwargs):
217 attrs = {"type": "InputProperty"}
218 if kwargs.get("multiple_input", False) or kwargs.get("repeat_command", False):
219 attrs["command"] = "AddInputConnection"
220 # FIXME: input property doesn't support cleaning port connections alone :(
221 attrs["clean_command"] = "RemoveAllInputs"
222 else:
223 attrs["command"] = "SetInputConnection"
224
225 # todo: handle inputType
226 attrs.update(kwargs)
227 return _create_decorator(attrs,
228 update_func=smproperty._update_property_defaults,
229 generate_xml_func=smproperty._generate_xml)
230
231 @staticmethod
232 def dataarrayselection(name=None):

Callers 2

PiFunction · 0.80
LeFunction · 0.80

Calls 3

_create_decoratorFunction · 0.85
getMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected