28 #include "../../../dataaccess/dataset/ObjectIdSet.h"
41 : m_minX(std::numeric_limits<double>::max()),
42 m_maxX(-std::numeric_limits<double>::max()),
43 m_minY(std::numeric_limits<double>::max()),
44 m_maxY(-std::numeric_limits<double>::max())
50 te::qt::widgets::PointToObjectIdSet::iterator it= m_valuesOids.begin();
51 while(it != m_valuesOids.end())
61 std::vector<double>::const_iterator itx = m_xValues.begin();
62 std::vector<double>::const_iterator ity = m_yValues.begin();
63 while(itx!=m_xValues.end())
72 while(ity!=m_yValues.end())
84 return m_xValues.size();
89 return m_yValues.size();
99 return m_xValues[idx];
104 return &m_xValues[0];
114 return m_yValues[idx];
119 return &m_yValues[0];
174 m_xValues.push_back(xValue);
179 m_yValues.push_back(yValue);
184 m_xValues.push_back(xValue);
185 m_yValues.push_back(yValue);
191 typedef te::qt::widgets::PointToObjectIdSet::nth_index<0>::type::iterator itPointToObjectIdSet;
194 std::pair<itPointToObjectIdSet, itPointToObjectIdSet> res = m_valuesOids.equal_range(aux);
195 itPointToObjectIdSet it0 = res.first;
196 itPointToObjectIdSet it1 = res.second;
215 typedef te::qt::widgets::PointToObjectIdSet::nth_index<0>::type::iterator itPointToObjectIdSet;
216 itPointToObjectIdSet it0, it1;
217 std::pair<itPointToObjectIdSet, itPointToObjectIdSet> res;
221 for(
size_t i = 0; i < selectedPoints.size(); ++i)
223 double x = selectedPoints.at(i).x();
224 double y = selectedPoints.at(i).y();
226 res = m_valuesOids.equal_range(aux);
246 te::qt::widgets::PointToObjectIdSet::nth_index<1>::type::iterator it= m_valuesOids.get<1>().find(oid->
getValueAsString());
247 return std::make_pair(it->x, it->y);
This class represents a set of unique ids created in the same context. i.e. from the same data set...
This class represents an unique id for a data set element.
std::string getValueAsString() const
It gets the properties values used to uniquely identify a data set element as string.
A class to represent a scatter.
void add(ObjectId *oid)
It adds an object id to this object id set.