25 #ifndef WDATASETHISTOGRAM1D_H
26 #define WDATASETHISTOGRAM1D_H
32 #include "../common/WColor.h"
33 #include "../common/WHistogramBasic.h"
46 typedef std::shared_ptr< WDataSetHistogram1D >
SPtr;
51 typedef std::shared_ptr< const WDataSetHistogram1D >
ConstSPtr;
67 WDataSetHistogram1D( std::shared_ptr< WHistogramBasic const >
const& histo, std::shared_ptr< std::vector< WColor >
const >
const& colors );
84 virtual const std::string
getName()
const;
98 std::shared_ptr< WHistogramBasic const >
const&
getHistogram()
const;
121 WColor
getColor( std::size_t bin )
const;
134 std::shared_ptr< std::vector< WColor >
const >
const m_colors;
This data set type contains a 1D histogram.
virtual const std::string getDescription() const
Gets the description for this prototype.
static std::shared_ptr< WPrototyped > getPrototype()
Returns a prototype instantiated with the true type of the deriving class.
bool hasColors() const
Whether this dataset has colors associated with the bins.
std::shared_ptr< std::vector< WColor > const > const m_colors
The colors for the bins.
WColor getColor(std::size_t bin) const
Get the color of a bin.
virtual const std::string getName() const
Gets the name of this prototype.
virtual ~WDataSetHistogram1D()
Destroys this DataSet instance.
static std::shared_ptr< WPrototyped > m_prototype
The prototype as singleton.
std::shared_ptr< const WDataSetHistogram1D > ConstSPtr
const shared_ptr abbreviation
std::shared_ptr< WDataSetHistogram1D > SPtr
shared_ptr abbreviation
WDataSetHistogram1D()
Construct an empty and unusable instance.
std::shared_ptr< WHistogramBasic const > const & getHistogram() const
Returns the histogram.
std::shared_ptr< WHistogramBasic const > const m_histogram
The histogram.
Base class for all data set types.