|
MaterialXLab API
0.0.1
APIs For MaterialXLab Libraries
|
Custom monitor class for MaterialX graph. More...
Public Member Functions | |
| constructor (name) | |
| onDocumentChange (attribute, value, prevValue) | |
| onConnectionChange (node, parentGraph) | |
| onNodeRemoved (node, parentGraph) | |
| onNodeRenamed (node, newName) | |
| onPropertyInfoChanged (nodeName, propertyName, propertyInfoName, newValue, previousValue, node) | |
| onPropertyChanged (nodeName, propertyName, newValue, previousValue, node) | |
Public Member Functions inherited from MxGraphMonitor | |
| constructor (name) | |
| debugMessage (text, path) | |
| Output a debug message to the console. | |
| getPath (node, parentGraph) | |
| Get a '/' separated path. | |
| onDocumentChange (attribute, value, prevValue) | |
| Callback for when a scene / document level change is made. | |
| onConnectionChange (node, parentGraph) | |
| Callback for when a connection changes in the graph. | |
| onConnectOutput (slot, input_type, input, target_node, target_slot, node) | |
| Callback for connection to output. | |
| onConnectInput (target_slot, output_type, output, source, slot, node) | |
| Callback for connection to output. | |
| onNodeAdded (node, parentGraph) | |
| Callback for when a node is added to the graph. | |
| onNodeRemoved (node, parentGraph) | |
| Callback for when a node is removed from the graph. | |
| getParentPath (node) | |
| Get the parent path of a node. | |
| onNodeRenamed (node, newName) | |
| Callback for when a node is renamed in the graph. | |
| onNodeSelected (node, parentGraph) | |
| Callback for when a node is selected in the graph. | |
| onNodeDeselected (node, parentGraph) | |
| Callback for when a node is deselected in the graph. | |
| onPropertyChanged (nodeName, propertyName, newValue, previousValue, node) | |
| Callback for when a property changes on a node in the graph. | |
| onPropertyInfoChanged (nodeName, propertyName, propertyInfoName, newValue, previousValue, node) | |
| Callback for when a property info changes on a node in the graph. | |
| getName () | |
| Get the name of the monitor. | |
| setRenderer (theRenderer) | |
| Set the renderer for the monitor. | |
| getRenderer () | |
| Get the renderer for the monitor. | |
| setMonitoring (monitor) | |
| Set the monitoring state of the monitor. | |
| getMonitoring () | |
| Get the monitoring state of the monitor. | |
| setOnConnectionChange (callback) | |
| Set connection change callback. | |
| setOnNodeAdded (callback) | |
| Set node added callback. | |
| setOnNodeRemoved (callback) | |
| Set node removed callback. | |
| setOnNodeRenamed (callback) | |
| Set node renamed callback. | |
| setOnNodeSelected (callback) | |
| Set node selected callback. | |
| setOnNodeDeselected (callback) | |
| Set node deselected callback. | |
| setOnPropertyChanged (callback) | |
| Set property changed callback. | |
| monitorGraph (theGraph, monitor) | |
| Core monitoring of graph changes. | |
Custom monitor class for MaterialX graph.
Allows updates to be passed to any renderer used.
Definition at line 23 of file node_editor.js.
| MxMaterialXMonitor::constructor | ( | name | ) |
Definition at line 24 of file node_editor.js.
| MxMaterialXMonitor::onConnectionChange | ( | node, | |
| parentGraph ) |
Definition at line 48 of file node_editor.js.
| MxMaterialXMonitor::onDocumentChange | ( | attribute, | |
| value, | |||
| prevValue ) |
Definition at line 28 of file node_editor.js.
| MxMaterialXMonitor::onNodeRemoved | ( | node, | |
| parentGraph ) |
Definition at line 62 of file node_editor.js.
| MxMaterialXMonitor::onNodeRenamed | ( | node, | |
| newName ) |
Definition at line 76 of file node_editor.js.
| MxMaterialXMonitor::onPropertyChanged | ( | nodeName, | |
| propertyName, | |||
| newValue, | |||
| previousValue, | |||
| node ) |
Definition at line 113 of file node_editor.js.
| MxMaterialXMonitor::onPropertyInfoChanged | ( | nodeName, | |
| propertyName, | |||
| propertyInfoName, | |||
| newValue, | |||
| previousValue, | |||
| node ) |
Definition at line 94 of file node_editor.js.