• 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
functiongraph.h
Go to the documentation of this file.
1 /*************************************************************************************
2  * Copyright (C) 2007-2009 by Aleix Pol <aleixpol@kde.org> *
3  * Copyright (C) 2010-2012 by Percy Camilo T. Aucahuasi <percy.camilo.ta@gmail.com> *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License *
7  * as published by the Free Software Foundation; either version 2 *
8  * of the License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the Free Software *
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
18  *************************************************************************************/
19 
20 #ifndef FUNCTIONGRAPH2_H
21 #define FUNCTIONGRAPH2_H
22 
23 #include "plotitem.h"
24 #include <QPair>
25 
26 namespace Analitza
27 {
28 
39 class AbstractFunctionGraph;
40 
41 class ANALITZAPLOT_EXPORT FunctionGraph : public PlotItem
42 {
43 public:
44  virtual ~FunctionGraph();
45 
46  Analitza::Variables *variables() const;
47 
48  //MappingGraph
49  QString typeName() const;
50  const Analitza::Expression &expression() const;
51  QString iconName() const;
52  Dimension spaceDimension() const;
53  CoordinateSystem coordinateSystem() const;
54  QStringList errors() const;
55  bool isCorrect() const;
56 
57  //if evaluate true then result of expressiones will be strings of the value
58  //if evaluate is false then the expressions will not evaluate
59 
60  QPair<Analitza::Expression, Analitza::Expression> interval(const QString &argname, bool evaluate) const;
61  bool setInterval(const QString &argname, const Analitza::Expression &min, const Analitza::Expression &max);
62 
63  QPair<double, double> interval(const QString &argname) const;
64  bool setInterval(const QString &argname, double min, double max);
65  void clearIntervals();
66  bool hasIntervals() const;
67 
69  QStringList parameters() const;
70 
76  QString display() const;
77  void setDisplay(const QString& display);
78 
84  void setResolution(int points);
85 
86 protected:
87  FunctionGraph(AbstractFunctionGraph* g);
88  AbstractFunctionGraph *backend() const { return m_functionGraph; }
89 
90 private:
91  FunctionGraph(const FunctionGraph &other);
92 
93  AbstractFunctionGraph *m_functionGraph;
94  QStringList m_errors;
95  QString m_display;
96 };
97 
98 }
99 
100 #endif // FUNCTIONGRAPH2_H
Analitza::FunctionGraph::backend
AbstractFunctionGraph * backend() const
Definition: functiongraph.h:88
plotitem.h
Analitza::PlotItem
Represents a visual item.
Definition: plotitem.h:45
Analitza::Dimension
Dimension
Definition: plottingenums.h:27
Analitza::CoordinateSystem
CoordinateSystem
Definition: plottingenums.h:35
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