public void UpdateDrawables(DxfEntity entity) { if (!this.bool_0) { throw new Exception("Property AreDrawablesUpdateable is false."); } SurfaceGraphicsCache.Class507 class507 = new SurfaceGraphicsCache.Class507(this); List <SurfaceGraphicsCache.Class508> class508List; if (!this.dictionary_0.TryGetValue(entity, out class508List)) { return; } foreach (SurfaceGraphicsCache.Class508 entityDrawablesInfo in class508List.ToArray()) { class507.CurrentDrawableNode = entityDrawablesInfo.FirstDrawable.Previous; class507.CurrentEntityDrawablesInfo = entityDrawablesInfo.Parent; bool flag = entityDrawablesInfo.FirstDrawable.List != null; this.RemoveDrawables(entityDrawablesInfo); if (flag) { entity.Draw(entityDrawablesInfo.DrawContext, (ISurfaceGraphicsFactory)class507); } } }
public void GetBounds(DxfModel model, DxfEntity entity, Matrix4D modelTransform) { using (DrawContext.Wireframe context = (DrawContext.Wireframe) new DrawContext.Wireframe.ModelSpace(model, this.graphicsConfig_0, modelTransform)) { IWireframeGraphicsFactory graphicsFactory = this.CreateGraphicsFactory(); entity.Draw(context, graphicsFactory); } }
public void GetBounds( DxfModel model, DxfLayout layout, DxfEntity paperSpaceEntity, Matrix4D postTransform) { using (DrawContext.Wireframe.PaperToPaperSpace paperToPaperSpace = new DrawContext.Wireframe.PaperToPaperSpace(layout.Model, layout, this.graphicsConfig_0, postTransform)) paperSpaceEntity.Draw((DrawContext.Wireframe)paperToPaperSpace, this.CreateGraphicsFactory()); }
public void UpdateDrawables(DxfEntity entity) { if (!this.bool_1) { throw new Exception("Property AreDrawablesUpdateable is false."); } WireframeGraphicsCache.Class957 class957 = new WireframeGraphicsCache.Class957(this); List <WireframeGraphicsCache.Class958> class958List; if (!this.dictionary_0.TryGetValue(entity, out class958List)) { return; } foreach (WireframeGraphicsCache.Class958 entityDrawablesInfo in class958List.ToArray()) { this.RemoveDrawables(entityDrawablesInfo, true); class957.CurrentDrawableNode = new LinkedListNodeRef <IWireframeDrawable>(entityDrawablesInfo.EntityDrawable.Drawables, entityDrawablesInfo.EntityDrawable.Drawables.Last); class957.CurrentEntityDrawablesInfo = entityDrawablesInfo.Parent; class957.ExistingEntityDrawablesInfo = entityDrawablesInfo; entity.Draw(entityDrawablesInfo.DrawContext, (IWireframeGraphicsFactory)class957); } this.method_0(); }