OpenStudio:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | List of all members
openstudio::FloorplanJS Class Reference

#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...
 

Detailed Description

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

Constructor & Destructor Documentation

openstudio::FloorplanJS::FloorplanJS ( const std::string &  json)

constructor from JSON formatted string, will throw if error

Member Function Documentation

static boost::optional<FloorplanJS> openstudio::FloorplanJS::load ( const std::string &  json)
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