public void CreateDrawables(DxfModel model, Matrix4D modelTransform) { this.ClearDrawables(); SurfaceGraphicsCache.Class507 class507 = new SurfaceGraphicsCache.Class507(this); DrawContext.Surface context = (DrawContext.Surface) new DrawContext.Surface.ModelSpace(model, this.graphicsConfig_0, modelTransform, this.charTriangulationCache_0); model.Draw(context, (ISurfaceGraphicsFactory)class507); }
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 AddDrawables(DxfModel model, IList <DxfEntity> entities, Matrix4D modelTransform) { SurfaceGraphicsCache.Class507 class507 = new SurfaceGraphicsCache.Class507(this); DrawContext.Surface context = (DrawContext.Surface) new DrawContext.Surface.ModelSpace(model, this.graphicsConfig_0, modelTransform, this.charTriangulationCache_0); foreach (DxfEntity entity in (IEnumerable <DxfEntity>)entities) { entity.Draw(context, (ISurfaceGraphicsFactory)class507); } }