LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
LC::Util::PlotItem Class Reference

#include "plotitem.h"

+ Inheritance diagram for LC::Util::PlotItem:
+ Collaboration diagram for LC::Util::PlotItem:

Signals

void pointsChanged ()
 
void multipointsChanged ()
 
void minXValueChanged ()
 
void maxXValueChanged ()
 
void minYValueChanged ()
 
void maxYValueChanged ()
 
void yGridChanged ()
 
void yMinorGridChanged ()
 
void alphaChanged ()
 
void colorChanged ()
 
void leftAxisEnabledChanged ()
 
void bottomAxisEnabledChanged ()
 
void leftAxisTitleChanged ()
 
void bottomAxisTitleChanged ()
 
void plotTitleChanged ()
 
void backgroundChanged ()
 
void textColorChanged ()
 
void gridLinesColorChanged ()
 
void extentsChanged ()
 

Public Member Functions

 PlotItem (QQuickItem *=nullptr)
 
QList< QPointF > GetPoints () const
 
void SetPoints (const QList< QPointF > &)
 
QVariant GetMultipoints () const
 
void SetMultipoints (const QVariant &)
 
double GetMinXValue () const
 
void SetMinXValue (double)
 
double GetMaxXValue () const
 
void SetMaxXValue (double)
 
double GetMinYValue () const
 
void SetMinYValue (double)
 
double GetMaxYValue () const
 
void SetMaxYValue (double)
 
bool GetYGridEnabled () const
 
void SetYGridEnabled (bool)
 
bool GetYMinorGridEnabled () const
 
void SetYMinorGridEnabled (bool)
 
double GetAlpha () const
 
void SetAlpha (double)
 
QColor GetColor () const
 
void SetColor (const QColor &)
 
bool GetLeftAxisEnabled () const
 
void SetLeftAxisEnabled (bool)
 
bool GetBottomAxisEnabled () const
 
void SetBottomAxisEnabled (bool)
 
QString GetLeftAxisTitle () const
 
void SetLeftAxisTitle (const QString &)
 
QString GetBottomAxisTitle () const
 
void SetBottomAxisTitle (const QString &)
 
QString GetPlotTitle () const
 
void SetPlotTitle (const QString &)
 
QColor GetBackground () const
 
void SetBackground (const QColor &)
 
QColor GetTextColor () const
 
void SetTextColor (const QColor &)
 
QColor GetGridLinesColor () const
 
void SetGridLinesColor (const QColor &)
 
int GetXExtent () const
 
int GetYExtent () const
 
void paint (QPainter *) override
 

Properties

QList< QPointF > points
 
QVariant multipoints
 
double minXValue
 
double maxXValue
 
double minYValue
 
double maxYValue
 
bool yGridEnabled
 
bool yMinorGridEnabled
 
double alpha
 
QColor color
 
bool leftAxisEnabled
 
bool bottomAxisEnabled
 
QString leftAxisTitle
 
QString bottomAxisTitle
 
QString plotTitle
 
QColor background
 
QColor textColor
 
QColor gridLinesColor
 
int xExtent
 
int yExtent
 

Detailed Description

Definition at line 21 of file plotitem.h.

Constructor & Destructor Documentation

◆ PlotItem()

LC::Util::PlotItem::PlotItem ( QQuickItem *  parent = nullptr)
explicit

Definition at line 34 of file plotitem.cpp.

Member Function Documentation

◆ alphaChanged

void LC::Util::PlotItem::alphaChanged ( )
signal

Referenced by GetAlpha().

+ Here is the caller graph for this function:

◆ backgroundChanged

void LC::Util::PlotItem::backgroundChanged ( )
signal

Referenced by GetBackground().

+ Here is the caller graph for this function:

◆ bottomAxisEnabledChanged

void LC::Util::PlotItem::bottomAxisEnabledChanged ( )
signal

Referenced by GetBottomAxisEnabled().

+ Here is the caller graph for this function:

◆ bottomAxisTitleChanged

