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

#include <ModelObjectTreeItems.hpp>

+ Inheritance diagram for openstudio::BuildingTreeItem:

Public Member Functions

 BuildingTreeItem (const openstudio::model::Building &building, const openstudio::IddObjectType &sortByType, QTreeWidgetItem *parent=nullptr)
 
virtual ~BuildingTreeItem ()
 
- Public Member Functions inherited from openstudio::ModelObjectTreeItem
std::vector
< ModelObjectTreeItem * > 
children () const
 
boost::optional
< openstudio::Handle > 
handle () const
 
bool isDirty ()
 
OSItemitem () const
 
void makeDirty ()
 
openstudio::model::Model model () const
 
boost::optional
< openstudio::model::ModelObject > 
modelObject () const
 
 ModelObjectTreeItem (const openstudio::model::ModelObject &modelObject, bool isDefaulted, OSItemType type, QTreeWidgetItem *parent=nullptr)
 Constructed with a modelObject this tree item represents that object. More...
 
 ModelObjectTreeItem (const std::string &name, const openstudio::model::Model &model, QTreeWidgetItem *parent=nullptr)
 Constructed with no modelObject this tree item represents a container. More...
 
std::string name () const
 
std::vector
< ModelObjectTreeItem * > 
recursiveChildren () const
 
void setStyle (int headerLevel, const QString &color)
 
virtual ~ModelObjectTreeItem ()
 

Protected Member Functions

virtual void addModelObjectChild (const model::ModelObject &child, bool isDefaulted) override
 
virtual void addNonModelObjectChild (const std::string &child) override
 
virtual std::vector
< model::ModelObject > 
modelObjectChildren () const override
 
virtual std::vector< std::string > nonModelObjectChildren () const override
 
- Protected Member Functions inherited from openstudio::ModelObjectTreeItem
virtual std::vector
< model::ModelObject > 
defaultedModelObjectChildren () const
 
virtual void finalize ()
 
void makeChildren ()
 

Additional Inherited Members

- Public Slots inherited from openstudio::ModelObjectTreeItem
void change ()
 
void changeRelationship (int index, Handle newHandle, Handle oldHandle)
 
void refresh ()
 
void refreshTree ()
 
- Static Protected Member Functions inherited from openstudio::ModelObjectTreeItem
static OSItemType initializeOSItemType ()
 
- Static Protected Attributes inherited from openstudio::ModelObjectTreeItem
static const OSItemType m_type
 

Constructor & Destructor Documentation

openstudio::BuildingTreeItem::BuildingTreeItem ( const openstudio::model::Building &  building,
const openstudio::IddObjectType &  sortByType,
QTreeWidgetItem parent = nullptr 
)
virtual openstudio::BuildingTreeItem::~BuildingTreeItem ( )
inlinevirtual

Member Function Documentation

virtual void openstudio::BuildingTreeItem::addModelObjectChild ( const model::ModelObject &  child,
bool  isDefaulted 
)
overrideprotectedvirtual

Reimplemented from openstudio::ModelObjectTreeItem.

virtual void openstudio::BuildingTreeItem::addNonModelObjectChild ( const std::string &  child)
overrideprotectedvirtual

Reimplemented from openstudio::ModelObjectTreeItem.

virtual std::vector<model::ModelObject> openstudio::BuildingTreeItem::modelObjectChildren ( ) const
overrideprotectedvirtual

Reimplemented from openstudio::ModelObjectTreeItem.

virtual std::vector<std::string> openstudio::BuildingTreeItem::nonModelObjectChildren ( ) const
overrideprotectedvirtual

Reimplemented from openstudio::ModelObjectTreeItem.