labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ErrorBarItem Class Reference

A customizable error-bar for DatapickerPoint. More...

#include <DatapickerPoint.h>

Inheritance diagram for ErrorBarItem:
[legend]
Collaboration diagram for ErrorBarItem:
[legend]

Public Types

enum class  ErrorBarType { PlusDeltaX , MinusDeltaX , PlusDeltaY , MinusDeltaY }
 

Public Slots

void setPosition (QPointF)
 

Public Member Functions

 ErrorBarItem (DatapickerPoint *parent=nullptr, ErrorBarType type=ErrorBarType::PlusDeltaX)
 
void setRectSize (const qreal)
 

Private Member Functions

void initRect ()
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *) override
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *) override
 
QVariant itemChange (GraphicsItemChange, const QVariant &value) override
 

Private Attributes

QGraphicsLineItem * barLineItem
 
QRectF m_rect
 
ErrorBarType m_type
 
DatapickerPointm_parentItem
 

Detailed Description

A customizable error-bar for DatapickerPoint.

File : DatapickerPoint.h Project : LabPlot

Description : Graphic Item for coordinate points of Datapicker

Copyright : (C) 2015 by Ankit Wagadre (wagad.nosp@m.re.a.nosp@m.nkit@.nosp@m.gmai.nosp@m.l.com) Copyright : (C) 2015-2019 Alexander Semke (alexa.nosp@m.nder.nosp@m..semk.nosp@m.e@we.nosp@m.b.de)

  • This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. *
  • This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *
  • You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA *
  • File : DatapickerPoint.cpp Project : LabPlot

Description : Graphic Item for coordinate points of Datapicker

Copyright : (C) 2015 by Ankit Wagadre (wagad.nosp@m.re.a.nosp@m.nkit@.nosp@m.gmai.nosp@m.l.com) Copyright : (C) 2015-2019 Alexander Semke (alexa.nosp@m.nder.nosp@m..semk.nosp@m.e@we.nosp@m.b.de)

  • This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. *
  • This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *
  • You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA *

Definition at line 37 of file DatapickerPoint.h.

Member Enumeration Documentation

◆ ErrorBarType

Enumerator
PlusDeltaX 
MinusDeltaX 
PlusDeltaY 
MinusDeltaY 

Definition at line 41 of file DatapickerPoint.h.

Constructor & Destructor Documentation

◆ ErrorBarItem()

ErrorBarItem::ErrorBarItem ( DatapickerPoint parent = nullptr,
ErrorBarType  type = ErrorBarType::PlusDeltaX 
)
explicit

Definition at line 49 of file DatapickerPoint.cpp.

References initRect().

Member Function Documentation

◆ hoverEnterEvent()

void ErrorBarItem::hoverEnterEvent ( QGraphicsSceneHoverEvent *  )
overrideprivate

Definition at line 95 of file DatapickerPoint.cpp.

References m_type, MinusDeltaX, and PlusDeltaX.

◆ initRect()

void ErrorBarItem::initRect ( )
private

Definition at line 61 of file DatapickerPoint.cpp.

References m_rect, m_type, MinusDeltaX, and PlusDeltaX.

Referenced by ErrorBarItem().

◆ itemChange()

QVariant ErrorBarItem::itemChange ( GraphicsItemChange  ,
const QVariant &  value 
)
overrideprivate

Definition at line 102 of file DatapickerPoint.cpp.

References barLineItem, m_type, MinusDeltaX, and PlusDeltaX.

◆ mouseReleaseEvent()

void ErrorBarItem::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overrideprivate

Definition at line 82 of file DatapickerPoint.cpp.

References m_parentItem, m_type, MinusDeltaX, MinusDeltaY, PlusDeltaX, and PlusDeltaY.

◆ setPosition

void ErrorBarItem::setPosition ( QPointF  position)
slot

Definition at line 71 of file DatapickerPoint.cpp.

References barLineItem.

Referenced by DatapickerPoint::initErrorBar().

◆ setRectSize()

void ErrorBarItem::setRectSize ( const  qreal)

Definition at line 76 of file DatapickerPoint.cpp.

References m_rect.

Member Data Documentation

◆ barLineItem

QGraphicsLineItem* ErrorBarItem::barLineItem
private

Definition at line 55 of file DatapickerPoint.h.

Referenced by itemChange(), and setPosition().

◆ m_parentItem

DatapickerPoint* ErrorBarItem::m_parentItem
private

Definition at line 58 of file DatapickerPoint.h.

Referenced by mouseReleaseEvent().

◆ m_rect

QRectF ErrorBarItem::m_rect
private

Definition at line 56 of file DatapickerPoint.h.

Referenced by initRect(), and setRectSize().

◆ m_type

ErrorBarType ErrorBarItem::m_type
private

Definition at line 57 of file DatapickerPoint.h.

Referenced by hoverEnterEvent(), initRect(), itemChange(), and mouseReleaseEvent().


The documentation for this class was generated from the following files: