1 /***************************************************************************
2                           generatedvector.h  - a vector from x0 to x1 with n pts
3                              -------------------
4     begin                : March, 2005
5     copyright            : (C) 2005 by cbn
6     email                : netterfield@astro.utoronto.ca
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 #ifndef GENERATEDVECTOR_H
18 #define GENERATEDVECTOR_H
19 
20 #include "vector.h"
21 //
22 #include "kst_export.h"
23 
24 namespace Kst {
25 
26 /**A vector from x0 to x1 with n pts
27  *@author cbn
28  */
29 class KSTCORE_EXPORT GeneratedVector : public Vector {
30   Q_OBJECT
31 
32   public:
33     virtual const QString& typeString() const;
34     static const QString staticTypeString;
35     static const QString staticTypeTag;
36 
37     void save(QXmlStreamWriter &s);
38 
39     void changeRange(double x0, double x1, int n);
40     void setSaveData(bool save);
41 
42     virtual QString descriptionTip() const;
43     virtual QString propertyString() const;
44 
45     virtual ScriptInterface* createScriptInterface();
46 
47   protected:
48     GeneratedVector(ObjectStore *store);
49 
50     friend class ObjectStore;
51     virtual QString _automaticDescriptiveName() const;
52 };
53 
54 typedef SharedPtr<GeneratedVector> GeneratedVectorPtr;
55 typedef ObjectList<GeneratedVector> GeneratedVectorList;
56 
57 }
58 
59 #endif
60 // vim: ts=2 sw=2 et
61