I'm working on a simple GUI with plot where you can set some x and y ranges. How can I select all items from all graphs on the plot that are within those ranges? I was trying to reproduce the same algorithms that are run on mouse rectangular multi range selection but I have not succeed. I hope there is some easier way that I am missing.
Lets say that A and B are a pair of QCPRanges:
QCPRange A = QCPRange(2,4);
QCPRange B = QCPRange(1,8);
I would like to mark points on the plot that are within A and B ranges.
I am looking for some clues and tips to follow, not really a full copy-paste ready code.