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 Class509(DxfEntity entity, DrawContext.Surface drawContext) { this.dxfEntity_0 = entity; this.surface_0 = drawContext; this.linkedList_0.AddLast((ISurfaceDrawable)SurfaceGraphicsCache.Class510.class510_0); this.linkedList_0.AddLast((ISurfaceDrawable)SurfaceGraphicsCache.Class510.class510_0); }
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); } }
public void BeginNode(DxfEntity entity, DrawContext.Surface drawContext) { SurfaceGraphicsCache.Class509 class509 = new SurfaceGraphicsCache.Class509(entity, drawContext); if (this.surfaceGraphicsCache_0.bool_0) { SurfaceGraphicsCache.Class508 class5080 = this.class508_0; this.class508_0 = new SurfaceGraphicsCache.Class508(entity, drawContext); class5080?.method_0(this.class508_0); this.class508_0.FirstDrawable = this.linkedListNode_0; this.class508_0.LastDrawable = this.linkedListNode_0.Next; this.stack_0.Push(this.class508_0); List <SurfaceGraphicsCache.Class508> class508List; if (!this.surfaceGraphicsCache_0.dictionary_0.TryGetValue(entity, out class508List)) { class508List = new List <SurfaceGraphicsCache.Class508>(); this.surfaceGraphicsCache_0.dictionary_0.Add(entity, class508List); } class508List.Add(this.class508_0); } this.stack_1.Push(this.linkedListNode_0.List.AddAfter(this.linkedListNode_0, (ISurfaceDrawable)class509)); this.linkedListNode_0 = class509.Drawables.First; }
public Class508(DxfEntity entity, DrawContext.Surface drawContext) { this.dxfEntity_0 = entity; this.surface_0 = drawContext; }