This class represents the informations needed to build map charts. More...
#include <Chart.h>
Public Member Functions | |
Chart (ChartType type, const std::vector< std::string > &properties) | |
It constructs a new Chart instance. More... | |
Chart (ChartType type, const std::vector< std::string > &properties, const std::vector< te::color::RGBAColor > &colors) | |
It constructs a new Chart instance. More... | |
bool | getAvoidConflicts () const |
std::size_t | getBarWidth () const |
const te::color::RGBAColor & | getColor (std::size_t i) const |
const te::color::RGBAColor & | getContourColor () const |
std::size_t | getContourWidth () const |
std::size_t | getHeight () const |
double | getMaxValue () const |
const std::vector< std::string > & | getProperties () const |
ChartType | getType () const |
std::size_t | getWidth () const |
bool | isVisible () const |
It gets the chart visibility. More... | |
void | setAvoidConflicts (bool on) |
void | setBarWidth (std::size_t width) |
void | setColor (std::size_t i, const te::color::RGBAColor &color) |
void | setContourColor (const te::color::RGBAColor &color) |
void | setContourWidth (std::size_t width) |
void | setHeight (std::size_t height) |
void | setMaxValue (double value) |
void | setVisibility (bool visible) |
It sets the chart visibility. More... | |
~Chart () | |
Destructor. More... | |
Private Attributes | |
bool | m_avoidConflicts |
A flag that indicates if conflicts must be avoided. More... | |
std::size_t | m_barWidth |
The bar width for char Bar type (in pixels). More... | |
std::vector< te::color::RGBAColor > | m_colors |
The color used to each property. More... | |
te::color::RGBAColor | m_contourColor |
The chart contour color. More... | |
std::size_t | m_contourWidth |
The chart contour width (in pixels). More... | |
std::size_t | m_height |
The chart height (in pixels). More... | |
bool | m_isVisible |
A flag that indicates if the chart is visible. More... | |
double | m_maxValue |
The max value of the chart. More... | |
std::vector< std::string > | m_properties |
The property names that will be used to generate the chart. More... | |
ChartType | m_type |
The chart type. More... | |
This class represents the informations needed to build map charts.
Chart::Chart | ( | ChartType | type, |
const std::vector< std::string > & | properties | ||
) |
Chart::Chart | ( | ChartType | type, |
const std::vector< std::string > & | properties, | ||
const std::vector< te::color::RGBAColor > & | colors | ||
) |
bool Chart::getAvoidConflicts | ( | ) | const |
Definition at line 180 of file Chart.cpp.
Referenced by te::map::AbstractLayerRenderer::buildChart(), and te::qt::widgets::ChartLayerWidget::setChart().
std::size_t Chart::getBarWidth | ( | ) | const |
Definition at line 145 of file Chart.cpp.
Referenced by te::qt::widgets::ChartRenderer::drawBars(), and WriteLayerChart().
const te::color::RGBAColor & Chart::getColor | ( | std::size_t | i | ) | const |
Definition at line 86 of file Chart.cpp.
Referenced by te::qt::widgets::ChartRenderer::drawBars(), te::qt::widgets::ChartRenderer::drawPies(), te::qt::widgets::ChartLayerWidget::setChart(), and WriteLayerChart().
const te::color::RGBAColor & Chart::getContourColor | ( | ) | const |
Definition at line 100 of file Chart.cpp.
Referenced by te::qt::widgets::ChartRenderer::drawBars(), te::qt::widgets::ChartRenderer::drawPies(), te::qt::widgets::ChartLayerWidget::setChart(), and WriteLayerChart().
std::size_t Chart::getContourWidth | ( | ) | const |
Definition at line 110 of file Chart.cpp.
Referenced by te::qt::widgets::ChartRenderer::drawBars(), te::qt::widgets::ChartRenderer::drawPies(), te::qt::widgets::ChartLayerWidget::setChart(), and WriteLayerChart().
std::size_t Chart::getHeight | ( | ) | const |
Definition at line 120 of file Chart.cpp.
Referenced by te::map::AbstractLayerRenderer::buildChart(), te::qt::widgets::ChartRenderer::drawBars(), te::map::AbstractLayerRenderer::drawDatSetGeometries(), te::map::AbstractLayerRenderer::drawLayerGroupingMem(), te::qt::widgets::ChartRenderer::drawPies(), te::qt::widgets::ChartLayerWidget::setChart(), and WriteLayerChart().
double Chart::getMaxValue | ( | ) | const |
Definition at line 160 of file Chart.cpp.
Referenced by te::qt::widgets::ChartRenderer::drawBars(), and WriteLayerChart().
const std::vector< std::string > & Chart::getProperties | ( | ) | const |
Definition at line 81 of file Chart.cpp.
Referenced by te::qt::widgets::ChartLayerWidget::buildChart(), te::qt::widgets::ChartRenderer::getValues(), te::qt::widgets::ChartLayerWidget::setChart(), and WriteLayerChart().
te::map::ChartType Chart::getType | ( | ) | const |
Definition at line 76 of file Chart.cpp.
Referenced by te::qt::widgets::ChartLayerWidget::buildChart(), te::qt::widgets::ChartRenderer::render(), te::qt::widgets::ChartLayerWidget::setChart(), and WriteLayerChart().
std::size_t Chart::getWidth | ( | ) | const |
Definition at line 130 of file Chart.cpp.
References te::map::Bar, and te::map::Pie.
Referenced by te::map::AbstractLayerRenderer::buildChart(), te::qt::widgets::ChartRenderer::drawBars(), te::map::AbstractLayerRenderer::drawDatSetGeometries(), te::map::AbstractLayerRenderer::drawLayerGroupingMem(), and te::qt::widgets::ChartRenderer::drawPies().
bool Chart::isVisible | ( | ) | const |
It gets the chart visibility.
Definition at line 165 of file Chart.cpp.
Referenced by te::map::AbstractLayerRenderer::buildChart(), and WriteLayerChart().
void Chart::setAvoidConflicts | ( | bool | on | ) |
Definition at line 175 of file Chart.cpp.
Referenced by te::qt::widgets::ChartLayerWidget::buildChart().
void Chart::setColor | ( | std::size_t | i, |
const te::color::RGBAColor & | color | ||
) |
void Chart::setContourColor | ( | const te::color::RGBAColor & | color | ) |
Definition at line 105 of file Chart.cpp.
Referenced by te::qt::widgets::ChartLayerWidget::buildChart().
void Chart::setContourWidth | ( | std::size_t | width | ) |
Definition at line 115 of file Chart.cpp.
Referenced by te::qt::widgets::ChartLayerWidget::buildChart().
void Chart::setHeight | ( | std::size_t | height | ) |
Definition at line 125 of file Chart.cpp.
Referenced by te::qt::widgets::ChartLayerWidget::buildChart().
void Chart::setMaxValue | ( | double | value | ) |
Definition at line 155 of file Chart.cpp.
Referenced by te::qt::widgets::ChartLayerWidget::buildChart().
void Chart::setVisibility | ( | bool | visible | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |