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

Analitza

  • Analitza
  • PlotsView2D
Public Types | Public Slots | Signals | Public Member Functions | Properties | List of all members
Analitza::PlotsView2D Class Reference
AnalitzaGUI

#include <plotsview2d.h>

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

Public Types

enum  Format { PNG, SVG }
 
enum  GraphMode { None =0, Pan, Selection }
 

Public Slots

void forceRepaint ()
 
bool isFramed () const
 
bool isReadOnly () const
 
void resetViewport ()
 
void setAxesShown (QFlags< Qt::Orientation > o)
 
void setFramed (bool fr)
 
void setReadOnly (bool ro)
 
void setTicksShown (QFlags< Qt::Orientation > o)
 
void setXAxisLabel (const QString &label)
 
void setYAxisLabel (const QString &label)
 
void snapshotToClipboard ()
 
void updateGridColor (const QColor &color)
 
void updateTickScale (QString s, qreal v, int n, int d)
 
void zoomIn ()
 
void zoomOut ()
 

Signals

void status (const QString &msg)
 
void viewportChanged (const QRectF &)
 

Public Member Functions

 PlotsView2D (QWidget *parent=0)
 
 ~PlotsView2D ()
 
QRectF definedViewport () const
 
void setSelectionModel (QItemSelectionModel *selection)
 
virtual void showEvent (QShowEvent *ev)
 
QSize sizeHint () const
 
bool toImage (const QString &path, Format f)
 
- Public Member Functions inherited from Analitza::Plotter2D
 Plotter2D (const QSizeF &size)
 
virtual ~Plotter2D ()
 
virtual void forceRepaint ()=0
 
bool keepAspectRatio () const
 
QAbstractItemModel * model () const
 
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)
 

Properties

bool squares
 

Additional Inherited Members

- Protected Member Functions inherited from Analitza::Plotter2D
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

Widget that allows visualization of 2D plots.

This class lets you create a widget that can draw multiple 2D graphs. This widget use Plotter2D as a backend.

Definition at line 55 of file plotsview2d.h.

Member Enumeration Documentation

enum Analitza::PlotsView2D::Format
Enumerator
PNG 
SVG 

Definition at line 67 of file plotsview2d.h.

enum Analitza::PlotsView2D::GraphMode

The graph mode will especify the selection mode we are using at the moment.

Enumerator
None 

Normal behaviour.

Pan 

Panning, translates the viewport.

Selection 

There is a rectangle delimiting a region, for zooming.

Definition at line 61 of file plotsview2d.h.

Constructor & Destructor Documentation

Analitza::PlotsView2D::PlotsView2D ( QWidget *  parent = 0)

Constructor.

Constructs a new Graph2D.

Analitza::PlotsView2D::~PlotsView2D ( )

Member Function Documentation

QRectF Analitza::PlotsView2D::definedViewport ( ) const

Returns the viewing port.

void Analitza::PlotsView2D::forceRepaint ( )
inlineslot

Marks the image as dirty and repaints everything.

Definition at line 88 of file plotsview2d.h.

bool Analitza::PlotsView2D::isFramed ( ) const
inlineslot

Returns whether it has a little border frame.

Definition at line 100 of file plotsview2d.h.

bool Analitza::PlotsView2D::isReadOnly ( ) const
inlineslot

Returns whether it is a read-only widget.

Definition at line 106 of file plotsview2d.h.

void Analitza::PlotsView2D::resetViewport ( )
inlineslot

Sets the viewport to a default viewport.

Definition at line 91 of file plotsview2d.h.

void Analitza::PlotsView2D::setAxesShown ( QFlags< Qt::Orientation >  o)
inlineslot

Definition at line 119 of file plotsview2d.h.

void Analitza::PlotsView2D::setFramed ( bool  fr)
inlineslot

Sets whether it has a little border frame.

Definition at line 103 of file plotsview2d.h.

void Analitza::PlotsView2D::setReadOnly ( bool  ro)
slot

Sets whether it is a read-only widget.

void Analitza::PlotsView2D::setSelectionModel ( QItemSelectionModel *  selection)
void Analitza::PlotsView2D::setTicksShown ( QFlags< Qt::Orientation >  o)
inlineslot

Definition at line 118 of file plotsview2d.h.

void Analitza::PlotsView2D::setXAxisLabel ( const QString &  label)
inlineslot

Definition at line 114 of file plotsview2d.h.

void Analitza::PlotsView2D::setYAxisLabel ( const QString &  label)
inlineslot

Definition at line 115 of file plotsview2d.h.

virtual void Analitza::PlotsView2D::showEvent ( QShowEvent *  ev)
virtual
QSize Analitza::PlotsView2D::sizeHint ( ) const
inline

Definition at line 74 of file plotsview2d.h.

void Analitza::PlotsView2D::snapshotToClipboard ( )
slot
void Analitza::PlotsView2D::status ( const QString &  msg)
signal

Emits a status when it changes.

bool Analitza::PlotsView2D::toImage ( const QString &  path,
Format  f 
)

Saves the graphs to a file located at path.

void Analitza::PlotsView2D::updateGridColor ( const QColor &  color)
inlineslot

Definition at line 116 of file plotsview2d.h.

void Analitza::PlotsView2D::updateTickScale ( QString  s,
qreal  v,
int  n,
int  d 
)
inlineslot

Definition at line 117 of file plotsview2d.h.

void Analitza::PlotsView2D::viewportChanged ( const QRectF &  )
signal
void Analitza::PlotsView2D::zoomIn ( )
slot

Zooms in to the Viewport center.

void Analitza::PlotsView2D::zoomOut ( )
slot

Zooms out.

Property Documentation

bool Analitza::PlotsView2D::squares
readwrite

Definition at line 58 of file plotsview2d.h.


The documentation for this class was generated from the following file:
  • plotsview2d.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