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

0001 /***************************************************************************
0002  *                                                                         *
0003  *   copyright : (C) 2004 The University of Toronto                        *
0004  *                   netterfield@astro.utoronto.ca                         *
0005 *                                                                         *
0006  *   This program is free software; you can redistribute it and/or modify  *
0007  *   it under the terms of the GNU General Public License as published by  *
0008  *   the Free Software Foundation; either version 2 of the License, or     *
0009  *   (at your option) any later version.                                   *
0010  *                                                                         *
0011  ***************************************************************************/
0012 
0013 #ifndef CURVEHINT_H
0014 #define CURVEHINT_H
0015 
0016 #include <qstring.h>
0017 #include <qcolor.h>
0018 
0019 #include "vector.h"
0020 
0021 namespace Kst {
0022 
0023 class Relation;
0024 
0025 class CurveHint : public Shared {
0026   friend class DataObject;
0027   public:
0028     explicit CurveHint(const QString& name = QString(), const QString& x = QString(), const QString& y = QString());
0029 
0030     virtual ~CurveHint();
0031 
0032     virtual const QString& curveName() const { return _curveName; }
0033     virtual const QString& xVectorName() const;
0034     virtual const QString& yVectorName() const;
0035 
0036 #if 0
0037     virtual VectorPtr xVector() const;
0038     virtual VectorPtr yVector() const;
0039 
0040     virtual SharedPtr<Relation> makeCurve(const QString& tag, const QColor& color) const;
0041 #endif
0042 
0043   protected:
0044     QString _curveName, _xVectorName, _yVectorName;
0045 };
0046 
0047 typedef SharedPtr<CurveHint> CurveHintPtr;
0048 typedef QList<CurveHintPtr> CurveHintList;
0049 
0050 }
0051 
0052 #endif
0053 
0054 // vim: ts=2 sw=2 et