|
Materialx Protobuf API 1.39.5
Serialization API to convert between MaterialX and Google Protobuf formats.
|
Utility class for inspecting and debugging Protobuf MaterialXDocument messages. More...
#include <materialx_serializer.h>
Static Public Member Functions | |
| static MaterialXDocument | fromString (const std::string &data) |
| Parse binary data to create Protobuf document. | |
| static std::string | toString (const MaterialXDocument &pb_doc) |
| Serialize Protobuf document to binary string. | |
| static std::string | toJson (const MaterialXDocument &pb_doc, int indent=2) |
| Convert Protobuf document to JSON string. | |
| static void | debugInspect (const MaterialXDocument &pb_doc, int max_depth=10) |
| Print detailed document structure with attributes and children. | |
| static void | debugInspectCompact (const MaterialXDocument &pb_doc, int max_depth=10) |
| Print compact document structure. | |
| static void | debugInspectSimple (const MaterialXDocument &pb_doc) |
| Print simple tree structure of document. | |
| static std::string | generateMermaidDiagram (const MaterialXDocument &pb_doc) |
| Generate a Mermaid diagram from protobuf document hierarchy. | |
Static Private Member Functions | |
| static void | printElement (const MaterialXElement &element, int depth, int max_depth) |
| static void | printElementCompact (const MaterialXElement &element, int depth, int max_depth) |
| static void | printTree (const MaterialXElement &element, const std::string &prefix, bool is_last) |
| static void | addMermaidElements (const MaterialXElement &element, std::vector< std::string > &lines) |
Utility class for inspecting and debugging Protobuf MaterialXDocument messages.
|
staticprivate |
|
static |
Print detailed document structure with attributes and children.
| pb_doc | Protobuf document to inspect. |
| max_depth | Maximum depth to print (default: 10). |
|
static |
Print compact document structure.
| pb_doc | Protobuf document to inspect. |
| max_depth | Maximum depth to print (default: 10). |
|
static |
Print simple tree structure of document.
| pb_doc | Protobuf document to inspect. |
|
static |
Parse binary data to create Protobuf document.
| data | Binary string data. |
|
static |
Generate a Mermaid diagram from protobuf document hierarchy.
| pb_doc | Protobuf document to visualize. |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
Convert Protobuf document to JSON string.
| pb_doc | Protobuf document to convert. |
| indent | Number of spaces for indentation (default: 2). |
|
static |
Serialize Protobuf document to binary string.
| pb_doc | Protobuf document to serialize. |