Пример #1
0
        public override void CreateRenderList(RectangleF rect, bool sort)
        {
            RenderList renderList = RenderList;

            renderList.Clear();

            //Add all items from the current tab
            if (Tabs != null)
            {
                foreach (Element element in Tabs.CurrentTab.Elements.Values)
                {
                    renderList.Add(element);
                }

                if (sort)
                {
                    renderList.Sort();
                }
            }
        }
Пример #2
0
        //Adds a model lines and shapes to an svg document
        private void AddDiagramImplementation(IDiagram diagram)
        {
            RenderList list = new RenderList();

            //Add each sorted shape to the svg document
            foreach (Element element in diagram.Lines.Values)
            {
                if (element.Visible)
                {
                    list.Add(element);
                }
            }

            //Add each sorted line to the svg document
            foreach (Element element in diagram.Shapes.Values)
            {
                if (element.Visible)
                {
                    list.Add(element);
                }
            }

            list.Sort();

            //Go through the diagram and add the element by layer;
            foreach (Layer layer in diagram.Layers)
            {
                if (layer.Visible)
                {
                    foreach (Element element in list)
                    {
                        if (element.Layer == layer)
                        {
                            AddElement(element);
                        }
                    }
                }
            }
        }
Пример #3
0
        //Adds a model lines and shapes to an svg document
        private void AddContainerImplementation(IContainer container)
        {
            RenderList list = new RenderList();

            //Add each sorted shape to the svg document
            foreach (Element element in container.Lines.Values)
            {
                list.Add(element);
            }

            //Add each sorted line to the svg document
            foreach (Element element in container.Shapes.Values)
            {
                list.Add(element);
            }

            list.Sort();

            //Go through the diagram and add the element
            foreach (Element element in list)
            {
                AddElement(element);
            }
        }
Пример #4
0
		//Adds a model lines and shapes to an svg document
		private void AddContainerImplementation(IContainer container)
		{
			RenderList list = new RenderList();
			
			//Add each sorted shape to the svg document			
			foreach (Element element in container.Lines.Values)
			{
				list.Add(element);
			}

			//Add each sorted line to the svg document
			foreach (Element element in container.Shapes.Values)
			{
				list.Add(element);
			}

			list.Sort();

			//Go through the diagram and add the element
			foreach (Element element in list)
			{
				AddElement(element);
			}
		}
Пример #5
0
		//Adds a model lines and shapes to an svg document
		private void AddDiagramImplementation(IDiagram diagram)
		{
			RenderList list = new RenderList();
			
			//Add each sorted shape to the svg document			
			foreach (Element element in diagram.Lines.Values)
			{
				if (element.Visible) list.Add(element);
			}

			//Add each sorted line to the svg document
			foreach (Element element in diagram.Shapes.Values)
			{
				if (element.Visible) list.Add(element);
			}

			list.Sort();

			//Go through the diagram and add the element by layer;
			foreach (Layer layer in diagram.Layers)
			{
				if (layer.Visible)
				{
					foreach (Element element in list)
					{
						if (element.Layer == layer) AddElement(element);
					}
				}
			}
		}