public PointCloudRenderable ToPointCloudRenderable() { PointCloudRenderable pcr = new PointCloudRenderable(); pcr.PointCloud = this; return(pcr); }
public void ReplacePointCloud(PointCloud myPC, bool clearPrevious) { PointCloudRenderable pcr = new PointCloudRenderable(); pcr.PointCloud = myPC; ReplaceRenderableObject(pcr, clearPrevious); }
public RenderableObject Clone() { RenderableObject o = new PointCloudRenderable(); o.PointCloud = this.PointCloud; return(o); }
//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(); } }
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; } } }