#include <FloorplanJS.hpp>
Public Member Functions | |
FloorplanJS () | |
default constructor More... | |
FloorplanJS (const std::string &json) | |
constructor from JSON formatted string, will throw if error More... | |
double | northAxis () const |
degrees from North measured clockwise More... | |
std::string | toJSON (bool prettyPrint=false) const |
print to JSON More... | |
ThreeScene | toThreeScene (bool openstudioFormat) const |
convert to ThreeJS, will throw if error ThreeJS file produced will always be in metric units, NorthAxis will not be applied More... | |
void | updateBuildingUnits (const std::vector< FloorplanObject > &objects, bool removeMissingObjects) |
void | updateConstructionSets (const std::vector< FloorplanObject > &objects, bool removeMissingObjects) |
void | updateSpaces (const std::vector< FloorplanObject > &objects, bool removeMissingObjects) |
void | updateSpaceTypes (const std::vector< FloorplanObject > &objects, bool removeMissingObjects) |
void | updateStories (const std::vector< FloorplanObject > &objects, bool removeMissingObjects) |
update object names in Floorplan with external data if object with same handle exists, name will be updated else if object with same name exists, handle will be assigned else new object will be added More... | |
void | updateThermalZones (const std::vector< FloorplanObject > &objects, bool removeMissingObjects) |
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 | ( | ) |
default constructor
openstudio::FloorplanJS::FloorplanJS | ( | const std::string & | json | ) |
constructor from JSON formatted string, will throw if error
|
static |
load from string
double openstudio::FloorplanJS::northAxis | ( | ) | const |
degrees from North measured clockwise
std::string openstudio::FloorplanJS::toJSON | ( | bool | prettyPrint = false | ) | const |
print to JSON
ThreeScene openstudio::FloorplanJS::toThreeScene | ( | bool | openstudioFormat | ) | const |
convert to ThreeJS, will throw if error ThreeJS file produced will always be in metric units, NorthAxis will not be applied
void openstudio::FloorplanJS::updateBuildingUnits | ( | const std::vector< FloorplanObject > & | objects, |
bool | removeMissingObjects | ||
) |
void openstudio::FloorplanJS::updateConstructionSets | ( | const std::vector< FloorplanObject > & | objects, |
bool | removeMissingObjects | ||
) |
void openstudio::FloorplanJS::updateSpaces | ( | const std::vector< FloorplanObject > & | objects, |
bool | removeMissingObjects | ||
) |
void openstudio::FloorplanJS::updateSpaceTypes | ( | const std::vector< FloorplanObject > & | objects, |
bool | removeMissingObjects | ||
) |
void openstudio::FloorplanJS::updateStories | ( | const std::vector< FloorplanObject > & | objects, |
bool | removeMissingObjects | ||
) |
update object names in Floorplan with external data if object with same handle exists, name will be updated else if object with same name exists, handle will be assigned else new object will be added
void openstudio::FloorplanJS::updateThermalZones | ( | const std::vector< FloorplanObject > & | objects, |
bool | removeMissingObjects | ||
) |