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)  

DatapickerPointPrivate Class Reference

#include <DatapickerPointPrivate.h>

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

Public Member Functions

 DatapickerPointPrivate (DatapickerPoint *)
 
QString name () const
 
void retransform ()
 
virtual void recalcShapeAndBoundingRect ()
 
void updatePoint ()
 
void updatePropeties ()
 
void retransformErrorBar ()
 
QRectF boundingRect () const override
 
QPainterPath shape () const override
 
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=nullptr) override
 

Public Attributes

bool m_printing {false}
 
qreal rotationAngle
 
QPointF position
 
QRectF boundingRectangle
 
QRectF transformedBoundingRectangle
 
Symbol::Style pointStyle
 
QBrush brush
 
QPen pen
 
qreal opacity
 
qreal size
 
QPainterPath itemShape
 
QPointF plusDeltaXPos
 
QPointF minusDeltaXPos
 
QPointF plusDeltaYPos
 
QPointF minusDeltaYPos
 
QBrush errorBarBrush
 
QPen errorBarPen
 
qreal errorBarSize
 
DatapickerPoint *const q
 

Private Member Functions

void contextMenuEvent (QGraphicsSceneContextMenuEvent *) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *) override
 
void hoverEnterEvent (QGraphicsSceneHoverEvent *) override
 
void hoverLeaveEvent (QGraphicsSceneHoverEvent *) override
 

Detailed Description

Definition at line 33 of file DatapickerPointPrivate.h.

Constructor & Destructor Documentation

◆ DatapickerPointPrivate()

DatapickerPointPrivate::DatapickerPointPrivate ( DatapickerPoint owner)
explicit

Definition at line 310 of file DatapickerPoint.cpp.

Member Function Documentation

◆ boundingRect()

QRectF DatapickerPointPrivate::boundingRect ( ) const
override

Returns the outer bounds of the item as a rectangle.

Definition at line 384 of file DatapickerPoint.cpp.

References transformedBoundingRectangle.

◆ contextMenuEvent()

void DatapickerPointPrivate::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  event)
overrideprivate

Definition at line 451 of file DatapickerPoint.cpp.

References DatapickerPoint::createContextMenu(), and q.

◆ hoverEnterEvent()

void DatapickerPointPrivate::hoverEnterEvent ( QGraphicsSceneHoverEvent *  )
overrideprivate

Definition at line 415 of file DatapickerPoint.cpp.

◆ hoverLeaveEvent()

void DatapickerPointPrivate::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  )
overrideprivate

Definition at line 419 of file DatapickerPoint.cpp.

◆ mouseReleaseEvent()

void DatapickerPointPrivate::mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overrideprivate

Definition at line 410 of file DatapickerPoint.cpp.

References q.

◆ name()

QString DatapickerPointPrivate::name ( ) const

Definition at line 317 of file DatapickerPoint.cpp.

References AbstractAspect::name(), and q.

◆ paint()

void DatapickerPointPrivate::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = nullptr 
)
override

◆ recalcShapeAndBoundingRect()

void DatapickerPointPrivate::recalcShapeAndBoundingRect ( )
virtual

recalculates the outer bounds and the shape of the item.

Definition at line 398 of file DatapickerPoint.cpp.

References boundingRectangle, itemShape, pen, rotationAngle, WorksheetElement::shapeFromPath(), size, and transformedBoundingRectangle.

Referenced by retransform().

◆ retransform()

void DatapickerPointPrivate::retransform ( )

calculates the position and the bounding box of the item/point. Called on geometry or properties changes.

Definition at line 324 of file DatapickerPoint.cpp.

References boundingRectangle, Symbol::pathFromStyle(), pointStyle, position, recalcShapeAndBoundingRect(), retransformErrorBar(), updatePoint(), and updatePropeties().

◆ retransformErrorBar()

void DatapickerPointPrivate::retransformErrorBar ( )

update color and size of all error-bar.

Definition at line 337 of file DatapickerPoint.cpp.

References errorBarBrush, errorBarPen, errorBarSize, DatapickerPoint::m_errorBarItemList, and q.

Referenced by retransform().

◆ shape()