void LC::Util::PlotItem::bottomAxisTitleChanged ( )
signal

Referenced by GetBottomAxisTitle().

+ Here is the caller graph for this function:

◆ colorChanged

void LC::Util::PlotItem::colorChanged ( )
signal

Referenced by GetColor().

+ Here is the caller graph for this function:

◆ extentsChanged

void LC::Util::PlotItem::extentsChanged ( )
signal

◆ GetAlpha()

double LC::Util::PlotItem::GetAlpha ( ) const

Definition at line 198 of file plotitem.cpp.

References alphaChanged().

◆ GetBackground()

QColor LC::Util::PlotItem::GetBackground ( ) const

Definition at line 269 of file plotitem.cpp.

References backgroundChanged().

◆ GetBottomAxisEnabled()

bool LC::Util::PlotItem::GetBottomAxisEnabled ( ) const

Definition at line 229 of file plotitem.cpp.

References bottomAxisEnabledChanged().

◆ GetBottomAxisTitle()

QString LC::Util::PlotItem::GetBottomAxisTitle ( ) const

Definition at line 249 of file plotitem.cpp.

References bottomAxisTitleChanged().

◆ GetColor()

QColor LC::Util::PlotItem::GetColor ( ) const

Definition at line 209 of file plotitem.cpp.

References color, and colorChanged().

◆ GetGridLinesColor()

QColor LC::Util::PlotItem::GetGridLinesColor ( ) const

Definition at line 289 of file plotitem.cpp.

References color, and gridLinesColorChanged().

◆ GetLeftAxisEnabled()

bool LC::Util::PlotItem::GetLeftAxisEnabled ( ) const

Definition at line 219 of file plotitem.cpp.

References leftAxisEnabledChanged().

◆ GetLeftAxisTitle()

QString LC::Util::PlotItem::GetLeftAxisTitle ( ) const

Definition at line 239 of file plotitem.cpp.

References leftAxisTitleChanged().

◆ GetMaxXValue()

double LC::Util::PlotItem::GetMaxXValue ( ) const

Definition at line 148 of file plotitem.cpp.

References maxXValueChanged().

◆ GetMaxYValue()

double LC::Util::PlotItem::GetMaxYValue ( ) const

Definition at line 168 of file plotitem.cpp.

References maxYValueChanged().

◆ GetMinXValue()

double LC::Util::PlotItem::GetMinXValue ( ) const

Definition at line 138 of file plotitem.cpp.

References minXValueChanged().

◆ GetMinYValue()

double LC::Util::PlotItem::GetMinYValue ( ) const

Definition at line 158 of file plotitem.cpp.

References minYValueChanged().

◆ GetMultipoints()

QVariant LC::Util::PlotItem::GetMultipoints ( ) const

Definition at line 56 of file plotitem.cpp.

◆ GetPlotTitle()

QString LC::Util::PlotItem::GetPlotTitle ( ) const

Definition at line 259 of file plotitem.cpp.

References plotTitleChanged().

◆ GetPoints()

QList< QPointF > LC::Util::PlotItem::GetPoints ( ) const

Definition at line 41 of file plotitem.cpp.

◆ GetTextColor()

QColor LC::Util::PlotItem::GetTextColor ( ) const

Definition at line 279 of file plotitem.cpp.

References color, and textColorChanged().

◆ GetXExtent()

int LC::Util::PlotItem::GetXExtent ( ) const

Definition at line 299 of file plotitem.cpp.

◆ GetYExtent()

int LC::Util::PlotItem::GetYExtent ( ) const

Definition at line 304 of file plotitem.cpp.

◆ GetYGridEnabled()

bool LC::Util::PlotItem::GetYGridEnabled ( ) const

Definition at line 178 of file plotitem.cpp.

References yGridChanged().

◆ GetYMinorGridEnabled()

bool LC::Util::PlotItem::GetYMinorGridEnabled ( ) const

Definition at line 188 of file plotitem.cpp.

References yMinorGridChanged().

◆ gridLinesColorChanged

void LC::Util::PlotItem::gridLinesColorChanged ( )
signal

