/// <summary> /// add a view that we can see all the data so that we can move or scale our data /// </summary> /// <param name="strLayerNameLt"></param> /// <returns></returns> private static string GetIpeContentViewAll(List <string> strLayerNameLt) { var strViewAll = strLayerNameLt[0]; for (int i = 1; i < strLayerNameLt.Count; i++) { strViewAll += " " + strLayerNameLt[i]; } return(CIpeDraw.AddView(strViewAll, strLayerNameLt[0])); }
/// <summary> /// Prepare each layer for Ipe /// </summary> /// <param name="strLayerNameLt"></param> /// <returns></returns> public static string GetDataOfLayerNames(List <string> strLayerNameLt) { string strData = ""; foreach (var strName in strLayerNameLt) { strData += CIpeDraw.AddLayer(strName); } return(strData); }
/// <summary> /// Incrementally dislay the layers /// </summary> /// <param name="strLayerNameLt"></param> /// <returns></returns> public static string GetDataOfViewsAreaAgg(List <string> strLayerNameLt) { var strIpeCont = GetIpeContentViewAll(strLayerNameLt); //display the data string strDisplayLayers = strLayerNameLt[0]; strIpeCont += CIpeDraw.AddView(strDisplayLayers, strLayerNameLt[0]); //add other views strIpeCont += CIpeDraw.AddView(strDisplayLayers + " " + strLayerNameLt[1], strLayerNameLt[1]); for (int i = 2; i < strLayerNameLt.Count; i++) { strDisplayLayers += " " + strLayerNameLt[i]; strIpeCont += CIpeDraw.AddView(strDisplayLayers + " " + strLayerNameLt[++i], strLayerNameLt[i]); } return(strIpeCont); }
/// <summary> /// Incrementally dislay the layers /// </summary> /// <param name="strLayerNameLt"></param> /// <returns></returns> public static string GetDataOfViews(List <string> strLayerNameLt, bool blnViewPre = true) { var strIpeCont = GetIpeContentViewAll(strLayerNameLt); //add other views string strView = strLayerNameLt[0]; strIpeCont += CIpeDraw.AddView(strView, strLayerNameLt[0]); for (int i = 1; i < strLayerNameLt.Count; i++) { if (blnViewPre == true) { strView += " " + strLayerNameLt[i]; } else { strView = strLayerNameLt[i]; } strIpeCont += CIpeDraw.AddView(strView, strLayerNameLt[i]); } return(strIpeCont); }