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

#include <GridItem.hpp>

+ Inheritance diagram for openstudio::ModelObjectGraphicsItem:

Signals

void hvacComponentDropped (OSItemId itemid, model::HVACComponent &contextComp)
 
void hvacComponentDropped (OSItemId itemid)
 
void innerNodeClicked (model::ModelObject &)
 
void modelObjectSelected (model::OptionalModelObject &, bool readOnly)
 
void removeModelObjectClicked (model::ModelObject &)
 

Public Member Functions

void dragEnterEvent (QGraphicsSceneDragDropEvent *event) override
 
void dragLeaveEvent (QGraphicsSceneDragDropEvent *event) override
 
void dropEvent (QGraphicsSceneDragDropEvent *event) override
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
model::OptionalModelObject modelObject ()
 
 ModelObjectGraphicsItem (QGraphicsItem *parent=nullptr)
 
void setDeletable (bool deletable)
 
void setEnableHighlight (bool highlight)
 
virtual void setModelObject (model::OptionalModelObject modelObject)
 
 ~ModelObjectGraphicsItem ()
 

Protected Member Functions

QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 

Protected Attributes

bool m_deleteAble
 
bool m_enableHighlight
 
bool m_highlight
 
model::OptionalModelObject m_modelObject
 
RemoveButtonItem * m_removeButtonItem
 

Constructor & Destructor Documentation

openstudio::ModelObjectGraphicsItem::ModelObjectGraphicsItem ( QGraphicsItem parent = nullptr)
openstudio::ModelObjectGraphicsItem::~ModelObjectGraphicsItem ( )
inline

Member Function Documentation

void openstudio::ModelObjectGraphicsItem::dragEnterEvent ( QGraphicsSceneDragDropEvent *  event)
override
void openstudio::ModelObjectGraphicsItem::dragLeaveEvent ( QGraphicsSceneDragDropEvent *  event)
override
void openstudio::ModelObjectGraphicsItem::dropEvent ( QGraphicsSceneDragDropEvent *  event)
override
void openstudio::ModelObjectGraphicsItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
override
void openstudio::ModelObjectGraphicsItem::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
override
void openstudio::ModelObjectGraphicsItem::hvacComponentDropped ( OSItemId  itemid,
model::HVACComponent &  contextComp 
)
signal
void openstudio::ModelObjectGraphicsItem::hvacComponentDropped ( OSItemId  itemid)
signal
void openstudio::ModelObjectGraphicsItem::innerNodeClicked ( model::ModelObject &  )
signal
QVariant openstudio::ModelObjectGraphicsItem::itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprotected
model::OptionalModelObject openstudio::ModelObjectGraphicsItem::modelObject ( )
void openstudio::ModelObjectGraphicsItem::modelObjectSelected ( model::OptionalModelObject &  ,
bool  readOnly 
)
signal
void openstudio::ModelObjectGraphicsItem::removeModelObjectClicked ( model::ModelObject &  )
signal
void openstudio::ModelObjectGraphicsItem::setDeletable ( bool  deletable)
void openstudio::ModelObjectGraphicsItem::setEnableHighlight ( bool  highlight)
virtual void openstudio::ModelObjectGraphicsItem::setModelObject ( model::OptionalModelObject  modelObject)
virtual

Member Data Documentation

bool openstudio::ModelObjectGraphicsItem::m_deleteAble
protected
bool openstudio::ModelObjectGraphicsItem::m_enableHighlight
protected
bool openstudio::ModelObjectGraphicsItem::m_highlight
protected
model::OptionalModelObject openstudio::ModelObjectGraphicsItem::m_modelObject
protected
RemoveButtonItem* openstudio::ModelObjectGraphicsItem::m_removeButtonItem
protected