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())
55 std::vector<double>::const_iterator itx = m_xValues.begin();
56 std::vector<double>::const_iterator ity = m_yValues.begin();
57 while(itx!=m_xValues.end())
66 while(ity!=m_yValues.end())
78 return m_xValues.size();
83 return m_yValues.size();
88 return m_xValues[idx];
98 return m_yValues[idx];
103 return &m_yValues[0];
148 m_xValues.push_back(xValue);
153 m_yValues.push_back(yValue);
158 m_xValues.push_back(xValue);
159 m_yValues.push_back(yValue);
165 typedef te::qt::widgets::PointToObjectIdSet::nth_index<0>::type::iterator itPointToObjectIdSet;
168 std::pair<itPointToObjectIdSet, itPointToObjectIdSet> res = m_valuesOids.equal_range(aux);
169 itPointToObjectIdSet it0 = res.first;
170 itPointToObjectIdSet it1 = res.second;
180 for(boost::ptr_vector<te::dt::AbstractData>::const_iterator it = it0->oid->getValue().begin(); it != it0->oid->getValue().end(); ++it)
195 typedef te::qt::widgets::PointToObjectIdSet::nth_index<0>::type::iterator itPointToObjectIdSet;
196 itPointToObjectIdSet it0, it1;
197 std::pair<itPointToObjectIdSet, itPointToObjectIdSet> res;
201 for(
size_t i = 0; i < selectedPoints.size(); ++i)
203 double x = selectedPoints.at(i).x();
204 double y = selectedPoints.at(i).y();
206 res = m_valuesOids.equal_range(aux);
216 for(boost::ptr_vector<te::dt::AbstractData>::const_iterator it = it0->oid->getValue().begin(); it != it0->oid->getValue().end(); ++it)
233 te::qt::widgets::PointToObjectIdSet::nth_index<1>::type::iterator it= m_valuesOids.get<1>().find(oid->
getValueAsString());
234 return std::make_pair(it->x, it->y);
void addValue(te::dt::AbstractData *data)
It adds a property value to uniquely identify a data set element.
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.