14 #include "msdevstudio/MSconfig.h"
31 using namespace hippodraw;
33 #ifdef ITERATOR_MEMBER_DEFECT
45 m_x_option (
"X width (optional)" ),
46 m_y_option (
"Y width (optional)" )
83 vector< string >:: iterator first
102 vector< string >:: iterator first
155 namespace dp = hippodraw::DataPoint3DTuple;
164 return Range ( 0.0, 1.0, 0.5 );
168 return Range ( values );
216 vector < string > labels;
217 labels.push_back (
m_ntuple -> getLabelAt ( x_col ) );
218 labels.push_back (
m_ntuple -> getLabelAt ( y_col ) );
219 labels.push_back (
m_ntuple -> getLabelAt ( z_col ) );
221 if ( x_err < UINT_MAX ) {
222 labels.push_back (
m_ntuple -> getLabelAt ( x_err ) );
227 if ( y_err < UINT_MAX ) {
228 labels.push_back (
m_ntuple -> getLabelAt ( y_err ) );
232 labels.push_back (
" z error" );
237 ntuple -> reserve ( size );
264 const vector < string > & labels =
m_ntuple -> getLabels ();
265 unsigned int size = labels.size();
267 if ( x_err == UINT_MAX &&
270 if ( y_err == UINT_MAX &&
276 for (
unsigned int i = 0; i <
size; i++ ) {
278 ( in_range ==
true &&
inRange ( i ) ==
false ) )
continue;
286 = x_err < UINT_MAX ?
m_ntuple -> valueAt ( i, x_err ) : 0.0;
288 = y_err < UINT_MAX ?
m_ntuple -> valueAt( i, y_err ) : 0.0;
293 ntuple -> addRow ( row );
317 for (
unsigned int i = 0; i < 2; i++ ) {
322 double value =
m_ntuple -> valueAt ( row, vcolumn );
323 double width =
m_ntuple -> valueAt ( row, wcolumn );
324 bool in = range.
includes ( value + width ) ||
350 double low = DBL_MAX;
351 double pos = DBL_MAX;
352 double high = -DBL_MIN;
354 std::size_t rows =
m_ntuple -> rows ();
355 for (
unsigned int row = 0; row < rows; row++ ) {
359 low = std::min ( low, value );
361 pos = std::min ( pos, value );
363 high = std::max ( high, value );
397 unsigned int size = xs.size();
398 for (
unsigned int i = 0; i <
size; i++ ) {
399 if ( x>xs[i]-xerr[i] && x<xs[i]+xerr[i] &&
400 y>ys[i]-yerr[i] && y<ys[i]+yerr[i] ) {