• 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
plotitem.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_PLOTITEM_H
21 #define ANALITZAPLOT_PLOTITEM_H
22 
23 #include <QStringList>
24 #include <QSet>
25 #include <QColor>
26 
27 #include "analitzaplotexport.h"
28 #include "plottingenums.h"
29 
30 namespace Analitza {
31 class Variables;
32 class Expression;
33 class PlotsModel;
34 
45 class ANALITZAPLOT_EXPORT PlotItem
46 {
47 friend class PlotsModel;
48 public:
49  PlotItem(const QString &name, const QColor& col);
50  virtual ~PlotItem();
51 
52  virtual const Analitza::Expression & expression() const = 0;
53  virtual QString display() const = 0;
54  virtual Analitza::Variables * variables() const = 0;
55  virtual QString typeName() const = 0;
56  virtual QString iconName() const = 0;
57  virtual Dimension spaceDimension() const = 0; // dim of the space where the item can be drawn ... IS NOT the variety dimension
58  virtual CoordinateSystem coordinateSystem() const = 0;
59 
60  QString name() const { return m_name; }
61  void setName(const QString &newName);
62  QColor color() const { return m_color; }
63  void setColor(const QColor& newColor);
64 
65  bool isVisible() const { return m_graphVisible; }
66  void setVisible(bool v);
67 
68  void clearTags();
69  void addTags(const QSet<QString>& tag);
70  QSet<QString> tags() const;
71 
72 protected:
73  void setModel(PlotsModel *m);
74  void emitDataChanged();
75 
76 private:
77  QString m_name;
78  QColor m_color;
79  bool m_graphVisible;
80  QSet<QString> m_tags;
81 
82  PlotsModel *m_model;
83 };
84 
85 }
86 
87 #endif // ANALITZAPLOT_PLOTITEM_H
plottingenums.h
analitzaplotexport.h
Analitza::PlotItem
Represents a visual item.
Definition: plotitem.h:45
Analitza::PlotsModel
Collection of many instances of PlotItem.
Definition: plotsmodel.h:42
Analitza::PlotItem::color
QColor color() const
Definition: plotitem.h:62
Analitza::PlotItem::name
QString name() const
Definition: plotitem.h:60
Analitza::PlotItem::isVisible
bool isVisible() const
Definition: plotitem.h:65
Analitza::Dimension
Dimension
Definition: plottingenums.h:27
Analitza::CoordinateSystem
CoordinateSystem
Definition: plottingenums.h:35
ANALITZAPLOT_EXPORT
#define ANALITZAPLOT_EXPORT
Definition: analitzaplotexport.h:28
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