File indexing completed on 2024-12-22 04:17:20

0001 /***************************************************************************
0002                           generatedvector.h  - a vector from x0 to x1 with n pts
0003                              -------------------
0004     begin                : March, 2005
0005     copyright            : (C) 2005 by cbn
0006     email                : netterfield@astro.utoronto.ca
0007  ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *                                                                         *
0011  *   This program is free software; you can redistribute it and/or modify  *
0012  *   it under the terms of the GNU General Public License as published by  *
0013  *   the Free Software Foundation; either version 2 of the License, or     *
0014  *   (at your option) any later version.                                   *
0015  *                                                                         *
0016  ***************************************************************************/
0017 #ifndef GENERATEDVECTOR_H
0018 #define GENERATEDVECTOR_H
0019 
0020 #include "vector.h"
0021 //
0022 #include "kst_export.h"
0023 
0024 namespace Kst {
0025 
0026 /**A vector from x0 to x1 with n pts
0027  *@author cbn
0028  */
0029 class KSTCORE_EXPORT GeneratedVector : public Vector {
0030   Q_OBJECT
0031 
0032   public:
0033     virtual const QString& typeString() const;
0034     static const QString staticTypeString;
0035     static const QString staticTypeTag;
0036 
0037     void save(QXmlStreamWriter &s);
0038 
0039     void changeRange(double x0, double x1, int n);
0040     void setSaveData(bool save);
0041 
0042     virtual QString descriptionTip() const;
0043     virtual QString propertyString() const;
0044 
0045     virtual ScriptInterface* createScriptInterface();
0046 
0047   protected:
0048     GeneratedVector(ObjectStore *store);
0049 
0050     friend class ObjectStore;
0051     virtual QString _automaticDescriptiveName() const;
0052 };
0053 
0054 typedef SharedPtr<GeneratedVector> GeneratedVectorPtr;
0055 typedef ObjectList<GeneratedVector> GeneratedVectorList;
0056 
0057 }
0058 
0059 #endif
0060 // vim: ts=2 sw=2 et