16 #ifndef _SLICE_LAYER_H_ 17 #define _SLICE_LAYER_H_ 21 #include "base/Window.h" 23 #include "data/model/DenseThreeDimensionalModel.h" 37 virtual const Model *
getModel()
const {
return 0; }
58 int *min,
int *max,
int *deflt)
const;
62 virtual void setProperty(
const PropertyName &,
int value);
66 bool &logarithmic, QString &unit)
const;
104 virtual void toXml(QTextStream &stream, QString indent =
"",
105 QString extraAttributes =
"")
const;
112 virtual float getXForBin(
int bin,
int totalBins,
float w)
const;
113 virtual int getBinForX(
float x,
int totalBins,
float w)
const;
119 bool includeBinDescription,
120 int &minbin,
int &maxbin,
EnergyScale m_energyScale
BinScale getBinScale() const
virtual QString getPropertyLabel(const PropertyName &) const
virtual QString getPropertyIconName(const PropertyName &) const
virtual QString getFeatureDescriptionAux(View *v, QPoint &, bool includeBinDescription, int &minbin, int &maxbin, int &range) const
EnergyScale getEnergyScale() const
virtual float getXForBin(int bin, int totalBins, float w) const
void setFillColourMap(int)
virtual QString getPropertyValueLabel(const PropertyName &, int value) const
virtual PropertyType getPropertyType(const PropertyName &) const
virtual float getYForValue(float value, const View *v, float &norm) const
std::map< const View *, int > m_heights
virtual void paintVerticalScale(View *v, bool, QPainter &paint, QRect rect) const
virtual bool isLayerScrollable(const View *) const
This should return true if the layer can safely be scrolled automatically by a given view (simply cop...
void setSamplingMode(SamplingMode)
std::map< const View *, int > m_xorigins
const DenseThreeDimensionalModel * m_sliceableModel
virtual bool hasTimeXAxis() const
virtual QString getPropertyGroupName(const PropertyName &) const
virtual void setProperties(const QXmlAttributes &)
Set the particular properties of a layer (those specific to the subclass) from a set of XML attribute...
void sliceableModelReplaced(const Model *, const Model *)
virtual void setProperty(const PropertyName &, int value)
std::vector< int > m_scalePoints
virtual int getPropertyRangeAndValue(const PropertyName &, int *min, int *max, int *deflt) const
virtual int getDefaultColourHint(bool dark, bool &impose)
virtual QString getFeatureDescription(View *v, QPoint &) const
void setNormalize(bool n)
virtual int getBinForX(float x, int totalBins, float w) const
virtual PropertyList getProperties() const
void setSliceableModel(const Model *model)
virtual ColourSignificance getLayerColourSignificance() const
Implements Layer::getLayerColourSignificance()
virtual const Model * getModel() const
virtual float getValueForY(float y, const View *v) const
std::vector< float > m_values
virtual float getThresholdDb() const
virtual void getBiasCurve(BiasCurve &) const
void setPlotStyle(PlotStyle style)
virtual RangeMapper * getNewPropertyRangeMapper(const PropertyName &) const
void setBinScale(BinScale scale)
PlotStyle getPlotStyle() const
int getFillColourMap() const
std::vector< float > BiasCurve
View is the base class of widgets that display one or more overlaid views of data against a horizonta...
void setEnergyScale(EnergyScale)
std::map< const View *, int > m_yorigins
SamplingMode m_samplingMode
SamplingMode getSamplingMode() 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 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 int getVerticalScaleWidth(View *v, bool, QPainter &) const
void modelAboutToBeDeleted(Model *)
bool getNormalize() 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.