OpenStudio:shared_gui_components
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Slots | Signals | Public Member Functions | List of all members
openstudio::MeasureManager Class Reference

#include <MeasureManager.hpp>

+ Inheritance diagram for openstudio::MeasureManager:

Public Slots

void addMeasure ()
 
void downloadBCLMeasures ()
 Downloads updated versions of all BCL measures. More...
 
void duplicateSelectedMeasure ()
 
void updateMeasuresLists ()
 Update the UI display for all measures. More...
 

Signals

void newMeasure (BCLMeasure newMeasure)
 

Public Member Functions

std::vector< BCLMeasure > bclMeasures () const
 
std::vector< BCLMeasure > combinedMeasures () const
 
std::vector< measure::OSArgument > getArguments (const BCLMeasure &t_measure)
 
boost::optional< BCLMeasure > getMeasure (const UUID &id)
 
BCLMeasure insertReplaceMeasure (const UUID &t_id)
 
bool isMeasureSelected ()
 
 MeasureManager (BaseApp *t_app)
 
std::vector< BCLMeasure > myMeasures () const
 
bool reset ()
 
void saveTempModel (const path &tempDir)
 
void setLibraryController (const QSharedPointer< LocalLibraryController > &t_libraryController)
 
void setUrl (const QUrl &url)
 
std::string suggestMeasureName (const BCLMeasure &t_measure)
 
openstudio::path tempModelPath () const
 
std::pair< bool, std::string > updateMeasure (const BCLMeasure &t_measure)
 
void updateMeasures (const std::vector< BCLMeasure > &newMeasures, bool t_showMessage=true)
 
QUrl url () const
 
void waitForStarted (int msec=10000)
 
virtual ~MeasureManager ()
 

Constructor & Destructor Documentation

openstudio::MeasureManager::MeasureManager ( BaseApp t_app)
virtual openstudio::MeasureManager::~MeasureManager ( )
inlinevirtual

Member Function Documentation

void openstudio::MeasureManager::addMeasure ( )
slot
std::vector<BCLMeasure> openstudio::MeasureManager::bclMeasures ( ) const
std::vector<BCLMeasure> openstudio::MeasureManager::combinedMeasures ( ) const
void openstudio::MeasureManager::downloadBCLMeasures ( )
slot

Downloads updated versions of all BCL measures.

void openstudio::MeasureManager::duplicateSelectedMeasure ( )
slot
std::vector<measure::OSArgument> openstudio::MeasureManager::getArguments ( const BCLMeasure &  t_measure)
boost::optional<BCLMeasure> openstudio::MeasureManager::getMeasure ( const UUID &  id)
BCLMeasure openstudio::MeasureManager::insertReplaceMeasure ( const UUID &  t_id)
bool openstudio::MeasureManager::isMeasureSelected ( )
std::vector<BCLMeasure> openstudio::MeasureManager::myMeasures ( ) const
void openstudio::MeasureManager::newMeasure ( BCLMeasure  newMeasure)
signal
bool openstudio::MeasureManager::reset ( )
void openstudio::MeasureManager::saveTempModel ( const path &  tempDir)
void openstudio::MeasureManager::setLibraryController ( const QSharedPointer< LocalLibraryController > &  t_libraryController)
void openstudio::MeasureManager::setUrl ( const QUrl &  url)
std::string openstudio::MeasureManager::suggestMeasureName ( const BCLMeasure &  t_measure)
openstudio::path openstudio::MeasureManager::tempModelPath ( ) const
std::pair<bool,std::string> openstudio::MeasureManager::updateMeasure ( const BCLMeasure &  t_measure)
void openstudio::MeasureManager::updateMeasures ( const std::vector< BCLMeasure > &  newMeasures,
bool  t_showMessage = true 
)
void openstudio::MeasureManager::updateMeasuresLists ( )
slot

Update the UI display for all measures.

Does recompute the measure's XML. Does not update the measures in the project at all

QUrl openstudio::MeasureManager::url ( ) const
void openstudio::MeasureManager::waitForStarted ( int  msec = 10000)