|
MaterialXLab API
0.0.1
APIs For MaterialXLab Libraries
|
Base class for graph handlers. More...
Public Member Functions | |
| constructor (id, extension) | |
| addConverter (converter) | |
| Add a converter to the handler. | |
| setMonitor (monitor) | |
| Set the monitor for the handler. | |
| canExport (extension) | |
| Return if the handler can export to the given extension / format. | |
| getExporter (extension='') | |
| Find the first exporter that can export to the given extension / format. | |
| canImport (extension) | |
| Return if the handler can import the given extension / format. | |
| getImporter (extension='') | |
| Find the first importer that can import the given extension / format. | |
| setColorSpaces (colorSpaces) | |
| Set the color spaces used by the handler. | |
| getColorSpaces () | |
| Get the color spaces used by the handler. | |
| setUnits (units) | |
| Set the units used by the handler. | |
| getUnits () | |
| Get the units used by the handler. | |
| setSourceColorSpace (colorSpace) | |
| Set the source color space for the handler. | |
| setTargetDistanceUnit (unit) | |
| Set the target distance unit for the handler. | |
| getSourceColorSpace () | |
| Get the source color space for the handler. | |
| getTargetDistanceUnit () | |
| Get the target distance unit for the handler. | |
| getExtension () | |
| Get the extension /format for the handler. | |
| initialize (editor) | |
| Initialize the handler for the given editor. | |
| createValidName (name) | |
| Create a valid name for the given name. | |
| getDefaultValue (value, _type) | |
| Get default value as a string for the given value and type. | |
Base class for graph handlers.
Definition at line 625 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::addConverter | ( | converter | ) |
Add a converter to the handler.
| converter | - The converter to add. |
Definition at line 658 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::canExport | ( | extension | ) |
Return if the handler can export to the given extension / format.
Will test any additional converters that have been added to the handler.
| extension | - The extension to check. |
Definition at line 682 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::canImport | ( | extension | ) |
Return if the handler can import the given extension / format.
| extension | - The extension to check. |
Definition at line 716 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::constructor | ( | id, | |
| extension ) |
Definition at line 627 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::createValidName | ( | name | ) |
Create a valid name for the given name.
Default implementation returns the name as is.
| name | - The name to create a valid name for. |
Definition at line 864 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::getColorSpaces | ( | ) |
Get the color spaces used by the handler.
Definition at line 759 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::getDefaultValue | ( | value, | |
| _type ) |
Get default value as a string for the given value and type.
If no value is specified a default value will be returned based on the type.
| value | - The value to get the default value for. |
| _type | - The type of the value. |
Definition at line 876 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::getExporter | ( | extension = '' | ) |
Find the first exporter that can export to the given extension / format.
| extension | - The extension to check. |
Definition at line 701 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::getExtension | ( | ) |
Get the extension /format for the handler.
Definition at line 844 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::getImporter | ( | extension = '' | ) |
Find the first importer that can import the given extension / format.
| extension | - The extension to check. |
Definition at line 735 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::getSourceColorSpace | ( | ) |
Get the source color space for the handler.
Definition at line 824 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::getTargetDistanceUnit | ( | ) |
Get the target distance unit for the handler.
Definition at line 834 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::getUnits | ( | ) |
Get the units used by the handler.
Definition at line 778 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::initialize | ( | editor | ) |
Initialize the handler for the given editor.
Default implementation just sets the editor instance.
| editor | - The editor instance. |
Definition at line 854 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::setColorSpaces | ( | colorSpaces | ) |
Set the color spaces used by the handler.
| colorSpaces | - The color spaces to set. |
Definition at line 750 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::setMonitor | ( | monitor | ) |
Set the monitor for the handler.
| monitor | - The monitor to set. |
Definition at line 670 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::setSourceColorSpace | ( | colorSpace | ) |
Set the source color space for the handler.
| colorSpace | - The source color space to set. |
Definition at line 788 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::setTargetDistanceUnit | ( | unit | ) |
Set the target distance unit for the handler.
| unit | - The target distance unit to set. |
Definition at line 806 of file JsMaterialXNodeEditor.js.
| MxGraphHandler::setUnits | ( | units | ) |
Set the units used by the handler.
| units | - The units to set. |
Definition at line 769 of file JsMaterialXNodeEditor.js.