MaterialXWeb 0.0.2
Utilities for using MaterialX Packages with Web clients
|
Public Member Functions | |
__init__ (self, homePage) | |
Initialize the Flask application and the MaterialX loader. | |
handle_get_config_info (self, data) | |
Handle event and send back server information. | |
get_materialx_info (self, targetColorSpace, createGraphs) | |
handle_get_materialx_info (self, data) | |
Handle event and send back server message 2. | |
handle_get_version_info (self, data) | |
![]() | |
run (self, host, port, debug=True) | |
Run the Flask server with SocketIO. | |
Public Attributes | |
OCIO_version = OCIO.GetVersion() | |
materialx_version = mx.getVersionString() | |
generator = mxocio.OCIOMaterialaxGenerator() | |
configs | |
aconfig = self.generator.getBuiltinConfigs() | |
config_info = self.generator.printConfigs(self.configs) | |
dict | event_handlers |
![]() | |
home = home | |
app = Flask(__name__) | |
socketio = SocketIO(self.app) | |
Protected Member Functions | |
_emit_status_message (self, message) | |
Emit a status message to the client. | |
_setup_event_handler_map (self) | |
Set up dictionary of mapping event names to their handlers. | |
![]() | |
_register_routes (self) | |
Register HTTP routes. | |
_register_socket_events (self) | |
Register SocketIO events. | |
Definition at line 58 of file materialx_ocio_app.py.
materialx_ocio_app.materialx_ocio_app.__init__ | ( | self, | |
homePage ) |
Initialize the Flask application and the MaterialX loader.
Reimplemented from materialx_ocio_app.MaterialXFlaskApp.
Definition at line 61 of file materialx_ocio_app.py.
|
protected |
Emit a status message to the client.
Definition at line 83 of file materialx_ocio_app.py.
|
protected |
Set up dictionary of mapping event names to their handlers.
Reimplemented from materialx_ocio_app.MaterialXFlaskApp.
Definition at line 205 of file materialx_ocio_app.py.
materialx_ocio_app.materialx_ocio_app.get_materialx_info | ( | self, | |
targetColorSpace, | |||
createGraphs ) |
Definition at line 99 of file materialx_ocio_app.py.
materialx_ocio_app.materialx_ocio_app.handle_get_config_info | ( | self, | |
data ) |
Handle event and send back server information.
Definition at line 89 of file materialx_ocio_app.py.
materialx_ocio_app.materialx_ocio_app.handle_get_materialx_info | ( | self, | |
data ) |
Handle event and send back server message 2.
Definition at line 177 of file materialx_ocio_app.py.
materialx_ocio_app.materialx_ocio_app.handle_get_version_info | ( | self, | |
data ) |
Definition at line 196 of file materialx_ocio_app.py.
materialx_ocio_app.materialx_ocio_app.aconfig = self.generator.getBuiltinConfigs() |
Definition at line 94 of file materialx_ocio_app.py.
materialx_ocio_app.materialx_ocio_app.config_info = self.generator.printConfigs(self.configs) |
Definition at line 95 of file materialx_ocio_app.py.
materialx_ocio_app.materialx_ocio_app.configs |
Definition at line 94 of file materialx_ocio_app.py.
dict materialx_ocio_app.materialx_ocio_app.event_handlers |
Definition at line 209 of file materialx_ocio_app.py.
materialx_ocio_app.materialx_ocio_app.generator = mxocio.OCIOMaterialaxGenerator() |
Definition at line 80 of file materialx_ocio_app.py.
materialx_ocio_app.materialx_ocio_app.materialx_version = mx.getVersionString() |
Definition at line 77 of file materialx_ocio_app.py.
materialx_ocio_app.materialx_ocio_app.OCIO_version = OCIO.GetVersion() |
Definition at line 68 of file materialx_ocio_app.py.