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

#include <GridItem.hpp>

Inherits openstudio::ModelObjectGraphicsItem.

Inherited by openstudio::ColdWaterJunctionItem, openstudio::DemandSideItem, openstudio::DoubleOneThreeStraightItem, openstudio::DoubleThreeFourStraightItem, openstudio::DoubleTwoFourStraightItem, openstudio::DoubleTwoThreeFourStraightItem, openstudio::DoubleTwoThreeStraightItem, openstudio::DualDuctTee, openstudio::FourFiveNodeItem, openstudio::FourTwoStraightItem, openstudio::HorizontalBranchGroupItem, openstudio::HorizontalBranchItem, openstudio::HotWaterSupplyItem, openstudio::MainsSupplyItem, openstudio::MakeupWaterItem, openstudio::MixerItem, openstudio::OAAirToAirItem, openstudio::OAEndNodeItem, openstudio::OAMixerItem, openstudio::OAReliefBranchItem, openstudio::OAReliefStraightItem, openstudio::OAStraightNodeItem, openstudio::OASupplyBranchItem, openstudio::OASupplyStraightItem, openstudio::OASystemItem, openstudio::OneFourStraightItem, openstudio::OneThreeDualDuctItem, openstudio::OneThreeDualDuctMixerItem, openstudio::OneThreeNodeItem, openstudio::OneThreeStraightItem, openstudio::OneThreeWaterToAirItem, openstudio::OneThreeWaterToWaterItem, openstudio::OneTwoFourStraightItem, openstudio::OneTwoStraightItem, openstudio::ReturnPlenumItem, openstudio::ReverseVerticalBranchItem, openstudio::ServiceWaterItem, openstudio::SewerItem, openstudio::SplitterItem, openstudio::SupplyMixerItem, openstudio::SupplyPlenumItem, openstudio::SupplySideItem, openstudio::SupplySplitterItem, openstudio::SystemCenterItem, openstudio::SystemItem, openstudio::ThreeFourStraightItem, openstudio::TwoFiveNodeItem, openstudio::TwoFourNodeItem, openstudio::TwoFourStraightItem, openstudio::TwoThreeFourStraightItem, openstudio::TwoThreeStraightItem, openstudio::TwoThreeStraightItem2, openstudio::VerticalBranchItem, openstudio::WaterUseConnectionsDetailItem, openstudio::WaterUseConnectionsItem, and openstudio::WaterUseEquipmentItem.

Public Member Functions

virtual QRectF boundingRect () const override
 
int getHGridLength ()
 
int getVGridLength ()
 
int getXGridPos ()
 
int getYGridPos ()
 
 GridItem (QGraphicsItem *parent=nullptr)
 
void setGridPos (int x, int y)
 
void setHGridLength (int l)
 
void setVGridLength (int l)
 
virtual ~GridItem ()
 
- Public Member Functions inherited from openstudio::ModelObjectGraphicsItem
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

virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option,*widget=nullptr) override
 
- Protected Member Functions inherited from openstudio::ModelObjectGraphicsItem
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 

Protected Attributes

int m_hLength
 
int m_vLength
 
- Protected Attributes inherited from openstudio::ModelObjectGraphicsItem
bool m_deleteAble
 
bool m_enableHighlight
 
bool m_highlight
 
model::OptionalModelObject m_modelObject
 
RemoveButtonItem * m_removeButtonItem
 

Additional Inherited Members

- Signals inherited from openstudio::ModelObjectGraphicsItem
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 &)
 

Constructor & Destructor Documentation

openstudio::GridItem::GridItem ( QGraphicsItem parent = nullptr)
virtual openstudio::GridItem::~GridItem ( )
inlinevirtual

Member Function Documentation

virtual QRectF openstudio::GridItem::boundingRect ( ) const
overridevirtual
int openstudio::GridItem::getHGridLength ( )
int openstudio::GridItem::getVGridLength ( )
int openstudio::GridItem::getXGridPos ( )
int openstudio::GridItem::getYGridPos ( )
virtual void openstudio::GridItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
widget = nullptr 
)
overrideprotectedvirtual

Reimplemented in openstudio::TwoThreeFourStraightItem, openstudio::OneTwoFourStraightItem, openstudio::SystemItem, openstudio::SystemCenterItem, openstudio::SupplySideItem, openstudio::OASystemItem, openstudio::DemandSideItem, openstudio::TwoThreeStraightItem2, openstudio::DualDuctTee, openstudio::VerticalBranchItem, openstudio::HorizontalBranchGroupItem, openstudio::HorizontalBranchItem, openstudio::OAMixerItem, openstudio::OneTwoStraightItem, openstudio::TwoThreeStraightItem, openstudio::ThreeFourStraightItem, openstudio::OneFourStraightItem, openstudio::TwoFourNodeItem, openstudio::FourTwoStraightItem, openstudio::OAAirToAirItem, openstudio::OAEndNodeItem, openstudio::OAReliefBranchItem, openstudio::OASupplyBranchItem, openstudio::OAStraightNodeItem, openstudio::OAReliefStraightItem, openstudio::OASupplyStraightItem, openstudio::TwoFourStraightItem, openstudio::OneThreeWaterToWaterItem, openstudio::OneThreeWaterToAirItem, openstudio::ReturnPlenumItem, openstudio::SupplyPlenumItem, openstudio::OneThreeDualDuctMixerItem, openstudio::OneThreeStraightItem, openstudio::TwoFiveNodeItem, openstudio::FourFiveNodeItem, openstudio::OneThreeDualDuctItem, openstudio::MakeupWaterItem, openstudio::OneThreeNodeItem, openstudio::WaterUseEquipmentItem, openstudio::SupplyMixerItem, openstudio::WaterUseConnectionsItem, openstudio::SupplySplitterItem, openstudio::ColdWaterJunctionItem, openstudio::HotWaterJunctionItem, openstudio::MixerItem, openstudio::DoubleTwoThreeFourStraightItem, openstudio::SplitterItem, openstudio::DoubleTwoThreeStraightItem, openstudio::DoubleTwoFourStraightItem, openstudio::DoubleThreeFourStraightItem, openstudio::DoubleOneThreeStraightItem, openstudio::HotWaterSupplyItem, openstudio::MainsSupplyItem, openstudio::SewerItem, openstudio::WaterUseConnectionsDetailItem, and openstudio::ServiceWaterItem.

void openstudio::GridItem::setGridPos ( int  x,
int  y 
)
void openstudio::GridItem::setHGridLength ( int  l)
void openstudio::GridItem::setVGridLength ( int  l)

Member Data Documentation

int openstudio::GridItem::m_hLength
protected
int openstudio::GridItem::m_vLength
protected