Logo Search packages:      
Sourcecode: ecawave version File versions  Download package

void QEWaveForm::mark_area_relative ( int  from,
int  to 
) [slot]

Set marked area using relative x-coordinates

Definition at line 164 of file qewaveform.cpp.

                                                    {
  double pos1 = visible_area_begin_rep;
  pos1 += (static_cast<double>(from) / width()) * (visible_area_end_rep - visible_area_begin_rep);
  marked_area_begin_rep = static_cast<long int>(pos1); 

  pos1 = visible_area_begin_rep;
  pos1 += (static_cast<double>(to) / width()) * (visible_area_end_rep - visible_area_begin_rep);
  marked_area_end_rep = static_cast<long int>(pos1);
}


Generated by  Doxygen 1.6.0   Back to index