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

#include <ScheduleDayView.hpp>

+ Inheritance diagram for openstudio::CalendarSegmentItem:

Public Member Functions

QRectF boundingRect () const override
 
 CalendarSegmentItem (QGraphicsItem *parent=nullptr)
 
double endTime () const
 
double hCenterPos () const
 
bool isMouseDown () const
 
bool isOutOfTypeLimits () const
 
CalendarSegmentItemnextCalendarItem () const
 
VCalendarSegmentItemnextVCalendarItem () const
 
CalendarSegmentItempreviousCalendarItem () const
 
VCalendarSegmentItempreviousVCalendarItem () const
 
DayScheduleScenescene () const
 
void setEndTime (double time)
 
void setIsOutOfTypeLimits (bool isOutOfTypeLimits)
 
void setNextVCalendarItem (VCalendarSegmentItem *item)
 
void setPreviousVCalendarItem (VCalendarSegmentItem *item)
 
void setStartTime (double time)
 
void setValue (double value)
 
void splitSegment (double time)
 
double startTime () const
 
double value () const
 
double vCenterPos () const
 
virtual ~CalendarSegmentItem ()
 

Protected Member Functions

void paint (QPainter *painter, const QStyleOptionGraphicsItem *option,*widget) override
 
void setHovering (bool hovering)
 
void setMouseDown (bool mouseDown)
 

Constructor & Destructor Documentation

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

Member Function Documentation

QRectF openstudio::CalendarSegmentItem::boundingRect ( ) const
override
double openstudio::CalendarSegmentItem::endTime ( ) const
double openstudio::CalendarSegmentItem::hCenterPos ( ) const
bool openstudio::CalendarSegmentItem::isMouseDown ( ) const
bool openstudio::CalendarSegmentItem::isOutOfTypeLimits ( ) const
CalendarSegmentItem* openstudio::CalendarSegmentItem::nextCalendarItem ( ) const
VCalendarSegmentItem* openstudio::CalendarSegmentItem::nextVCalendarItem ( ) const
void openstudio::CalendarSegmentItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
widget 
)
overrideprotected
CalendarSegmentItem* openstudio::CalendarSegmentItem::previousCalendarItem ( ) const
VCalendarSegmentItem* openstudio::CalendarSegmentItem::previousVCalendarItem ( ) const
DayScheduleScene* openstudio::CalendarSegmentItem::scene ( ) const
void openstudio::CalendarSegmentItem::setEndTime ( double  time)
void openstudio::CalendarSegmentItem::setHovering ( bool  hovering)
protected
void openstudio::CalendarSegmentItem::setIsOutOfTypeLimits ( bool  isOutOfTypeLimits)
void openstudio::CalendarSegmentItem::setMouseDown ( bool  mouseDown)
protected
void openstudio::CalendarSegmentItem::setNextVCalendarItem ( VCalendarSegmentItem item)
void openstudio::CalendarSegmentItem::setPreviousVCalendarItem ( VCalendarSegmentItem item)
void openstudio::CalendarSegmentItem::setStartTime ( double  time)
void openstudio::CalendarSegmentItem::setValue ( double  value)
void openstudio::CalendarSegmentItem::splitSegment ( double  time)
double openstudio::CalendarSegmentItem::startTime ( ) const
double openstudio::CalendarSegmentItem::value ( ) const
double openstudio::CalendarSegmentItem::vCenterPos ( ) const