29 #include "WDataSetHistogram1D.h"
42 std::shared_ptr< std::vector< WColor >
const >
const& colors )
61 return "WDataSetHistogram1D";
66 return "A dataset that contains some 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.
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.
Container which associate values with (uniform width) bins (aka intervals or buckets).