comparison layer/SliceLayer.h @ 946:36cddc3de023 alignment_view

Merge from default branch
author Chris Cannam
date Mon, 20 Apr 2015 09:19:52 +0100
parents 12ab113ca2b1
children 94e4952a6774
comparison
equal deleted inserted replaced
897:499b637f2a26 946:36cddc3de023
60 int value) const; 60 int value) const;
61 virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const; 61 virtual RangeMapper *getNewPropertyRangeMapper(const PropertyName &) const;
62 virtual void setProperty(const PropertyName &, int value); 62 virtual void setProperty(const PropertyName &, int value);
63 virtual void setProperties(const QXmlAttributes &); 63 virtual void setProperties(const QXmlAttributes &);
64 64
65 virtual bool getValueExtents(float &min, float &max, 65 virtual bool getValueExtents(double &min, double &max,
66 bool &logarithmic, QString &unit) const; 66 bool &logarithmic, QString &unit) const;
67 67
68 virtual bool hasTimeXAxis() const { return false; } 68 virtual bool hasTimeXAxis() const { return false; }
69 69
70 virtual bool isLayerScrollable(const View *) const { return false; } 70 virtual bool isLayerScrollable(const View *) const { return false; }
91 91
92 void setBinScale(BinScale scale); 92 void setBinScale(BinScale scale);
93 BinScale getBinScale() const { return m_binScale; } 93 BinScale getBinScale() const { return m_binScale; }
94 94
95 void setThreshold(float); 95 void setThreshold(float);
96 int getThreshold() const { return m_threshold; } 96 float getThreshold() const { return m_threshold; }
97 97
98 void setGain(float gain); 98 void setGain(float gain);
99 float getGain() const; 99 float getGain() const;
100 100
101 void setNormalize(bool n); 101 void setNormalize(bool n);
107 public slots: 107 public slots:
108 void sliceableModelReplaced(const Model *, const Model *); 108 void sliceableModelReplaced(const Model *, const Model *);
109 void modelAboutToBeDeleted(Model *); 109 void modelAboutToBeDeleted(Model *);
110 110
111 protected: 111 protected:
112 virtual float getXForBin(int bin, int totalBins, float w) const; 112 virtual double getXForBin(int bin, int totalBins, double w) const;
113 virtual int getBinForX(float x, int totalBins, float w) const; 113 virtual int getBinForX(double x, int totalBins, double w) const;
114 114
115 virtual float getYForValue(float value, const View *v, float &norm) const; 115 virtual double getYForValue(double value, const View *v, double &norm) const;
116 virtual float getValueForY(float y, const View *v) const; 116 virtual double getValueForY(double y, const View *v) const;
117 117
118 virtual QString getFeatureDescriptionAux(View *v, QPoint &, 118 virtual QString getFeatureDescriptionAux(View *v, QPoint &,
119 bool includeBinDescription, 119 bool includeBinDescription,
120 int &minbin, int &maxbin, 120 int &minbin, int &maxbin,
121 int &range) const; 121 int &range) const;
142 float m_gain; 142 float m_gain;
143 mutable std::vector<int> m_scalePoints; 143 mutable std::vector<int> m_scalePoints;
144 mutable std::map<const View *, int> m_xorigins; 144 mutable std::map<const View *, int> m_xorigins;
145 mutable std::map<const View *, int> m_yorigins; 145 mutable std::map<const View *, int> m_yorigins;
146 mutable std::map<const View *, int> m_heights; 146 mutable std::map<const View *, int> m_heights;
147 mutable int m_currentf0; 147 mutable sv_frame_t m_currentf0;
148 mutable int m_currentf1; 148 mutable sv_frame_t m_currentf1;
149 mutable std::vector<float> m_values; 149 mutable std::vector<float> m_values;
150 }; 150 };
151 151
152 #endif 152 #endif