/// <summary> /// Handles the event of Picking an object /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void DocumentPicked(object sender, IndexesPickedEventArgs e) { iSelectedIds = e.PickedIndexes; Graphics g = iPanel.CreateGraphics(); DrawTree(g); }
/// <summary> /// Handles the event of mouse pressing over the PC plot /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void pcPlot_Picked(object sender, IndexesPickedEventArgs e) { //ParallelCoordinatesPlot plot = (ParallelCoordinatesPlot)sender; List <int> selectedLines = e.PickedIndexes; // if CTRL is pressed, add the line to the selection Keys keys = Control.ModifierKeys; bool add = (keys == Keys.Control); iDoc.SetSelectedItems(selectedLines, add, true); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void DocumentPicked(object sender, IndexesPickedEventArgs e) { //Initialize visibilities for (int i = 0, endI = iMapData.RegionList.Count; i < endI; i++) { iInVisibilityList.SetVisibility(i, 0, true); iVisibilityList.SetVisibility(i, 0, false); } //Set visibilities accordingly foreach (int index in e.PickedIndexes) { //Check that it is not filtered out if (polygonLayer.IndexVisibilityHandler.GetVisibility(index)) { iInVisibilityList.SetVisibility(index, 0, false); //!iVisibilityList.GetVisibility(index)); iVisibilityList.SetVisibility(index, 0, true); } } iInVisibilityList.CommitChanges(); iVisibilityList.CommitChanges(); Invalidate(); }
void DocumentPicked(object sender, IndexesPickedEventArgs e) { SelectionChanged(e.PickedIndexes); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void DocumentPicked(object sender, IndexesPickedEventArgs e) { iPcPlot.SetSelectedLines(e.PickedIndexes, false, false); iPcPlot.Invalidate(); }