Referenced by GetGridLinesColor().

+ Here is the caller graph for this function:

◆ leftAxisEnabledChanged

void LC::Util::PlotItem::leftAxisEnabledChanged ( )
signal

Referenced by GetLeftAxisEnabled().

+ Here is the caller graph for this function:

◆ leftAxisTitleChanged

void LC::Util::PlotItem::leftAxisTitleChanged ( )
signal

Referenced by GetLeftAxisTitle().

+ Here is the caller graph for this function:

◆ maxXValueChanged

void LC::Util::PlotItem::maxXValueChanged ( )
signal

Referenced by GetMaxXValue().

+ Here is the caller graph for this function:

◆ maxYValueChanged

void LC::Util::PlotItem::maxYValueChanged ( )
signal

Referenced by GetMaxYValue().

+ Here is the caller graph for this function:

◆ minXValueChanged

void LC::Util::PlotItem::minXValueChanged ( )
signal

Referenced by GetMinXValue().

+ Here is the caller graph for this function:

◆ minYValueChanged

void LC::Util::PlotItem::minYValueChanged ( )
signal

Referenced by GetMinYValue().

+ Here is the caller graph for this function:

◆ multipointsChanged

void LC::Util::PlotItem::multipointsChanged ( )
signal

◆ paint()

void LC::Util::PlotItem::paint ( QPainter *  painter)
override

Definition at line 309 of file plotitem.cpp.

◆ plotTitleChanged

void LC::Util::PlotItem::plotTitleChanged ( )
signal

Referenced by GetPlotTitle().

+ Here is the caller graph for this function:

◆ pointsChanged

void LC::Util::PlotItem::pointsChanged ( )
signal

◆ SetAlpha()

void LC::Util::PlotItem::SetAlpha ( double  a)

Definition at line 203 of file plotitem.cpp.

◆ SetBackground()

void LC::Util::PlotItem::SetBackground ( const QColor &  bg)

Definition at line 274 of file plotitem.cpp.

◆ SetBottomAxisEnabled()

void LC::Util::PlotItem::SetBottomAxisEnabled ( bool  enabled)

Definition at line 234 of file plotitem.cpp.

◆ SetBottomAxisTitle()

void LC::Util::PlotItem::SetBottomAxisTitle ( const QString &  title)

Definition at line 254 of file plotitem.cpp.

◆ SetColor()

void LC::Util::PlotItem::SetColor ( const QColor &  color)

Definition at line 214 of file plotitem.cpp.

◆ SetGridLinesColor()

void LC::Util::PlotItem::SetGridLinesColor ( const QColor &  color)

Definition at line 294 of file plotitem.cpp.

◆ SetLeftAxisEnabled()

void LC::Util::PlotItem::SetLeftAxisEnabled ( bool  enabled)

Definition at line 224 of file plotitem.cpp.

◆ SetLeftAxisTitle()

void LC::Util::PlotItem::SetLeftAxisTitle ( const QString &  title)

Definition at line 244 of file plotitem.cpp.

◆ SetMaxXValue()

void LC::Util::PlotItem::SetMaxXValue ( double  val)

Definition at line 153 of file plotitem.cpp.

◆ SetMaxYValue()

void LC::Util::PlotItem::SetMaxYValue ( double  val)

Definition at line 173 of file plotitem.cpp.

◆ SetMinXValue()

void LC::Util::PlotItem::SetMinXValue ( double  val)

Definition at line 143 of file plotitem.cpp.

◆ SetMinYValue()

void LC::Util::PlotItem::SetMinYValue ( double  val)

Definition at line 163 of file plotitem.cpp.

◆ SetMultipoints()

void LC::Util::PlotItem::SetMultipoints ( const QVariant &  variant)

Definition at line 84 of file plotitem.cpp.

References color, LC::Util::Map(), and points.

+ Here is the call graph for this function:

◆ SetPlotTitle()

void LC::Util::PlotItem::SetPlotTitle ( const QString &  title)

