• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

Analitza

  • Analitza
  • Plotter2D
Public Member Functions | Protected Member Functions | List of all members
Analitza::Plotter2D Class Referenceabstract
AnalitzaPlot

#include <plotter2d.h>

Inheritance diagram for Analitza::Plotter2D:
Inheritance graph
[legend]

Public Member Functions

 Plotter2D (const QSizeF &size)
 
virtual ~Plotter2D ()
 
virtual int currentFunction () const =0
 
virtual void drawFunctions (QPaintDevice *qpd)
 
virtual void forceRepaint ()=0
 
bool keepAspectRatio () const
 
QAbstractItemModel * model () const
 
virtual void modelChanged ()=0
 
void moveViewport (const QPoint &delta)
 
void setAxesShown (Qt::Orientations o)
 
void setKeepAspectRatio (bool ar)
 
void setModel (QAbstractItemModel *f)
 
void setSquares (bool newSquare)
 
void setTicksShown (Qt::Orientations o)
 
void setViewport (const QRectF &vp, bool repaint=true)
 
void setXAxisLabel (const QString &label)
 
void setYAxisLabel (const QString &label)
 
bool squares () const
 
Qt::Orientations ticksShown () const
 
void updateFunctions (const QModelIndex &parent, int start, int end)
 
void updateGridColor (const QColor &color)
 
void updateTickScale (const QString &m_tickScaleSymbol, qreal m_tickScaleSymbolValue, int m_tickScaleNumerator, int m_tickScaleDenominator)
 
virtual void viewportChanged ()=0
 

Protected Member Functions

QPair< QPointF, QString > calcImage (const QPointF &ndp) const
 
QPointF fromWidget (const QPoint &p) const
 
QRectF lastUserViewport () const
 
QRectF lastViewport () const
 
void scaleViewport (qreal s, const QPoint &center)
 
void setPaintedSize (const QSize &size)
 
QLineF slope (const QPointF &dp) const
 
QPointF toViewport (const QPoint &mv) const
 
QPointF toWidget (const QPointF &) const
 
QLineF toWidget (const QLineF &) const
 
void updateScale (bool repaint)
 

Detailed Description

Render 2D plots.

This class uses QPainter as backend for drawing plots.

Definition at line 52 of file plotter2d.h.

Constructor & Destructor Documentation

Analitza::Plotter2D::Plotter2D ( const QSizeF &  size)
virtual Analitza::Plotter2D::~Plotter2D ( )
virtual

Member Function Documentation

QPair<QPointF, QString> Analitza::Plotter2D::calcImage ( const QPointF &  ndp) const
protected
virtual int Analitza::Plotter2D::currentFunction ( ) const
pure virtual
virtual void Analitza::Plotter2D::drawFunctions ( QPaintDevice *  qpd)
virtual
virtual void Analitza::Plotter2D::forceRepaint ( )
pure virtual
QPointF Analitza::Plotter2D::fromWidget ( const QPoint &  p) const
protected
bool Analitza::Plotter2D::keepAspectRatio ( ) const
inline

Sets whether it is keeping the aspect ratio (1:1 grid).

Definition at line 74 of file plotter2d.h.

QRectF Analitza::Plotter2D::lastUserViewport ( ) const
inlineprotected

Definition at line 101 of file plotter2d.h.

QRectF Analitza::Plotter2D::lastViewport ( ) const
inlineprotected

Definition at line 100 of file plotter2d.h.

QAbstractItemModel* Analitza::Plotter2D::model ( ) const
inline

Definition at line 80 of file plotter2d.h.

virtual void Analitza::Plotter2D::modelChanged ( )
pure virtual
void Analitza::Plotter2D::moveViewport ( const QPoint &  delta)

Moves the viewport delta.

void Analitza::Plotter2D::scaleViewport ( qreal  s,
const QPoint &  center 
)
protected
void Analitza::Plotter2D::setAxesShown ( Qt::Orientations  o)
inline

Definition at line 95 of file plotter2d.h.

void Analitza::Plotter2D::setKeepAspectRatio ( bool  ar)

Sets whether it has to keep the aspect ratio (1:1 grid).

void Analitza::Plotter2D::setModel ( QAbstractItemModel *  f)
void Analitza::Plotter2D::setPaintedSize ( const QSize &  size)
protected
void Analitza::Plotter2D::setSquares ( bool  newSquare)
inline

Sets whether we will see a grid or only the axes.

Definition at line 65 of file plotter2d.h.

void Analitza::Plotter2D::setTicksShown ( Qt::Orientations  o)
inline

Definition at line 94 of file plotter2d.h.

void Analitza::Plotter2D::setViewport ( const QRectF &  vp,
bool  repaint = true 
)

Sets the graph's viewport to v.

void Analitza::Plotter2D::setXAxisLabel ( const QString &  label)
void Analitza::Plotter2D::setYAxisLabel ( const QString &  label)
QLineF Analitza::Plotter2D::slope ( const QPointF &  dp) const
protected
bool Analitza::Plotter2D::squares ( ) const
inline

Returns whether we have chosen to see the grid.

Definition at line 68 of file plotter2d.h.

Qt::Orientations Analitza::Plotter2D::ticksShown ( ) const
inline

Definition at line 97 of file plotter2d.h.

QPointF Analitza::Plotter2D::toViewport ( const QPoint &  mv) const
protected
QPointF Analitza::Plotter2D::toWidget ( const QPointF &  ) const
protected
QLineF Analitza::Plotter2D::toWidget ( const QLineF &  ) const
protected
void Analitza::Plotter2D::updateFunctions ( const QModelIndex &  parent,
int  start,
int  end 
)

Force the functions from start to end to be recalculated.

void Analitza::Plotter2D::updateGridColor ( const QColor &  color)
inline

Definition at line 92 of file plotter2d.h.

void Analitza::Plotter2D::updateScale ( bool  repaint)
protected
void Analitza::Plotter2D::updateTickScale ( const QString &  m_tickScaleSymbol,
qreal  m_tickScaleSymbolValue,
int  m_tickScaleNumerator,
int  m_tickScaleDenominator 
)
virtual void Analitza::Plotter2D::viewportChanged ( )
pure virtual

The documentation for this class was generated from the following file:
  • plotter2d.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Analitza

Skip menu "Analitza"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal