File indexing completed on 2024-04-21 14:42:55

0001 /*************************************************************************************
0002  *  Copyright (C) 2007-2009 by Aleix Pol <aleixpol@kde.org>                          *
0003  *  Copyright (C) 2010-2012 by Percy Camilo T. Aucahuasi <percy.camilo.ta@gmail.com> *
0004  *                                                                                   *
0005  *  This program is free software; you can redistribute it and/or                    *
0006  *  modify it under the terms of the GNU General Public License                      *
0007  *  as published by the Free Software Foundation; either version 2                   *
0008  *  of the License, or (at your option) any later version.                           *
0009  *                                                                                   *
0010  *  This program is distributed in the hope that it will be useful,                  *
0011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of                   *
0012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                    *
0013  *  GNU General Public License for more details.                                     *
0014  *                                                                                   *
0015  *  You should have received a copy of the GNU General Public License                *
0016  *  along with this program; if not, write to the Free Software                      *
0017  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA   *
0018  *************************************************************************************/
0019 
0020 #ifndef SPACECURVE_H
0021 #define SPACECURVE_H
0022 
0023 #include "functiongraph.h"
0024 #include <QVector3D>
0025 
0026 namespace Analitza {
0027 
0028 /**
0029  * \class SpaceCurve
0030  * 
0031  * \ingroup AnalitzaPlotModule
0032  *
0033  * \brief Represents a curve in 3D space.
0034  *
0035  * This class contains all necessary data that Plotter3D will use to draw the curve.
0036  */
0037 
0038 class ANALITZAPLOT_EXPORT SpaceCurve : public FunctionGraph
0039 {
0040 public:
0041     explicit SpaceCurve(AbstractFunctionGraph* g);
0042     ~SpaceCurve() override;
0043 
0044     QVector<int> jumps() const;
0045     const QVector<QVector3D> & points() const;
0046     void update(const QVector3D & oppositecorner1, const QVector3D & oppositecorner2);
0047 
0048 protected:
0049     SpaceCurve();
0050 };
0051 
0052 }
0053 
0054 #endif // SPACECURVE_H