• 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
planecurve.h
Go to the documentation of this file.
1 /*************************************************************************************
2  * Copyright (C) 2007-2011 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 ANALITZAPLOT_FUNCTION_H
21 #define ANALITZAPLOT_FUNCTION_H
22 
23 #include "functiongraph.h"
24 
25 #include <QMap>
26 #include <QPoint>
27 #include <QRectF>
28 #include <QLineF>
29 #include <QColor>
30 
31 namespace Analitza
32 {
33 class Variables;
34 class Expression;
35 class AbstractPlaneCurve;
36 class AbstractSurface;
37 
48 class ANALITZAPLOT_EXPORT PlaneCurve : public FunctionGraph
49 {
50 public:
51  PlaneCurve(AbstractFunctionGraph* g);
52  virtual ~PlaneCurve();
53 
54  QVector<int> jumps() const;
55  const QVector<QPointF> & points() const;
56  void update(const QRectF& viewport);
57  QPair<QPointF, QString> image(const QPointF &mousepos); // calculate the image of the curve based on the mouse postion
58  QLineF tangent(const QPointF &mousepos);// calculate the tangent to the curve based on the mouse
59 };
60 
61 }
62 
63 #endif // ANALITZAPLOT_FUNCTION_H
Analitza::PlaneCurve
Represents a curve in 2D space.
Definition: planecurve.h:48
functiongraph.h
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