|
MaterialXLab API
0.0.1
APIs For MaterialXLab Libraries
|
This class provides a monitoring interface for the graph editor. More...
Public Member Functions | |
| 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. | |
This class provides a monitoring interface for the graph editor.
It will monitor the following changes to the graph:
Definition at line 25 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::constructor | ( | name | ) |
Definition at line 27 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::debugMessage | ( | text, | |
| path ) |
Output a debug message to the console.
| text | - The text to output. |
| path | - The path to output. |
Definition at line 41 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::getMonitoring | ( | ) |
Get the monitoring state of the monitor.
Definition at line 391 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::getName | ( | ) |
Get the name of the monitor.
Definition at line 350 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::getParentPath | ( | node | ) |
Get the parent path of a node.
| node | - The node to get the parent path for. |
Definition at line 215 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::getPath | ( | node, | |
| parentGraph ) |
Get a '/' separated path.
| node | - The node to get the path for. |
| parentGraph | - The parent graph of the node. |
Definition at line 54 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::getRenderer | ( | ) |
Get the renderer for the monitor.
Definition at line 370 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::monitorGraph | ( | theGraph, | |
| monitor ) |
Core monitoring of graph changes.
| theGraph | - The graph to monitor. |
| monitor | - The monitoring state. |
Definition at line 500 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::onConnectInput | ( | target_slot, | |
| output_type, | |||
| output, | |||
| source, | |||
| slot, | |||
| node ) |
Callback for connection to output.
| target_slot | - The target slot that was connected. |
| output_type | - The type of the output. |
| output | - The output that was connected. |
| source | - The source node of the connection. |
| slot | - The slot of the source node. |
| node | - The node where the connection was made. |
Definition at line 140 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::onConnectionChange | ( | node, | |
| parentGraph ) |
Callback for when a connection changes in the graph.
| node | - The node where the connection changed. |
| parentGraph | - The parent graph of the node. |
Definition at line 88 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::onConnectOutput | ( | slot, | |
| input_type, | |||
| input, | |||
| target_node, | |||
| target_slot, | |||
| node ) |
Callback for connection to output.
| slot | - The slot that was connected. |
| input_type | - The type of the input. |
| input | - The input that was connected. |
| target_node | - The target node of the connection. |
| target_slot | - The target slot of the connection. |
| node | - The node where the connection was made. |
Definition at line 110 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::onDocumentChange | ( | attribute, | |
| value, | |||
| prevValue ) |
Callback for when a scene / document level change is made.
| attribute | - The attribute that changed. |
| value | - The new value of the attribute. |
| prevValue | - The previous value of the attribute. |
Definition at line 70 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::onNodeAdded | ( | node, | |
| parentGraph ) |
Callback for when a node is added to the graph.
| node | - The node that was added. |
| parentGraph | - The parent graph of the node. |
Definition at line 167 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::onNodeDeselected | ( | node, | |
| parentGraph ) |
Callback for when a node is deselected in the graph.
| node | - The node that was deselected. |
| parentGraph | - The parent graph of the node. |
Definition at line 283 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::onNodeRemoved | ( | node, | |
| parentGraph ) |
Callback for when a node is removed from the graph.
| node | - The node that was removed. |
| parentGraph | - The parent graph of the node. |
Definition at line 197 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::onNodeRenamed | ( | node, | |
| newName ) |
Callback for when a node is renamed in the graph.
| node | - The node that was renamed. |
| newName | - The new name of the node. |
Definition at line 242 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::onNodeSelected | ( | node, | |
| parentGraph ) |
Callback for when a node is selected in the graph.
| node | - The node that was selected. |
| parentGraph | - The parent graph of the node. |
Definition at line 264 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::onPropertyChanged | ( | nodeName, | |
| propertyName, | |||
| newValue, | |||
| previousValue, | |||
| node ) |
Callback for when a property changes on a node in the graph.
| nodeName | - The name of the node. |
| propertyName | - The name of the property that changed. |
| newValue | - The new value of the property. |
| previousValue | - The previous value of the property. |
| node | - The node where the property changed. |
Definition at line 305 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::onPropertyInfoChanged | ( | nodeName, | |
| propertyName, | |||
| propertyInfoName, | |||
| newValue, | |||
| previousValue, | |||
| node ) |
Callback for when a property info changes on a node in the graph.
| nodeName | - The name of the node. |
| propertyName | - The name of the property that changed. |
| propertyInfoName | - The name of the property info that changed. |
| newValue | - The new value of the property info. |
| previousValue | - The previous value of the property info. |
| node | - The node where the property info changed. |
Definition at line 330 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::setMonitoring | ( | monitor | ) |
Set the monitoring state of the monitor.
| monitor | - The monitoring state to set. |
Definition at line 381 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::setOnConnectionChange | ( | callback | ) |
Set connection change callback.
| callback | - The callback to set. |
Definition at line 402 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::setOnNodeAdded | ( | callback | ) |
Set node added callback.
| callback | - The callback to set. |
Definition at line 416 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::setOnNodeDeselected | ( | callback | ) |
Set node deselected callback.
| callback | - The callback to set. |
Definition at line 472 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::setOnNodeRemoved | ( | callback | ) |
Set node removed callback.
| callback | - The callback to set. |
Definition at line 430 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::setOnNodeRenamed | ( | callback | ) |
Set node renamed callback.
| callback | - The callback to set. |
Definition at line 444 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::setOnNodeSelected | ( | callback | ) |
Set node selected callback.
| callback | - The callback to set. |
Definition at line 458 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::setOnPropertyChanged | ( | callback | ) |
Set property changed callback.
| callback | - The callback to set. |
Definition at line 486 of file JsMaterialXNodeEditor.js.
| MxGraphMonitor::setRenderer | ( | theRenderer | ) |
Set the renderer for the monitor.
| theRenderer | - The renderer to set. |
Definition at line 361 of file JsMaterialXNodeEditor.js.