OpenStudio:openstudio_lib
 All Classes Namespaces Functions Variables Enumerations Enumerator
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
openstudio::ModelObjectVectorController Class Reference

#include <ModelObjectVectorController.hpp>

+ Inheritance diagram for openstudio::ModelObjectVectorController:

Public Member Functions

virtual void attach (const model::ModelObject &modelObject)
 
virtual void attachModel (const model::Model &model)
 
void detach ()
 
virtual ~ModelObjectVectorController ()
 
- Public Member Functions inherited from openstudio::OSVectorController
 OSVectorController ()
 
virtual ~OSVectorController ()
 

Protected Slots

void change ()
 
void changeRelationship (int index, Handle newHandle, Handle oldHandle)
 
void dataChange ()
 
void objectAdded (std::shared_ptr< openstudio::detail::WorkspaceObject_Impl > impl, const openstudio::IddObjectType &iddObjectType, const openstudio::UUID &handle)
 
void objectRemoved (std::shared_ptr< openstudio::detail::WorkspaceObject_Impl > impl, const openstudio::IddObjectType &iddObjectType, const openstudio::UUID &handle)
 

Protected Member Functions

template<class ModelObjectType >
boost::optional< ModelObjectType > addToModel (const OSItemId &itemId)
 
void attachOtherModelObject (const model::ModelObject &modelObject)
 
void detachOtherModelObject (const model::ModelObject &modelObject)
 
void detachOtherModelObjects ()
 
bool fromComponentLibrary (const OSItemId &itemId) const
 
bool fromModel (const OSItemId &itemId) const
 
boost::optional< model::Component > getComponent (const OSItemId &itemId) const
 
boost::optional
< model::ModelObject > 
getModelObject (const OSItemId &itemId) const
 
virtual void onChange (const openstudio::model::ModelObject &modelObject)
 
virtual void onChangeRelationship (const openstudio::model::ModelObject &modelObject, int index, Handle newHandle, Handle oldHandle)
 
virtual void onDataChange (const openstudio::model::ModelObject &modelObject)
 
virtual void onObjectAdded (const openstudio::model::ModelObject &modelObject, const openstudio::IddObjectType &iddObjectType, const openstudio::UUID &handle)
 
virtual void onObjectRemoved (const openstudio::model::ModelObject &modelObject, const openstudio::IddObjectType &iddObjectType, const openstudio::UUID &handle)
 
- Protected Member Functions inherited from openstudio::OSVectorController
virtual std::vector< OSItemIdmakeVector ()=0
 
virtual void onDrop (const OSItemId &itemId)
 
virtual void onMakeNewItem ()
 
virtual void onRemoveItem (OSItem *item)
 
virtual void onReplaceItem (OSItem *currentItem, const OSItemId &replacementItemId)
 

Protected Attributes

boost::optional< model::Model > m_model
 
boost::optional
< model::ModelObject > 
m_modelObject
 
std::vector< model::ModelObject > m_otherModelObjects
 

Additional Inherited Members

- Public Slots inherited from openstudio::OSVectorController
void drop (const OSItemId &itemId)
 
void makeNewItem ()
 
void removeItem (OSItem *item)
 
void replaceItem (OSItem *currentItem, const OSItemId &replacementItemId)
 
void reportItems ()
 
- Signals inherited from openstudio::OSVectorController
void itemIds (const std::vector< OSItemId > &itemIds)
 
void selectedItemId (const OSItemId &itemId)
 

Constructor & Destructor Documentation

virtual openstudio::ModelObjectVectorController::~ModelObjectVectorController ( )
inlinevirtual

Member Function Documentation

template<class ModelObjectType >
boost::optional<ModelObjectType> openstudio::ModelObjectVectorController::addToModel ( const OSItemId itemId)
inlineprotected
virtual void openstudio::ModelObjectVectorController::attach ( const model::ModelObject &  modelObject)
virtual
virtual void openstudio::ModelObjectVectorController::attachModel ( const model::Model &  model)
virtual
void openstudio::ModelObjectVectorController::attachOtherModelObject ( const model::ModelObject &  modelObject)
protected
void openstudio::ModelObjectVectorController::change ( )
protectedslot
void openstudio::ModelObjectVectorController::changeRelationship ( int  index,
Handle  newHandle,
Handle  oldHandle 
)
protectedslot
void openstudio::ModelObjectVectorController::dataChange ( )
protectedslot
void openstudio::ModelObjectVectorController::detach ( )
void openstudio::ModelObjectVectorController::detachOtherModelObject ( const model::ModelObject &  modelObject)
protected
void openstudio::ModelObjectVectorController::detachOtherModelObjects ( )
protected
bool openstudio::ModelObjectVectorController::fromComponentLibrary ( const OSItemId itemId) const
protected
bool openstudio::ModelObjectVectorController::fromModel ( const OSItemId itemId) const
protected
boost::optional<model::Component> openstudio::ModelObjectVectorController::getComponent ( const OSItemId itemId) const
protected
boost::optional<model::ModelObject> openstudio::ModelObjectVectorController::getModelObject ( const OSItemId itemId) const
protected
void openstudio::ModelObjectVectorController::objectAdded ( std::shared_ptr< openstudio::detail::WorkspaceObject_Impl >  impl,
const openstudio::IddObjectType &  iddObjectType,
const openstudio::UUID &  handle 
)
protectedslot
void openstudio::ModelObjectVectorController::objectRemoved ( std::shared_ptr< openstudio::detail::WorkspaceObject_Impl >  impl,
const openstudio::IddObjectType &  iddObjectType,
const openstudio::UUID &  handle 
)
protectedslot
virtual void openstudio::ModelObjectVectorController::onChange ( const openstudio::model::ModelObject &  modelObject)
protectedvirtual
virtual void openstudio::ModelObjectVectorController::onChangeRelationship ( const openstudio::model::ModelObject &  modelObject,
int  index,
Handle  newHandle,
Handle  oldHandle 
)
protectedvirtual
virtual void openstudio::ModelObjectVectorController::onDataChange ( const openstudio::model::ModelObject &  modelObject)
protectedvirtual
virtual void openstudio::ModelObjectVectorController::onObjectAdded ( const openstudio::model::ModelObject &  modelObject,
const openstudio::IddObjectType &  iddObjectType,
const openstudio::UUID &  handle 
)
protectedvirtual
virtual void openstudio::ModelObjectVectorController::onObjectRemoved ( const openstudio::model::ModelObject &  modelObject,
const openstudio::IddObjectType &  iddObjectType,
const openstudio::UUID &  handle 
)
protectedvirtual

Member Data Documentation

boost::optional<model::Model> openstudio::ModelObjectVectorController::m_model
protected
boost::optional<model::ModelObject> openstudio::ModelObjectVectorController::m_modelObject
protected
std::vector<model::ModelObject> openstudio::ModelObjectVectorController::m_otherModelObjects
protected