QPainterPath DatapickerPointPrivate::shape ( ) const
override

Returns the shape of this item as a QPainterPath in local coordinates.

Definition at line 391 of file DatapickerPoint.cpp.

References itemShape.

◆ updatePoint()

void DatapickerPointPrivate::updatePoint ( )

update datasheet on any change in position of Datapicker-Point or it's error-bar.

Definition at line 350 of file DatapickerPoint.cpp.

References AbstractAspect::parentAspect(), q, and DatapickerCurve::updatePoint().

Referenced by retransform().

◆ updatePropeties()

void DatapickerPointPrivate::updatePropeties ( )

Member Data Documentation

◆ boundingRectangle

QRectF DatapickerPointPrivate::boundingRectangle

Definition at line 47 of file DatapickerPointPrivate.h.

Referenced by recalcShapeAndBoundingRect(), and retransform().

◆ brush

QBrush DatapickerPointPrivate::brush

Definition at line 50 of file DatapickerPointPrivate.h.

Referenced by paint(), and updatePropeties().

◆ errorBarBrush

QBrush DatapickerPointPrivate::errorBarBrush

Definition at line 60 of file DatapickerPointPrivate.h.

Referenced by retransformErrorBar(), and updatePropeties().

◆ errorBarPen

QPen DatapickerPointPrivate::errorBarPen

Definition at line 61 of file DatapickerPointPrivate.h.

Referenced by retransformErrorBar(), and updatePropeties().

◆ errorBarSize

qreal DatapickerPointPrivate::errorBarSize

Definition at line 62 of file DatapickerPointPrivate.h.

Referenced by retransformErrorBar(), and updatePropeties().

◆ itemShape

QPainterPath DatapickerPointPrivate::itemShape

Definition at line 54 of file DatapickerPointPrivate.h.

Referenced by paint(), recalcShapeAndBoundingRect(), and shape().

◆ m_printing

bool DatapickerPointPrivate::m_printing {false}

Definition at line 44 of file DatapickerPointPrivate.h.

Referenced by paint().

◆ minusDeltaXPos

QPointF DatapickerPointPrivate::minusDeltaXPos

Definition at line 57 of file DatapickerPointPrivate.h.

◆ minusDeltaYPos

QPointF DatapickerPointPrivate::minusDeltaYPos

Definition at line 59 of file DatapickerPointPrivate.h.

◆ opacity

qreal DatapickerPointPrivate::opacity

Definition at line 52 of file DatapickerPointPrivate.h.

Referenced by paint(), and updatePropeties().

◆ pen

QPen DatapickerPointPrivate::pen

Definition at line 51 of file DatapickerPointPrivate.h.

Referenced by paint(), recalcShapeAndBoundingRect(), and updatePropeties().

◆ plusDeltaXPos

QPointF DatapickerPointPrivate::plusDeltaXPos

Definition at line 56 of file DatapickerPointPrivate.h.

◆ plusDeltaYPos

QPointF DatapickerPointPrivate::plusDeltaYPos

Definition at line 58 of file DatapickerPointPrivate.h.

◆ pointStyle

Symbol::Style DatapickerPointPrivate::pointStyle

Definition at line 49 of file DatapickerPointPrivate.h.

Referenced by paint(), retransform(), and updatePropeties().

◆ position

QPointF DatapickerPointPrivate::position

Definition at line 46 of file DatapickerPointPrivate.h.

Referenced by retransform().

◆ q

DatapickerPoint* const DatapickerPointPrivate::q

◆ rotationAngle

qreal DatapickerPointPrivate::rotationAngle

Definition at line 45 of file DatapickerPointPrivate.h.

Referenced by paint(), recalcShapeAndBoundingRect(), and updatePropeties().

◆ size

qreal DatapickerPointPrivate::size

Definition at line 53 of file DatapickerPointPrivate.h.

Referenced by paint(), recalcShapeAndBoundingRect(), and updatePropeties().

◆ transformedBoundingRectangle

QRectF DatapickerPointPrivate::transformedBoundingRectangle

Definition at line 48 of file DatapickerPointPrivate.h.

Referenced by boundingRect(), and recalcShapeAndBoundingRect().


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