Beispiel #1
0
        public PointCloudRenderable ToPointCloudRenderable()
        {
            PointCloudRenderable pcr = new PointCloudRenderable();

            pcr.PointCloud = this;
            return(pcr);
        }
Beispiel #2
0
        public void ReplacePointCloud(PointCloud myPC, bool clearPrevious)
        {
            PointCloudRenderable pcr = new PointCloudRenderable();

            pcr.PointCloud = myPC;
            ReplaceRenderableObject(pcr, clearPrevious);
        }
Beispiel #3
0
        public RenderableObject Clone()
        {
            RenderableObject o = new PointCloudRenderable();

            o.PointCloud = this.PointCloud;

            return(o);
        }
Beispiel #4
0
        //public void AddModel(PointCloud myModel)
        //{
        //    PointCloudRenderable pcr = new PointCloudRenderable();
        //    pcr.PointCloud = myModel.PointCloud;

        //    RenderableObjects.Add(pcr);
        //    if (GLContextInitialized)
        //    {
        //        pcr.InitializeGL();
        //        Refresh();
        //    }


        //}
        public void AddPointCloud(PointCloud pc)
        {
            PointCloudRenderable pcr = new PointCloudRenderable();

            pcr.PointCloud = pc;

            RenderableObjects.Add(pcr);
            if (GLContextInitialized)
            {
                pcr.InitializeGL();
                Refresh();
            }
        }
Beispiel #5
0
        public void ShowPointCloud_ClearAllOthers(PointCloud pc)
        {
            if (pc != null)
            {
                this.comboModels.Items.Clear();
                PointCloudRenderable ro = new PointCloudRenderable();
                ro.PointCloud = pc;

                this.OGLControl.GLrender.ReplaceRenderableObject(ro, true);


                this.comboModels.Items.Add(pc.Name);
                if (this.comboModels.Items.Count > 1)
                {
                    this.OGLControl.GLrender.SelectedModelIndex = this.comboModels.Items.Count - 2;
                }
                else
                {
                    this.OGLControl.GLrender.SelectedModelIndex = 0;
                }
            }
        }