Definition at line 264 of file plotitem.cpp.

◆ SetPoints()

void LC::Util::PlotItem::SetPoints ( const QList< QPointF > &  pts)

Definition at line 46 of file plotitem.cpp.

◆ SetTextColor()

void LC::Util::PlotItem::SetTextColor ( const QColor &  color)

Definition at line 284 of file plotitem.cpp.

◆ SetYGridEnabled()

void LC::Util::PlotItem::SetYGridEnabled ( bool  val)

Definition at line 183 of file plotitem.cpp.

◆ SetYMinorGridEnabled()

void LC::Util::PlotItem::SetYMinorGridEnabled ( bool  val)

Definition at line 193 of file plotitem.cpp.

◆ textColorChanged

void LC::Util::PlotItem::textColorChanged ( )
signal

Referenced by GetTextColor().

+ Here is the caller graph for this function:

◆ yGridChanged

void LC::Util::PlotItem::yGridChanged ( )
signal

Referenced by GetYGridEnabled().

+ Here is the caller graph for this function:

◆ yMinorGridChanged

void LC::Util::PlotItem::yMinorGridChanged ( )
signal

Referenced by GetYMinorGridEnabled().

+ Here is the caller graph for this function:

Property Documentation

◆ alpha

double LC::Util::PlotItem::alpha
readwrite

Definition at line 37 of file plotitem.h.

◆ background

QColor LC::Util::PlotItem::background
readwrite

Definition at line 46 of file plotitem.h.

◆ bottomAxisEnabled

bool LC::Util::PlotItem::bottomAxisEnabled
readwrite

Definition at line 40 of file plotitem.h.

◆ bottomAxisTitle

QString LC::Util::PlotItem::bottomAxisTitle
readwrite

Definition at line 42 of file plotitem.h.

◆ color

QColor LC::Util::PlotItem::color
readwrite

Definition at line 38 of file plotitem.h.

Referenced by GetColor(), GetGridLinesColor(), GetTextColor(), and SetMultipoints().

◆ gridLinesColor

QColor LC::Util::PlotItem::gridLinesColor
readwrite

Definition at line 48 of file plotitem.h.

◆ leftAxisEnabled

bool LC::Util::PlotItem::leftAxisEnabled
readwrite

Definition at line 39 of file plotitem.h.

◆ leftAxisTitle

QString LC::Util::PlotItem::leftAxisTitle
readwrite

Definition at line 41 of file plotitem.h.

◆ maxXValue

double LC::Util::PlotItem::maxXValue
readwrite

Definition at line 30 of file plotitem.h.

◆ maxYValue

double LC::Util::PlotItem::maxYValue
readwrite

Definition at line 32 of file plotitem.h.

◆ minXValue

double LC::Util::PlotItem::minXValue
readwrite

Definition at line 29 of file plotitem.h.

◆ minYValue

double LC::Util::PlotItem::minYValue
readwrite

Definition at line 31 of file plotitem.h.

◆ multipoints

QVariant LC::Util::PlotItem::multipoints
readwrite

Definition at line 27 of file plotitem.h.

◆ plotTitle

QString LC::Util::PlotItem::plotTitle
readwrite

Definition at line 44 of file plotitem.h.

◆ points

QList<QPointF> LC::Util::PlotItem::points
readwrite

Definition at line 25 of file plotitem.h.

Referenced by SetMultipoints().

◆ textColor

QColor LC::Util::PlotItem::textColor
readwrite

Definition at line 47 of file plotitem.h.

◆ xExtent

int LC::Util::PlotItem::xExtent
read

Definition at line 50 of file plotitem.h.

◆ yExtent

int LC::Util::PlotItem::yExtent
read

Definition at line 51 of file plotitem.h.

◆ yGridEnabled

bool LC::Util::PlotItem::yGridEnabled
readwrite

Definition at line 34 of file plotitem.h.

◆ yMinorGridEnabled

bool LC::Util::PlotItem::yMinorGridEnabled
readwrite

Definition at line 35 of file plotitem.h.


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