1 #include "../../../../color/RGBAColor.h" 2 #include "../../../../maptools/AbstractLayer.h" 3 #include "../../../../maptools/Chart.h" 25 for(std::size_t i = 0; i < properties.size(); ++i)
40 m_label = QObject::tr(
"Pie Chart").toUtf8().data();
44 m_label = QObject::tr(
"Bar Chart").toUtf8().data();
48 m_label = QObject::tr(
"Chart").toUtf8().data();
64 layer->setChart(
nullptr);
ChartType getType() const
const std::vector< std::string > & getProperties() const
int getRed() const
It returns the red component color value (a value from 0 to 255).
int getBlue() const
It returns the blue component color value (a value from 0 to 255).
int getGreen() const
It returns the green component color value (a value from 0 to 255).
const te::color::RGBAColor & getColor(std::size_t i) const
This class represents the informations needed to build map charts.
bool isVisible() const
It gets the chart visibility.
void setVisibility(bool visible)
It sets the chart visibility.
std::size_t getContourWidth() const
const te::color::RGBAColor & getContourColor() const
A class that represents a chart of a layer in a LayerTreeModel.
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
A class that represents a chart slice in a LayerItemModel.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
void AddSliceItems(te::qt::widgets::ChartItem *item, const te::map::Chart *chart)