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

Analitza

  • sources
  • kde-4.12
  • kdeedu
  • analitza
  • analitzaplot
plotsfactory.h
Go to the documentation of this file.
1 /*************************************************************************************
2 * Copyright (C) 2012 by Aleix Pol <aleixpol@kde.org> *
3 * *
4 * This program is free software; you can redistribute it and/or *
5 * modify it under the terms of the GNU General Public License *
6 * as published by the Free Software Foundation; either version 2 *
7 * of the License, or (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the Free Software *
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
17 *************************************************************************************/
18 
19 #ifndef PLOTSFACTORY_H
20 #define PLOTSFACTORY_H
21 
22 #include "plottingenums.h"
23 #include "analitzaplotexport.h"
24 #include <analitza/expression.h>
25 
26 class QColor;
27 
28 namespace Analitza {
29 class Variables;
30 class FunctionGraph;
31 class PlotsModel;
32 class PlotItem;
33 
34 class ANALITZAPLOT_EXPORT PlotBuilder
35 {
36  friend class PlotsFactory;
37  public:
38  QStringList errors() const { return m_errors; }
39  bool canDraw() const;
40  FunctionGraph* create(const QColor& color, const QString& name) const;
41  Analitza::Expression expression() const;
42  QString display() const;
43  Variables* m_vars;
44 
45  protected:
46  PlotBuilder() {}
47 
48  QString m_id;
49  QStringList m_errors;
50  Analitza::Expression m_expression;
51  QString m_display;
52 };
53 
54 class ANALITZAPLOT_EXPORT PlotsFactory
55 {
56  public:
57  PlotsFactory();
58  virtual ~PlotsFactory();
59 
60  static PlotsFactory* self();
61  PlotBuilder requestPlot(const Analitza::Expression& expresssion, Dimension dim, Variables* vars = 0) const;
62  QStringList examples(Dimensions s) const;
63 
64  private:
65  Variables* m_vars;
66 };
67 
68 }
69 
70 #endif // PLOTSFACTORY_H
plottingenums.h
Analitza::PlotBuilder::m_vars
Variables * m_vars
Definition: plotsfactory.h:43
analitzaplotexport.h
Analitza::PlotBuilder::PlotBuilder
PlotBuilder()
Definition: plotsfactory.h:46
Analitza::PlotBuilder::m_id
QString m_id
Definition: plotsfactory.h:48
Analitza::PlotBuilder::m_display
QString m_display
Definition: plotsfactory.h:51
Analitza::PlotBuilder
Definition: plotsfactory.h:34
Analitza::PlotBuilder::errors
QStringList errors() const
Definition: plotsfactory.h:38
Analitza::Dimension
Dimension
Definition: plottingenums.h:27
Analitza::PlotBuilder::m_expression
Analitza::Expression m_expression
Definition: plotsfactory.h:50
Analitza::PlotBuilder::m_errors
QStringList m_errors
Definition: plotsfactory.h:49
Analitza::PlotsFactory
Definition: plotsfactory.h:54
ANALITZAPLOT_EXPORT
#define ANALITZAPLOT_EXPORT
Definition: analitzaplotexport.h:28
Analitza::FunctionGraph
Base class for any object that is a lambda expression.
Definition: functiongraph.h:41
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