Port Views¶
- class mh_en_exec.nodes.views.NodeFloatView(linkName: str, label: str = 'Value')¶
The class for UI representation of a port that contains float value
node that contains this view
- Parameters
linkName (str) – The name of the float port for which this object will be the UI representation
label (str, optional) – The text that will be displayed on the node
- class mh_en_exec.nodes.views.NodeCheckboxView(linkName: str, label: str = 'Value')¶
The class for UI representation of a port that contains boolean value
node that contains this view
- Parameters
linkName (str) – The name of the boolean port for which this object will be the UI representation
label (str, optional) – The text that will be displayed on the node
- class mh_en_exec.nodes.views.NodeComboboxView(linkName: str, label: str, values: list)¶
The class for the UI representation of the port and gives the ability to choose from several predefined values
node that contains this view
- Parameters
linkName (str) – The name of the port for which this object will be the UI representation
label (str) – The text that will be displayed on the node
values (list) – list of the values that will be diplayed on the node
- class mh_en_exec.nodes.views.NodeImageView(linkName: str, label: str = 'Image')¶
The class for UI representation of a port that contains image value
node that contains this view
- Parameters
linkName (str) – The name of the image port for which this object will be the UI representation
label (str, optional) – The text that will be displayed on the node
- class mh_en_exec.nodes.views.NodeIntegerView(linkName: str, label: str = 'Value', readonly: bool = False, rangeTop: Optional[int] = None, rangeBottom: Optional[int] = None)¶
The class for UI representation of a port that contains integer value
node that contains this view
- Parameters
linkName (str) – The name of the integer port for which this object will be the UI representation
label (str, optional) – The text that will be displayed on the node
readonly (bool, optional) – The flag that determines whether the value can be changed by user
rangeTop (int, optional) – Maximum possible value
rangeBottom (int, optional) – Minimum possible value
- class mh_en_exec.nodes.views.NodePairComboView(linkName: str, label: str, items: dict)¶
The class for the UI representation of the port and gives the ability to choose from several predefined values
node that contains this view
- Parameters
linkName (str) – The name of the port for which this object will be the UI representation
label (str) – The text that will be displayed on the node
items (dict) – dict of the values that will be displayed on the node. The key of the dict will be set to port as value and the value of the dict will be displayed on the node.
- class mh_en_exec.nodes.views.NodePointView(linkName: str, label: str = 'Point')¶
The class for UI representation of a port that contains
PointWithUnit
valuenode that contains this view
- Parameters
linkName (str) – The name of the point port for which this object will be the UI representation
label (str, optional) – The text that will be displayed on the node
- class mh_en_exec.nodes.views.NodeRectView(linkName: str, label: str = 'Rect')¶
The class for UI representation of a port that contains
RectWithUnit
valuenode that contains this view
- Parameters
linkName (str) – The name of the rect port for which this object will be the UI representation
label (str, optional) – The text that will be displayed on the node
- class mh_en_exec.nodes.views.NodeStringView(linkName: str, label: str = 'Value')¶
The class for UI representation of a port that contains string value
node that contains this view
- Parameters
linkName (str) – The name of the string port for which this object will be the UI representation
label (str, optional) – The text that will be displayed on the node
- class mh_en_exec.nodes.views.NodeTextBoxView(linkName: str, label: str = 'Text', hint: Optional[str] = None)¶
The class for UI representation of a port that contains multiline string value
node that contains this view
- Parameters
linkName (str) – The name of the string port for which this object will be the UI representation
label (str, optional) – The text that will be displayed on the node
- class mh_en_exec.nodes.views.NodeVectorView(linkName: str, label: str = 'Vector')¶
The class for UI representation of a port that contains
VectorWithUnit
valuenode that contains this view
- Parameters
linkName (str) – The name of the vector port for which this object will be the UI representation
label (str, optional) – The text that will be displayed on the node