[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [analitza] declarative: Expose resetView to the QtQuick 3DGraphItem component
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2015-10-01 1:39:52
Message-ID: E1ZhSqe-0006Xk-99 () scm ! kde ! org
[Download RAW message or body]

Git commit b6dea4b763286e930e913201a475e14512076d33 by Aleix Pol.
Committed on 01/10/2015 at 01:35.
Pushed by apol into branch 'master'.

Expose resetView to the QtQuick 3DGraphItem component

M  +5    -0    declarative/graph3ditem.cpp
M  +1    -0    declarative/graph3ditem.h

http://commits.kde.org/analitza/b6dea4b763286e930e913201a475e14512076d33

diff --git a/declarative/graph3ditem.cpp b/declarative/graph3ditem.cpp
index 7455b9a..18c627b 100644
--- a/declarative/graph3ditem.cpp
+++ b/declarative/graph3ditem.cpp
@@ -96,6 +96,11 @@ void Graph3DItem::scale(qreal s)
     m_plotter->scale(s);
 }
 
+void Graph3DItem::resetView()
+{
+    m_plotter->resetView();
+}
+
 class Plotter3DFboRenderer : public QQuickFramebufferObject::Renderer
 {
 public:
diff --git a/declarative/graph3ditem.h b/declarative/graph3ditem.h
index 2836364..736d448 100644
--- a/declarative/graph3ditem.h
+++ b/declarative/graph3ditem.h
@@ -55,6 +55,7 @@ class Graph3DItem : public QQuickFramebufferObject
         Q_SCRIPTABLE QStringList addFunction(const QString& expression, Analitza::Variables* vars=0);
         Q_SCRIPTABLE void rotate(qreal x, qreal y);
         Q_SCRIPTABLE void scale(qreal s);
+        Q_SCRIPTABLE void resetView();
 
     private:
         Plotter3DRenderer *m_plotter;

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic