Skip to main content
Version: 2026R2

TubeSelectionRule

class compolyx.TubeSelectionRule(graph, obj, parent=None)

Tube selection rule.

Attributes

NameDescription
TubeSelectionRule.activeActive status of object
TubeSelectionRule.changedTriggers Observable to dispatch changed message
TubeSelectionRule.display_dataThe tube rule mesh plot
TubeSelectionRule.edge_setEdge Set for the Tube Selection Rule
TubeSelectionRule.enabledWhether this object is currently enabled or not
TubeSelectionRule.extend_endingsWhether to extend the ending of the edge.
TubeSelectionRule.extentExtent of the rule
TubeSelectionRule.headDefines the head of the tube
TubeSelectionRule.head_extensionSpecifies the length of the extension at the head of the tube
TubeSelectionRule.idID of object
TubeSelectionRule.include_rule_typeInclude type
TubeSelectionRule.inner_radiusInner tube-radius
TubeSelectionRule.is_closedReturns true if the edge set of this rule is closed
TubeSelectionRule.is_dict_itemSpecifies whether the object is an item of a dict
TubeSelectionRule.is_list_itemSpecifies whether the object is an item of a list
TubeSelectionRule.link_pathRoot path of the current node in the tree for links to this object
TubeSelectionRule.meshThe mesh of the tube rule
TubeSelectionRule.nameName of object
TubeSelectionRule.nodesReturns the nodes of this tube as nx3 array including the extensions
TubeSelectionRule.outer_radiusOuter tube-radius
TubeSelectionRule.parentParent object in tree
TubeSelectionRule.relative_rule_typeRelative type
TubeSelectionRule.root_pathRoot path of the current node in the tree
TubeSelectionRule.statusStatus of the object
TubeSelectionRule.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes
TubeSelectionRule.symmetrical_extensionWhether the extensions are equal on both ends or not
TubeSelectionRule.tail_extensionSpecifies the length of the extension at the tail of the the tube
TubeSelectionRule.uidUID of object
TubeSelectionRule.vertexThis will throw an error if the object has been removed from the graph

Methods

NameDescription
TubeSelectionRule.find_parent(type)Function steps up the tree and returns the first parent with given type
TubeSelectionRule.get_nodes()* Return:
List of nodes that define the central line of the tube
TubeSelectionRule.get_short_description()
TubeSelectionRule.obj_exists()Checks if __obj still references the c++ object (i.e. has not been reset to None by self._delete) AND exists in the graph
TubeSelectionRule.serialize()Serialize to Python string
TubeSelectionRule.serialize_name_and_id()Helper function to serialize name and ID
TubeSelectionRule.serialize_rule_types()
TubeSelectionRule.update()
TubeSelectionRule.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node