OpenStudio:gltf
 All Classes Namespaces Functions Typedefs Pages
Public Member Functions | List of all members
openstudio::gltf::GltfModelObjectMetaData Class Reference

#include <GltfModelObjectMetaData.hpp>

Public Member Functions

 GltfModelObjectMetaData ()
 Default constructor. More...
 
Interface with ModelObjects
 GltfModelObjectMetaData (const model::AirLoopHVAC &airLoopHVAC)
 
 GltfModelObjectMetaData (const model::BuildingUnit &buildingUnit)
 
 GltfModelObjectMetaData (const model::SpaceType &spaceType)
 
 GltfModelObjectMetaData (const model::BuildingStory &buildingStory)
 
 GltfModelObjectMetaData (const model::ThermalZone &thermalZone)
 
 GltfModelObjectMetaData (const model::DefaultConstructionSet &defaultConstructionSet)
 
 GltfModelObjectMetaData (const model::Space &space)
 
Getters and Setters
std::string color () const
 
void setColor (const std::string &color)
 
std::string handle () const
 
void setHandle (const std::string &handle)
 
std::string iddObjectType () const
 
void setIddObjectType (const std::string &iddObjectType)
 
std::string name () const
 
void setName (const std::string &name)
 
bool isOpentoBelow () const
 
void setOpentoBelow (bool opentoBelow)
 
double nominalZCoordinate () const
 
void setNominalZCoordinate (double nominalZCoordinate)
 
double nominalFloortoCeilingHeight () const
 
void setNominalFloortoCeilingHeight (double nominalFloortoCeilingHeight)
 
int multiplier () const
 
void setMultiplier (int multiplier)
 

Protected Member Functions

Protected
 GltfModelObjectMetaData (const tinygltf::Value &modelObjectMetaDataObj)
 Interface with an existing GLTF file. More...
 
std::map< std::string,
tinygltf::Value > 
toExtras () const
 Export to tinygltf. More...
 

Detailed Description

GltfModelObjectMetaData is an Interface class between select ModelObjects and glTF values.

It is capable of storing attributes such as name, iddObjectType, color, handle from ModelObjects: ThermalZone, SpaceType, AirLoopHVAC, BuildingStory, BuildingUnit, DefaultConstructionSet

Constructor & Destructor Documentation

openstudio::gltf::GltfModelObjectMetaData::GltfModelObjectMetaData ( )

Default constructor.

openstudio::gltf::GltfModelObjectMetaData::GltfModelObjectMetaData ( const model::AirLoopHVAC &  airLoopHVAC)
explicit
openstudio::gltf::GltfModelObjectMetaData::GltfModelObjectMetaData ( const model::BuildingUnit &  buildingUnit)
explicit
openstudio::gltf::GltfModelObjectMetaData::GltfModelObjectMetaData ( const model::SpaceType &  spaceType)
explicit
openstudio::gltf::GltfModelObjectMetaData::GltfModelObjectMetaData ( const model::BuildingStory &  buildingStory)
explicit
openstudio::gltf::GltfModelObjectMetaData::GltfModelObjectMetaData ( const model::ThermalZone &  thermalZone)
explicit
openstudio::gltf::GltfModelObjectMetaData::GltfModelObjectMetaData ( const model::DefaultConstructionSet &  defaultConstructionSet)
explicit
openstudio::gltf::GltfModelObjectMetaData::GltfModelObjectMetaData ( const model::Space &  space)
explicit
openstudio::gltf::GltfModelObjectMetaData::GltfModelObjectMetaData ( const tinygltf::Value &  modelObjectMetaDataObj)
explicitprotected

Interface with an existing GLTF file.

Member Function Documentation

std::string openstudio::gltf::GltfModelObjectMetaData::color ( ) const
std::string openstudio::gltf::GltfModelObjectMetaData::handle ( ) const
std::string openstudio::gltf::GltfModelObjectMetaData::iddObjectType ( ) const
bool openstudio::gltf::GltfModelObjectMetaData::isOpentoBelow ( ) const
int openstudio::gltf::GltfModelObjectMetaData::multiplier ( ) const
std::string openstudio::gltf::GltfModelObjectMetaData::name ( ) const
double openstudio::gltf::GltfModelObjectMetaData::nominalFloortoCeilingHeight ( ) const
double openstudio::gltf::GltfModelObjectMetaData::nominalZCoordinate ( ) const
void openstudio::gltf::GltfModelObjectMetaData::setColor ( const std::string &  color)
void openstudio::gltf::GltfModelObjectMetaData::setHandle ( const std::string &  handle)
void openstudio::gltf::GltfModelObjectMetaData::setIddObjectType ( const std::string &  iddObjectType)
void openstudio::gltf::GltfModelObjectMetaData::setMultiplier ( int  multiplier)
void openstudio::gltf::GltfModelObjectMetaData::setName ( const std::string &  name)
void openstudio::gltf::GltfModelObjectMetaData::setNominalFloortoCeilingHeight ( double  nominalFloortoCeilingHeight)
void openstudio::gltf::GltfModelObjectMetaData::setNominalZCoordinate ( double  nominalZCoordinate)
void openstudio::gltf::GltfModelObjectMetaData::setOpentoBelow ( bool  opentoBelow)
std::map<std::string, tinygltf::Value> openstudio::gltf::GltfModelObjectMetaData::toExtras ( ) const
protected

Export to tinygltf.