/// <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) { }
        }
Esempio n. 2
0
        /// <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) { }
        }
Esempio n. 3
0
 /// <summary>
 /// resets the lazy loading objects after the point cloud has been updated (e.g. after downsampling)
 /// </summary>
 void resetLazyLoadingObjectsAfterUpdate()
 {
     this._pointcloud_kd  = null;
     this._pictures       = null;
     this._delaunayVolume = float.MinValue;
 }