rigSvg 0.1.0
RigKit pack API - rigSvg
Loading...
Searching...
No Matches
SvgDocument.h File Reference
#include <string>
#include "ParsedPathDoc.h"
Include dependency graph for SvgDocument.h:

Functions

bool rigkit::svg::writeDocument (const plot::ParsedPathDoc &doc, std::string &outJson)
 Project ParsedPathDoc through a RigWorks 0.40.0 document.
bool rigkit::svg::readDocument (const std::string &jsonText, plot::ParsedPathDoc &out)
 Read a RigWorks document back into ParsedPathDoc.

Function Documentation

◆ readDocument()

bool rigkit::svg::readDocument ( const std::string & jsonText,
plot::ParsedPathDoc & out )

Read a RigWorks document back into ParsedPathDoc.

Rebuilds bags from rig.geometry.path, rig.media.text, rig.media.text_path, rig.paint.clip, and rig.media.font_face.

◆ writeDocument()

bool rigkit::svg::writeDocument ( const plot::ParsedPathDoc & doc,
std::string & outJson )

Project ParsedPathDoc through a RigWorks 0.40.0 document.

One entity per path, text run, clip, font-face, and gradient. CSS is not expanded here - only fields the loader already filled.