RAIDA  1.9.0
IDataPointSet.h
1 // -*- C++ -*-
2 // AID-GENERATED
3 // =========================================================================
4 // This class was generated by AID - Abstract Interface Definition
5 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
6 // =========================================================================
7 #ifndef AIDA_IDATAPOINTSET_H
8 #define AIDA_IDATAPOINTSET_H 1
9 
10 // This file is part of the AIDA library
11 // Copyright (C) 2002 by the AIDA team. All rights reserved.
12 // This library is free software and under the terms of the
13 // GNU Library General Public License described in the LGPL.txt
14 
15 #include <string>
16 #include <vector>
17 
18 namespace AIDA {
19 
20 class IAnnotation;
21 class IDataPoint;
22 
32 
33 public:
35  virtual ~IDataPointSet() { /* nop */; }
36 
42  virtual IAnnotation & annotation() = 0;
43 
44  virtual const IAnnotation & annotation() const = 0;
45 
51  virtual std::string title() const = 0;
52 
59  virtual bool setTitle(const std::string & title) = 0;
60 
66  virtual int dimension() const = 0;
67 
73  virtual void clear() = 0;
74 
81  virtual int size() const = 0;
82 
89  virtual IDataPoint * point(int index) = 0;
90 
103  virtual bool setCoordinate(int coord, const std::vector<double> & val, const std::vector<double> & err) = 0;
104 
118  virtual bool setCoordinate(int coord, const std::vector<double> & val, const std::vector<double> & errp, const std::vector<double> & errm) = 0;
119 
120  virtual const IDataPoint * point(int index) const = 0;
121 
127  virtual IDataPoint * addPoint() = 0;
128 
136  virtual bool addPoint(const IDataPoint & point) = 0;
137 
144  virtual bool removePoint(int index) = 0;
145 
153  virtual double lowerExtent(int coord) const = 0;
154 
162  virtual double upperExtent(int coord) const = 0;
163 
171  virtual bool scale(double scaleFactor) = 0;
172 
180  virtual bool scaleValues(double scaleFactor) = 0;
181 
189  virtual bool scaleErrors(double scaleFactor) = 0;
190 
196  virtual void * cast(const std::string & className) const = 0;
197 }; // class
198 } // namespace AIDA
199 #endif /* ifndef AIDA_IDATAPOINTSET_H */
virtual IDataPoint * point(int index)=0
Get the IDataPoint at a give index in the set.
virtual void * cast(const std::string &className) const =0
See IManagedObject for a description.
virtual void clear()=0
Remove all the IDataPoints in the set.
virtual bool setCoordinate(int coord, const std::vector< double > &val, const std::vector< double > &err)=0
Set the values and errors of a given coordinate all at once.
virtual IAnnotation & annotation()=0
Get the IAnnotation of the IDataPointSet.
virtual bool scaleValues(double scaleFactor)=0
Scales the values of all the measurements of each point by a given factor.
Basic user-level interface class for holding and managing a single set of &quot;data points&quot;.
Definition: IDataPointSet.h:31
virtual ~IDataPointSet()
Destructor.
Definition: IDataPointSet.h:35
virtual double upperExtent(int coord) const =0
Get the upper value for a give axis.
virtual int size() const =0
Get the current size of the IDataPointSet, i.e.
virtual std::string title() const =0
Get the title of the IDataPointSet.
virtual int dimension() const =0
Get the dimension of the IDataPoints that can be stored in the set.
virtual bool removePoint(int index)=0
Remove the IDataPoint at a given index.
virtual bool setTitle(const std::string &title)=0
Set the title of the IDataPointSet.
virtual IDataPoint * addPoint()=0
Add a new empty IDataPoint at the end of the set.
Basic user-level interface class for holding and managing a single set of &quot;measurements&quot;.
Definition: IDataPoint.h:27
virtual double lowerExtent(int coord) const =0
Get the lower value for a give axis.
The annotation holds arbitrary information represented with (key,value) pairs of strings.
Definition: IAnnotation.h:28
virtual bool scaleErrors(double scaleFactor)=0
Scales the errors of all the measurements of each point by a given factor.
virtual bool scale(double scaleFactor)=0
Scales the values and the errors of all the measurements of each point by a given factor...