/// <summary> /// user switches the plane model in the listview /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SelectPlanesListView_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { SelectPlanesListViewItem selectedItem = ((SelectPlanesListViewItem)e.AddedItems[0]); //transform List <List <Point> > points = new List <List <Point> >(); points.Add(selectedItem.PlaneModel.getPointList()); Post_knv_Server.DataIntegration.PointCloudDrawing.PointCloudPicturePackage pcpp = PointCloudDrawing.addTriangleToPicturePackage(pointCloud.pictures, points); this._PointImagePlane_Bottom.Source = pcpp.bottomview; this._PointImagePlane_Front.Source = pcpp.frontview; this._PointImagePlane_Side.Source = pcpp.sideview; } catch (Exception) { } }
/// <summary> /// if the selection is changed in the listview the pictures have to be updated /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void EuclidianListView_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { EuclidianListViewItem ecl = ((EuclidianListViewItem)e.AddedItems[0]); //transform List <List <Point> > points = Algorithm.DelaunayTriangulation.calculateDelaunayTrianglePoints(ecl.pointcloud); Post_knv_Server.DataIntegration.PointCloudDrawing.PointCloudPicturePackage pcpp = PointCloudDrawing.addTriangleToPicturePackage(refPointCloud.pictures, points); this._PointImageEuclid_Bottom.Source = pcpp.bottomview; this._PointImageEuclid_Front.Source = pcpp.frontview; this._PointImageEuclid_Side.Source = pcpp.sideview; } catch (Exception) { } }