17 #ifndef _SPECTRUM_LAYER_H_ 18 #define _SPECTRUM_LAYER_H_ 22 #include "base/Window.h" 24 #include "data/model/DenseTimeValueModel.h" 39 void setModel(DenseTimeValueModel *model);
43 std::vector<QRect> &extents)
const;
60 int *min,
int *max,
int *deflt)
const;
64 virtual void setProperty(
const PropertyName &,
int value);
68 bool &logarithmic, QString &unit)
const;
71 float &value, QString &unit)
const;
74 float &value, QString &unit)
const;
77 float &diff, QString &unit)
const;
98 virtual void toXml(QTextStream &stream, QString indent =
"",
99 QString extraAttributes =
"")
const;
126 virtual float getXForBin(
int bin,
int totalBins,
float w)
const;
127 virtual int getBinForX(
float x,
int totalBins,
float w)
const;
virtual float getXForBin(int bin, int totalBins, float w) const
virtual const Model * getModel() const
int getWindowSize() const
virtual PropertyList getProperties() const
float getXForFrequency(float freq, float w) const
virtual bool getValueExtents(float &min, float &max, bool &logarithmic, QString &unit) const
Return the minimum and maximum values for the y axis of the model in this layer, as well as whether t...
virtual QString getFeatureDescription(View *v, QPoint &) const
virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos, std::vector< QRect > &extents) const
virtual QString getPropertyGroupName(const PropertyName &) const
float getFrequencyForX(float x, float w) const
virtual VerticalPosition getPreferredFrameCountPosition() const
virtual void toXml(QTextStream &stream, QString indent="", QString extraAttributes="") const
Convert the layer's data (though not those of the model it refers to) into XML for file output.
virtual bool getXScaleValue(const View *v, int x, float &value, QString &unit) const
Return the value and unit at the given x coordinate in the given view.
virtual bool isLayerScrollable(const View *) const
This should return true if the layer can safely be scrolled automatically by a given view (simply cop...
virtual int getVerticalScaleWidth(View *, bool, QPainter &) const
WindowType getWindowType() const
virtual void paintCrosshairs(View *, QPainter &, QPoint) const
virtual void getBiasCurve(BiasCurve &) const
int getWindowIncrement() const
void preferenceChanged(PropertyContainer::PropertyName name)
virtual int getPropertyRangeAndValue(const PropertyName &, int *min, int *max, int *deflt) const
virtual void setProperties(const QXmlAttributes &)
Set the particular properties of a layer (those specific to the subclass) from a set of XML attribute...
virtual QString getPropertyIconName(const PropertyName &) const
virtual QString getPropertyValueLabel(const PropertyName &, int value) const
virtual void setProperty(const PropertyName &, int value)
virtual bool getYScaleValue(const View *, int y, float &value, QString &unit) const
Return the value and unit at the given y coordinate in the given view.
virtual bool getYScaleDifference(const View *, int y0, int y1, float &diff, QString &unit) const
Return the difference between the values at the given y coordinates in the given view,...
virtual int getBinForX(float x, int totalBins, float w) const
virtual RangeMapper * getNewPropertyRangeMapper(const PropertyName &) const
virtual QString getPropertyLabel(const PropertyName &) const
DenseTimeValueModel * m_originModel
std::vector< float > BiasCurve
View is the base class of widgets that display one or more overlaid views of data against a horizonta...
bool getShowPeaks() const
int getWindowHopLevel() const
void setWindowType(WindowType type)
void setWindowHopLevel(int level)
virtual void paint(View *v, QPainter &paint, QRect rect) const
Paint the given rectangle of this layer onto the given view using the given painter,...
virtual PropertyType getPropertyType(const PropertyName &) const
void setModel(DenseTimeValueModel *model)