#include "../../../color/RGBAColor.h"#include "../../../common/progress/TaskProgress.h"#include "../../../dataaccess/dataset/DataSet.h"#include "../../../dataaccess/dataset/DataSetType.h"#include "../../../dataaccess/dataset/ObjectIdSet.h"#include "../../../dataaccess/utils/Utils.h"#include "../../../dataaccess/datasource/DataSourceFactory.h"#include "../../../datatype.h"#include "../../../raster.h"#include "../../../maptools/ExternalGraphicRendererManager.h"#include "../../../maptools/MarkRendererManager.h"#include "../../../maptools/Utils.h"#include "../../../memory/DataSet.h"#include "../../../memory/DataSetItem.h"#include "../../../qt/widgets/Utils.h"#include "../../../se/Utils.h"#include "../../../se.h"#include "../../../statistics/core/Enums.h"#include "../../../statistics/core/NumericStatisticalSummary.h"#include "../../../statistics/core/StringStatisticalSummary.h"#include "../../../statistics/core/SummaryFunctions.h"#include "../../../statistics/core/Utils.h"#include "ChartDisplay.h"#include "ChartDisplayWidget.h"#include "ChartStyle.h"#include "Histogram.h"#include "HistogramChart.h"#include "Scatter.h"#include "ScatterChart.h"#include "Utils.h"#include <boost/lexical_cast.hpp>#include <boost/ptr_container/ptr_vector.hpp>#include <QPen>#include <memory>Go to the source code of this file.
Functions | |
| void | buildNumericFrequencies (int slices, int stat, std::map< std::string, std::vector< std::pair< double, te::da::ObjectId * > > > valuestoSummarize, std::vector< double > &intervals, std::map< double, std::vector< te::da::ObjectId * > > &intervalToOIds, std::vector< unsigned int > &frequencies, double &minValue, double &interval) |
| void | buildStringFrequencies (int stat, std::map< std::string, std::vector< std::pair< std::string, te::da::ObjectId * > > > valuestoSummarize, std::map< std::string, std::vector< te::da::ObjectId * > > &intervalToOIds, std::vector< unsigned int > &frequencies) |
| void | buildSummarizedScatter (int stat, std::map< std::string, std::vector< te::da::ObjectId * > > oidsToSummarize, std::map< std::string, std::vector< std::pair< double, double > > > valuesToSummarize, te::qt::widgets::Scatter *scatter) |
| float | errFunction (float x) |
| float | gammln (float xx) |
| float | gammp (float a, float x) |
| void | gcf (float *gammcf, float a, float x, float *gln) |
| double | getDouble (const std::string &value, std::vector< std::string > &sVector) |
| double | getDouble (te::dt::DateTime *dateTime) |
| double | getDouble (te::da::DataSet *dataset, int propId) |
| te::da::ObjectId * | getObjectId (te::da::DataSet *dataset, std::vector< std::size_t > pkeys) |
| void | getObjectIds (te::da::DataSet *dataset, std::vector< std::size_t > pkeys, std::vector< te::da::ObjectId * > &valuesOIDs) |
| std::string | getStatisticalValue (int stat, te::stat::StringStatisticalSummary &sss) |
| double | getStatisticalValue (int stat, te::stat::NumericStatisticalSummary &nss) |
| void | gser (float *gamser, float a, float x, float *gln) |
| void buildNumericFrequencies | ( | int | slices, |
| int | stat, | ||
| std::map< std::string, std::vector< std::pair< double, te::da::ObjectId * > > > | valuestoSummarize, | ||
| std::vector< double > & | intervals, | ||
| std::map< double, std::vector< te::da::ObjectId * > > & | intervalToOIds, | ||
| std::vector< unsigned int > & | frequencies, | ||
| double & | minValue, | ||
| double & | interval | ||
| ) |
Definition at line 429 of file src/terralib/qt/widgets/charts/Utils.cpp.
References te::stat::GetNumericStatisticalSummary(), and getStatisticalValue().
Referenced by te::qt::widgets::createHistogram().
| void buildStringFrequencies | ( | int | stat, |
| std::map< std::string, std::vector< std::pair< std::string, te::da::ObjectId * > > > | valuestoSummarize, | ||
| std::map< std::string, std::vector< te::da::ObjectId * > > & | intervalToOIds, | ||
| std::vector< unsigned int > & | frequencies | ||
| ) |
Definition at line 521 of file src/terralib/qt/widgets/charts/Utils.cpp.
References getStatisticalValue(), and te::stat::GetStringStatisticalSummary().
Referenced by te::qt::widgets::createHistogram().
| void buildSummarizedScatter | ( | int | stat, |
| std::map< std::string, std::vector< te::da::ObjectId * > > | oidsToSummarize, | ||
| std::map< std::string, std::vector< std::pair< double, double > > > | valuesToSummarize, | ||
| te::qt::widgets::Scatter * | scatter | ||
| ) |
Definition at line 364 of file src/terralib/qt/widgets/charts/Utils.cpp.
References te::qt::widgets::Scatter::addData(), te::stat::GetNumericStatisticalSummary(), and getStatisticalValue().
Referenced by te::qt::widgets::createScatter().
| float errFunction | ( | float | x | ) |
Definition at line 178 of file src/terralib/qt/widgets/charts/Utils.cpp.
References gammp().
Referenced by te::qt::widgets::createNormalDistribution().
| float gammln | ( | float | xx | ) |
Definition at line 68 of file src/terralib/qt/widgets/charts/Utils.cpp.
| float gammp | ( | float | a, |
| float | x | ||
| ) |
Definition at line 162 of file src/terralib/qt/widgets/charts/Utils.cpp.
Referenced by errFunction().
| void gcf | ( | float * | gammcf, |
| float | a, | ||
| float | x, | ||
| float * | gln | ||
| ) |
Definition at line 126 of file src/terralib/qt/widgets/charts/Utils.cpp.
References gammln().
Referenced by gammp().
| double getDouble | ( | const std::string & | value, |
| std::vector< std::string > & | sVector | ||
| ) |
Definition at line 183 of file src/terralib/qt/widgets/charts/Utils.cpp.
Referenced by te::qt::widgets::createHistogram(), te::qt::widgets::createScatter(), te::ogr::DataSet::isConnected(), te::gpkg::DataSet::isConnected(), and te::da::DataSet::~DataSet().
| double getDouble | ( | te::dt::DateTime * | dateTime | ) |
Definition at line 196 of file src/terralib/qt/widgets/charts/Utils.cpp.
References d, te::dt::DATE, te::dt::DateTime::getDateTimeType(), and te::dt::TIME_INSTANT.
| double getDouble | ( | te::da::DataSet * | dataset, |
| int | propId | ||
| ) |
Definition at line 226 of file src/terralib/qt/widgets/charts/Utils.cpp.
References te::dt::FLOAT_TYPE, te::da::DataSet::getDouble(), te::da::DataSet::getFloat(), te::da::DataSet::getInt16(), te::da::DataSet::getInt32(), te::da::DataSet::getInt64(), te::da::DataSet::getNumeric(), te::da::DataSet::getPropertyDataType(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::dt::NUMERIC_TYPE, te::dt::UINT16_TYPE, te::dt::UINT32_TYPE, and te::dt::UINT64_TYPE.
| te::da::ObjectId* getObjectId | ( | te::da::DataSet * | dataset, |
| std::vector< std::size_t > | pkeys | ||
| ) |
Definition at line 585 of file src/terralib/qt/widgets/charts/Utils.cpp.
References te::da::GenerateOID(), and te::da::DataSet::getPropertyName().
Referenced by te::qt::widgets::createHistogram(), te::qt::widgets::createScatter(), and getObjectIds().
| void getObjectIds | ( | te::da::DataSet * | dataset, |
| std::vector< std::size_t > | pkeys, | ||
| std::vector< te::da::ObjectId * > & | valuesOIDs | ||
| ) |
Definition at line 598 of file src/terralib/qt/widgets/charts/Utils.cpp.
References getObjectId().
| std::string getStatisticalValue | ( | int | stat, |
| te::stat::StringStatisticalSummary & | sss | ||
| ) |
Definition at line 271 of file src/terralib/qt/widgets/charts/Utils.cpp.
References te::stat::StringStatisticalSummary::m_maxVal, te::stat::StringStatisticalSummary::m_minVal, te::stat::MAX_VALUE, and te::stat::MIN_VALUE.
Referenced by buildNumericFrequencies(), buildStringFrequencies(), and buildSummarizedScatter().
| double getStatisticalValue | ( | int | stat, |
| te::stat::NumericStatisticalSummary & | nss | ||
| ) |
Definition at line 300 of file src/terralib/qt/widgets/charts/Utils.cpp.
References te::stat::AMPLITUDE, te::stat::KURTOSIS, te::stat::NumericStatisticalSummary::m_amplitude, te::stat::NumericStatisticalSummary::m_kurtosis, te::stat::NumericStatisticalSummary::m_maxVal, te::stat::NumericStatisticalSummary::m_mean, te::stat::NumericStatisticalSummary::m_median, te::stat::NumericStatisticalSummary::m_minVal, te::stat::NumericStatisticalSummary::m_skewness, te::stat::NumericStatisticalSummary::m_stdDeviation, te::stat::NumericStatisticalSummary::m_sum, te::stat::NumericStatisticalSummary::m_varCoeff, te::stat::NumericStatisticalSummary::m_variance, te::stat::MAX_VALUE, te::stat::MEAN, te::stat::MEDIAN, te::stat::MIN_VALUE, te::stat::SKEWNESS, te::stat::STANDARD_DEVIATION, te::stat::SUM, te::stat::VAR_COEFF, and te::stat::VARIANCE.
| void gser | ( | float * | gamser, |
| float | a, | ||
| float | x, | ||
| float * | gln | ||
| ) |
Definition at line 88 of file src/terralib/qt/widgets/charts/Utils.cpp.
References gammln().
Referenced by gammp().