#include <FloorplanJS.hpp>
Public Member Functions | |
FloorplanJS (const std::string &json) | |
constructor from JSON formatted string, will throw if error More... | |
std::string | toJSON (bool prettyPrint=false) const |
print to JSON More... | |
ThreeScene | toThreeScene (bool breakSurfaces) const |
convert to ThreeJS, will throw if error More... | |
Static Public Member Functions | |
static boost::optional < FloorplanJS > | load (const std::string &json) |
load from string More... | |
FloorplanJS is an adapter for the Geometry Editor JSON format.
The class is not impl-ized in hopes that it can be ported to JavaScript via emscripten
openstudio::FloorplanJS::FloorplanJS | ( | const std::string & | json | ) |
constructor from JSON formatted string, will throw if error
|
static |
load from string
std::string openstudio::FloorplanJS::toJSON | ( | bool | prettyPrint = false | ) | const |
print to JSON
ThreeScene openstudio::FloorplanJS::toThreeScene | ( | bool | breakSurfaces | ) | const |
convert to ThreeJS, will throw if error