public void DrawEnableMesh() { drawingType = DrawingType.InsertMesh; this.enabled = true; brushUI.GetComponent <MeshFilter>().sharedMesh = brush.GetComponent <MeshFilter>().sharedMesh; brushVisual.SetActive(false); }
internal void AddDrawing( string UIName, DrawingType type, Coordinates coordinates, params KeyValuePair <string, object>[] extraSettings) { switch (type) { case DrawingType.Free: AddFree(UIName, coordinates, extraSettings); break; case DrawingType.Circle: AddOval(UIName, coordinates, extraSettings); break; case DrawingType.TextBox: AddTextBox(UIName, coordinates, extraSettings); break; default: throw new ArgumentOutOfRangeException(nameof(type), $"Not expected drawing value: {type}"); } ; }
/// <summary> /// 构造函数 /// </summary> /// <param name="DataSheet">图表对应的数据工作表</param> /// <param name="DrawingChart">Excel图形所在的Chart对象</param> /// <param name="ParentApp">此图表所在的Excel类的实例对象</param> /// <param name="type">此图表所属的类型,由枚举drawingtype提供</param> /// <param name="CanRoll">是图表是否可以滚动,即是动态图还是静态图</param> /// <param name="Info">图表中用来显示相关信息的那个文本框对象</param> /// <param name="DrawingTag">每一个监测曲线图的相关信息</param> /// <param name="MonitorType">监测数据的类型,比如测斜数据、立柱垂直位移数据、支撑轴力数据等</param> /// <remarks></remarks> public ClsDrawing_Mnt_Base(Excel.Worksheet DataSheet, Microsoft.Office.Interop.Excel.Chart DrawingChart, Cls_ExcelForMonitorDrawing ParentApp, DrawingType type, bool CanRoll, Excel.TextFrame2 Info, MonitorInfo DrawingTag, MntType MonitorType) { try { //设置Excel窗口与Chart的尺寸 this.F_Application = ParentApp.Application; ExcelFunction.SetLocation_Size(this.ChartSize_sugested, DrawingChart, this.Application, true); // this.Sheet_Data = DataSheet; this.F_myChart = DrawingChart; this.F_textbox_Info = Info; this.Sheet_Drawing = DrawingChart.Parent.Parent; this.F_blnCanRoll = CanRoll; this.F_DrawingType = type; this.P_MntType = MonitorType; //将此对象添加进其所属的集合中 F_Class_ParentApp = ParentApp; // this.P_Key = System.Convert.ToInt32(F_Class_ParentApp.Mnt_Drawings.Add(this)); this.F_UniqueID = GeneralMethods.GetUniqueID(); // this.Tags = DrawingTag; } catch (Exception ex) { MessageBox.Show("创建基本监测曲线图出错。" + "\r\n" + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
/// <summary> /// 构造函数 /// </summary> /// <param name="DataSheet">图表对应的数据工作表</param> /// <param name="DrawingChart">Excel图形所在的Chart对象</param> /// <param name="ParentApp">此图表所在的Excel类的实例对象</param> /// <param name="DateSpan">此图表的TimeSpan跨度</param> /// <param name="type">此图表的类型,则枚举DrawingType提供</param> /// <param name="CanRoll">是图表是否可以滚动,即是动态图还是静态图</param> /// <param name="date_ColNum">此测斜点的监测数据工作表中的每一天与其在工作表中对应的列号, /// 以监测数据的日期key索引数据所在列号item</param> /// <param name="usedRg">监测曲线的数据范围,此Range对象中, /// 包括此工作表的UsedRange中的第一列,即深度的数据;但是不包括第一行的日期数据</param> /// <param name="Info">记录数据信息的文本框</param> /// <param name="FirstSeriesTag">第一条数据系列对应的Tag信息</param> /// <param name="ProcessRegionData">在施工进度工作表中,每一个基坑区域相关的各种信息,比如区域名称,区域的描述, /// 区域数据的Range对象,区域所属的基坑ID及其ID的数据等</param> /// <remarks></remarks> public ClsDrawing_Mnt_Incline(Excel.Worksheet DataSheet, Excel.Chart DrawingChart, Cls_ExcelForMonitorDrawing ParentApp, DateSpan DateSpan, DrawingType type, bool CanRoll, TextFrame2 Info, MonitorInfo DrawingTag, MntType MonitorType, Dictionary <DateTime, int> date_ColNum, Excel.Range usedRg, SeriesTag_Incline FirstSeriesTag, clsData_ProcessRegionData ProcessRegionData = null) : base(DataSheet, DrawingChart, ParentApp, type, CanRoll, Info, DrawingTag, MonitorType, DateSpan, new clsDrawing_Mnt_RollingBase.SeriesTag(FirstSeriesTag.series, FirstSeriesTag.ConstructionDate)) { // // -------------------------------------------- try { ClsDrawing_Mnt_Incline with_1 = this; with_1.P_rgMntData = usedRg; //'包括第一列,但是不包括第一行的日期。 Excel.Range colRange = usedRg.Columns[1] as Excel.Range; with_1.F_YValues = ExcelFunction.ConvertRangeDataToVector <Single>(colRange); with_1.Information = Info; with_1._ExcavationDepth_lineAndTextbox = FirstSeriesTag; with_1.F_dicDateAndColumnNumber = date_ColNum; with_1.P_ProcessRegionData = ProcessRegionData; with_1._inclineTopElevaion = Project_Expo.InclineTopElevaion; // ----- 集合数据的记录 with_1.F_DicSeries_Tag[(int)LowIndexOfObjectsInExcel.SeriesInSeriesCollection] = FirstSeriesTag; // -----对图例进行更新--------- //Call LegendRefresh(List_HasCurve) } catch (Exception ex) { MessageBox.Show("构造测斜曲线图出错。" + "\r\n" + ex.Message + "\r\n" + ex.TargetSite.Name, "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private OperationType getOpType(DrawingType drawingType) { OperationType opType = OperationType.OT_LINE_LIST; switch (drawingType) { case DrawingType.LineList: opType = OperationType.OT_LINE_LIST; break; case DrawingType.LineStrip: opType = OperationType.OT_LINE_STRIP; break; case DrawingType.PointList: opType = OperationType.OT_POINT_LIST; break; case DrawingType.TriangleFan: opType = OperationType.OT_TRIANGLE_FAN; break; case DrawingType.TriangleList: opType = OperationType.OT_TRIANGLE_LIST; break; case DrawingType.TriangleStrip: opType = OperationType.OT_TRIANGLE_STRIP; break; } return(opType); }
public void DrawEnablePipe() { drawingType = DrawingType.Pipe; this.enabled = true; brushUI.GetComponent <MeshFilter>().sharedMesh = ring; brushVisual.SetActive(true); }
/// <summary> /// Initializes a new instance of the <see cref="DrawingField"/> class using the ID provided. /// </summary> /// <param name="id">A <see cref="string"/> representing the ID.</param> /// <param name="label">A <see cref="string"/> representing the label value.</param> /// <param name="drawingFieldType">The drawing type as a <see cref="DrawingType"/> value.</param> /// <param name="backgroundImage">A <see cref="string"/> representing the URL to an optional background image.</param> /// <param name="compositeResult">Whether to include the background image as part of the drawing when submitting.</param> public DrawingField(string id, string label, DrawingType drawingFieldType, string backgroundImage, bool compositeResult) { ID = id; Label = label; DrawingFieldType = drawingFieldType; BackgroundImage = backgroundImage; CompositeResult = compositeResult; }
public FileSetup(DrawingType type, Size size, int subDivision) { InitializeComponent(); initData = new FileSettingsEventArgs() { size = size, type = type, stepDivision = subDivision }; }
/// <summary> /// 构造函数 /// </summary> /// <param name="DataSheet">图表对应的数据工作表</param> /// <param name="DrawingChart">Excel图形所在的Chart对象</param> /// <param name="ParentApp">此图表所在的Excel类的实例对象</param> /// <param name="type">此图表所属的类型,由枚举drawingtype提供</param> /// <param name="CanRoll">是图表是否可以滚动,即是动态图还是静态图</param> /// <param name="Info">图表中用来显示相关信息的那个文本框对象</param> /// <param name="DrawingTag">每一个监测曲线图的相关信息</param> /// <param name="MonitorType">监测数据的类型,比如测斜数据、立柱垂直位移数据、支撑轴力数据等</param> /// <remarks></remarks> public ClsDrawing_Mnt_Static(Worksheet DataSheet, Chart DrawingChart, Cls_ExcelForMonitorDrawing ParentApp, DrawingType type, bool CanRoll, TextFrame2 Info, MonitorInfo DrawingTag, MntType MonitorType, Dictionary <Series, object[]> AllselectedData, double[] arrAllDate) : base(DataSheet, DrawingChart, ParentApp, type, CanRoll, Info, DrawingTag, MonitorType, arrAllDate) { // ----------------------------------- // this.F_dicSeries = AllselectedData; }
/// <summary> /// Shows and enters the dialgoue state /// </summary> /// <param name="gameTime"></param> /// <param name="name"></param> /// <param name="dialogue"></param> public void ShowDialogue(Npc npc, string dialogue = "") { this.textOwner = npc; dialogueBox.CurrentLine = 1; parentState.currentState = GameplayState.State.Frozen; drawingType = DrawingType.Dialogue; dialogueBox.TextOwner = npc.Name; dialogueBox.Text = dialogue == "" ? npc.GetRandomDialogue() : dialogue; }
/// <summary> /// 构造函数,构造时一定要设置好字典F_dicFourSeries的值。 /// </summary> /// <param name="DataSheet">图表对应的数据工作表</param> /// <param name="DrawingChart">Excel图形所在的Chart对象</param> /// <param name="ParentApp">此图表所在的Excel类的实例对象</param> /// <param name="type">此图表所属的类型,由枚举drawingtype提供</param> /// <param name="CanRoll">是图表是否可以滚动,即是动态图还是静态图</param> /// <param name="Info">图表中用来显示相关信息的那个文本框对象</param> /// <param name="DrawingTag">每一个监测曲线图的相关信息</param> /// <param name="MonitorType">监测数据的类型,比如测斜数据、立柱垂直位移数据、支撑轴力数据等</param> /// <remarks></remarks> public clsDrawing_Mnt_StaticBase(Worksheet DataSheet, Chart DrawingChart, Cls_ExcelForMonitorDrawing ParentApp, DrawingType type, bool CanRoll, TextFrame2 Info, MonitorInfo DrawingTag, MntType MonitorType, double[] Alldate) : base(DataSheet, DrawingChart, ParentApp, type, CanRoll, Info, DrawingTag, MonitorType) { // VBConversions Note: Non-static class variable initialization is below. Class variables cannot be initially assigned non-static values in C#. myChart = this.Chart; // this.F_arrAllDate = Alldate; this.currentPointsCount = Alldate.Length; }
public DrawingBitmap(DrawingType drawingType, Mesh mesh, Mesh axis, Mesh grid) { DrawingType = drawingType; this.mesh = mesh; this.axis = axis; this.grid = grid; bmp = null; Default(); }
/// <summary> /// Exits the dialogue state /// </summary> public void ExitDialogue() { this.textOwner.IsBusy = false; this.textOwner = null; EntityManager.Player.IsTalking = false; parentState.currentState = GameplayState.State.Playing; drawingType = DrawingType.HUD; dialogueBox.TextOwner = ""; dialogueBox.Text = ""; }
private double GetMin(DrawingType type) { if (UseCustomRangeRadioBtn.Checked) { return(double.Parse(customMinTextbox.Text)); } else if (UseLocalRangeRadioBtn.Checked) { return(GetLocalMinValue(type)); } return(GetGlobalMinValue(type)); }
/// <summary> /// Exits the dialogue state /// </summary> public void ExitDialogue() { this.textOwner.IsBusy = false; this.textOwner = null; EntityManager.Player.IsTalking = false; parentState.currentState = GameplayState.State.Playing; drawingType = DrawingType.HUD; dialogueBox.TextOwner = ""; dialogueBox.Text = ""; }
/// <summary> /// Initialize a new empty instance of the <c>Graphmatic.Interaction.Annotations.Drawing</c> class with the specified drawing data. /// </summary> /// <param name="page">The page that this annotation will be on. This is used for correctly turning screen space drawing /// data into graph space path data.</param> /// <param name="color">The color of the drawn annotation.</param> /// <param name="graphSize">The size of the graph on the screen, for turning screen-space data to graph space data.</param> /// <param name="screenPoints">The points on the screen describing the drawn annotation.</param> /// <param name="thickness">The thickness of the drawn annotation.</param> /// <param name="type">The pen type of the drawn annotation.</param> public Drawing(Page page, Point[] screenPoints, Size graphSize, Color color, float thickness, DrawingType type) { Points = screenPoints .Select(p => ToGraphSpace(page, p, graphSize)) .ToArray(); double x1 = Double.PositiveInfinity, y1 = Double.PositiveInfinity, x2 = Double.NegativeInfinity, y2 = Double.NegativeInfinity; foreach (var point in Points) { if (point.Item1 < x1) { x1 = point.Item1; } if (point.Item2 < y1) { y1 = point.Item2; } if (point.Item1 > x2) { x2 = point.Item1; } if (point.Item2 > y2) { y2 = point.Item2; } } X = x1; Y = y1; Width = x2 - x1; Height = y2 - y1; if (Width == 0) { Width = 0.1; } if (Height == 0) { Height = 0.1; } Points = Points .Select(p => new Tuple <double, double>((p.Item1 - X) / Width, (p.Item2 - Y) / Height)) .ToArray(); Color = color; Thickness = thickness; Type = type; }
/// <summary> /// Initialize a new empty instance of the <c>Graphmatic.Interaction.Annotations.Drawing</c> class from serialized XML data. /// </summary> /// <param name="xml">The XML data to use for deserializing this Resource.</param> public Drawing(XElement xml) : base(xml) { Points = xml .Element("Points") .Elements("Point") .Select(x => new Tuple <double, double>( Double.Parse(x.Attribute("X").Value), Double.Parse(x.Attribute("Y").Value))) .ToArray(); Thickness = Single.Parse(xml.Attribute("Thickness").Value); Type = (DrawingType)Enum.Parse(typeof(DrawingType), xml.Attribute("Type").Value); }
private void InitializeCreateData(DateTime?issueDateTime = null) { //3 fields from UI: RequiredTime, SubmitBy and Description if (DrawingType.Trim() == "Graphic") { TaskType = 501; RequestType = "job"; Status = 501; Responsible = (short)SpecDomain.BO.SpecConfiguration.GRAPHIC_DRAWING_EID; } else { TaskType = 551; RequestType = "job"; Status = 551; Responsible = (short)SpecDomain.BO.SpecConfiguration.STRUCTURAL_DRAWING_EID; } var est = _db.Sales_JobMasterList_EstRev.Find(EstRevID); JobID = est.JobID; var reqTitle = est.Sales_Dispatching_DrawingRequisition_Estimation.First(); Subject = reqTitle.Sales_Dispatching_DrawingReq_Purpose.dpName; if (issueDateTime == null) { SubmitTime = DateTime.Now; } else { SubmitTime = issueDateTime.Value; } LastUpdateTime = DateTime.Now; RequiredTime = MyConvert.ConvertToDate(FormatedRequiredTime); Rush = GetRush(); //No-Use QuoteRevID = 0; WoID = 0; InvoiceID = 0; Priority = 0; Importance = 0; OwnerFinish = false; ResponsibleFinish = false; IncompleteInfo = false; }
/// <summary> /// 构造函数 /// </summary> /// <param name="DataSheet">图表对应的数据工作表</param> /// <param name="DrawingChart">Excel图形所在的Chart对象</param> /// <param name="ParentApp">此图表所在的Excel类的实例对象</param> /// <param name="type">此图表所属的类型,由枚举drawingtype提供</param> /// <param name="CanRoll">是图表是否可以滚动,即是动态图还是静态图</param> /// <param name="Info">图表中用来显示相关信息的那个文本框对象</param> /// <param name="DrawingTag">每一个监测曲线图的相关信息</param> /// <param name="MonitorType">监测数据的类型,比如测斜数据、立柱垂直位移数据、支撑轴力数据等</param> /// <remarks></remarks> public ClsDrawing_Mnt_MaxMinDepth(Worksheet DataSheet, Chart DrawingChart, Cls_ExcelForMonitorDrawing ParentApp, DrawingType type, bool CanRoll, TextFrame2 Info, MonitorInfo DrawingTag, MntType MonitorType, double[] AllDate, DateMaxMinDepth Data) : base(DataSheet, DrawingChart, ParentApp, type, CanRoll, Info, DrawingTag, MonitorType, AllDate) { // ----------------------------------- // this.F_dicSeries = new Dictionary <Series, object[]>(); SeriesCollection Sc = DrawingChart.SeriesCollection(); this.F_dicSeries.Add(Sc.Item(1), Data.Max); this.F_dicSeries.Add(Sc.Item(2), Data.Min); this.F_dicSeries.Add(Sc.Item(3), Data.Depth_Max); this.F_dicSeries.Add(Sc.Item(4), Data.Depth_Min); }
public static string DefaultDrawing(DrawingType drawingType) { // TODO: not an ideal way to be doing this. Move to constants instead. if (drawingType == DrawingType.Generic) { return(Empty360by360); } else if (drawingIsBodyPart(drawingType)) { return(DefaultBodyPartDrawing); } else { return(Empty360by360); } }
public static DrawingType GetDrawingTypeByDrawingTypeId(Guid drawingTypeId) { DrawingType drawingType = null; string key = "DrawingTypes_GetDrawingTypeByDrawingTypeId_" + drawingTypeId; if (Cache[key] != null) { drawingType = (DrawingType)Cache[key]; } else { drawingType = DataAccess.DrawingTypes.GetDrawingTypeByDrawingTypeId(drawingTypeId); CacheData(key, drawingType); } return(drawingType); }
private IResultPainter ChooseResultPainter(DrawingType type) { return(type switch { DrawingType.Points => new PointResultPainter(), DrawingType.DisplacementVectors => new ArrowResultPainter(), DrawingType.DisplacementX => new InterpolateDisplacementdX(), DrawingType.DisplacementY => new InterpolateDisplacementdY(), DrawingType.StrainX => new InterpolateStrainX(), DrawingType.StrainY => new InterpolateStrainY(), DrawingType.StrainShear => new InterpolateStrainXY(), DrawingType.StressX => new InterpolateStressX(), DrawingType.StressY => new InterpolateStressY(), DrawingType.StressEq => new InterpolateStressEq(), _ => new EmptyResultPainter(), });
protected virtual UserFormSubmission MakeDrawing(LobbyPlayer player, DrawingType type) { if (type == DrawingType.Head) { return(CommonSubmissions.SubmitSingleDrawing(player.UserId, Constants.Drawings.Head)); } else if (type == DrawingType.Body) { return(CommonSubmissions.SubmitSingleDrawing(player.UserId, Constants.Drawings.Body)); } else if (type == DrawingType.Legs) { return(CommonSubmissions.SubmitSingleDrawing(player.UserId, Constants.Drawings.Legs)); } return(null); }
/// <summary> /// 构造函数 /// </summary> /// <param name="strFilePath">要打开的Visio文档的绝对路径</param> /// <param name="type">Visio平面图所属的绘图类型</param> /// <param name="PageName_PlanView">开挖平面图在Visio中的页面名称</param> /// <param name="ShapeID_AllRegions">所有分区的组合形状的ID值</param> /// <param name="InfoBoxID">记录开挖信息的文本框</param> /// <remarks></remarks> public ClsDrawing_PlanView(string strFilePath, DrawingType type, string PageName_PlanView, int ShapeID_AllRegions, int InfoBoxID, bool HasMonitorPointsInfo, MonitorPointsInformation MonitorPointsInfo) { //开挖平面图信息 this.F_PageName_PlanView = PageName_PlanView; this.F_ShapeID_AllRegions = ShapeID_AllRegions; this.F_InfoBoxID = InfoBoxID; //监测点位信息 this.P_HasMonitorPointsInfo = HasMonitorPointsInfo; this.P_MonitorPointsInfo = MonitorPointsInfo; // this.P_ShapeID_FinishedDate = GlobalApplication.Application.DataBase.ShapeIDAndFinishedDate; this.F_BackgroundWorker.WorkerReportsProgress = true; this.F_BackgroundWorker.WorkerSupportsCancellation = true; //开始绘图 if (!this.F_BackgroundWorker.IsBusy) { //在工作线程中执行绘图操作 this.F_BackgroundWorker.RunWorkerAsync(new[] { strFilePath, type }); } }
/// <summary> /// 构造函数 /// </summary> /// <param name="DataSheet">图表对应的数据工作表</param> /// <param name="DrawingChart">Excel图形所在的Chart对象</param> /// <param name="ParentApp">此图表所在的Excel类的实例对象</param> /// <param name="type">此图表所属的类型,由枚举drawingtype提供</param> /// <param name="CanRoll">是图表是否可以滚动,即是动态图还是静态图</param> /// <param name="DateSpan">此图表的TimeSpan跨度</param> /// <remarks></remarks> public clsDrawing_Mnt_RollingBase(Excel.Worksheet DataSheet, Excel.Chart DrawingChart, Cls_ExcelForMonitorDrawing ParentApp, DrawingType type, bool CanRoll, Excel.TextFrame2 Info, MonitorInfo DrawingTag, MntType MonitorType, DateSpan DateSpan, SeriesTag theFirstSeriesTag) : base(DataSheet, DrawingChart, ParentApp, type, CanRoll, Info, DrawingTag, MonitorType) { // VBConversions Note: Non-static class variable initialization is below. Class variables cannot be initially assigned non-static values in C#. F_Chart = this.Chart; // this.DateSpan = DateSpan; //刷新滚动窗口的列表框的界面显示 APPLICATION_MAINFORM.MainForm.Form_Rolling.OnRollingDrawingsRefreshed(); //启用主界面的程序滚动按钮 APPLICATION_MAINFORM.MainForm.MainUI_RollingObjectCreated(); //--------------------------- 设置与数据系列的曲线相关的属性值 clsDrawing_Mnt_RollingBase with_1 = this; //以数据列中第一个元素作为进行滚动的那个series with_1.MovingSeries = theFirstSeriesTag.series; // ----- 集合数据的记录 with_1.F_DicSeries_Tag.Add(cst_LboundOfSeriesInCollection, theFirstSeriesTag); //刚开始时,图表中只有一条数据曲线 with_1.F_CurvesCount = 1; // this.F_List_HasCurve.Clear(); this.F_List_HasCurve.Add(true); //第一个数据列是有曲线的,所以将其值设置为true Excel.SeriesCollection seriesColl = Chart.SeriesCollection() as Excel.SeriesCollection; for (var i = 1; i <= seriesColl.Count - 1; i++) { this.F_List_HasCurve.Add(false); } // -----对图例进行更新--------- LegendRefresh(F_List_HasCurve); }
/// <summary> /// 构造函数 /// </summary> /// <param name="DataSheet">图表对应的数据工作表</param> /// <param name="DrawingChart">Excel图形所在的Chart对象</param> /// <param name="ParentApp">此图表所在的Excel类的实例对象</param> /// <param name="DateSpan">此图表的TimeSpan跨度</param> /// <param name="CanRoll">是图表是否可以滚动,即是动态图还是静态图</param> /// <param name="Date_ChosenDatum">一个字典,其关键字为监测数据表中有数据的每一天的日期, /// 对应的值为当天每一个被选择的监测点的监测数据,监测数据只包含列表中选择了的监测点</param> /// <param name="Info">记录数据信息的文本框</param> /// <remarks></remarks> public ClsDrawing_Mnt_OtherDynamics(Worksheet DataSheet, Chart DrawingChart, Cls_ExcelForMonitorDrawing ParentApp, DateSpan DateSpan, DrawingType type, bool CanRoll, TextFrame2 Info, MonitorInfo DrawingTag, MntType MonitorType, Dictionary <DateTime, object[]> Date_ChosenDatum, clsDrawing_Mnt_RollingBase.SeriesTag SeriesTag) : base(DataSheet, DrawingChart, ParentApp, type, CanRoll, Info, DrawingTag, MonitorType, DateSpan, SeriesTag) { // ------------------------------------ //为进行滚动的那条数据曲线添加数据标签 //在数据点旁边显示数据值 this.MovingSeries.ApplyDataLabels(); //设置数据标签的格式 DataLabels dataLBs = this.MovingSeries.DataLabels(); dataLBs.NumberFormat = "0.00"; dataLBs.Format.TextFrame2.TextRange.Font.Size = 8; dataLBs.Format.TextFrame2.TextRange.Font.Fill.ForeColor.RGB = Information.RGB(0, 0, 0); dataLBs.Format.TextFrame2.TextRange.Font.Name = AMEApplication.FontName_TNR; P_dicDate_ChosenDatum = Date_ChosenDatum; //包括第一列,但是不包括第一行的日期。 // '' -----对图例进行更新--------- //Call LegendRefresh(Me.List_HasCurve) }
public void begin(String sectionName, DrawingType drawingType) { if (manualObjectMap.TryGetValue(sectionName, out currentManualObject)) { if (currentManualObject.getNumSections() != 0) { currentManualObject.beginUpdate(0); } else { currentManualObject.begin(currentMaterial, getOpType(drawingType)); } } else { currentManualObject = scene.createManualObject(sectionName + MANUAL_OBJECT_RESERVED_NAME); currentManualObject.setRenderQueueGroup((byte)RenderQueueGroupID.RENDER_QUEUE_OVERLAY); currentManualObject.setDynamic(true); sceneNode.attachObject(currentManualObject); currentManualObject.begin(currentMaterial, getOpType(drawingType)); manualObjectMap.Add(sectionName, currentManualObject); } }
private void DialogSubmitBeh(object sender, RoutedEventArgs e) { try { int sDiv = (int)Math.Round(((Slider)FindName("SubdivisionSlider")).Value); Size isz = new Size( double.Parse(((TextBox)FindName("SizeWidth")).Text), double.Parse(((TextBox)FindName("SizeHeight")).Text) ); DrawingType dt = ((ComboBox)FindName("DrawingTypeCB")).SelectedIndex == 0 ? DrawingType.ORTHOGRAPHIC : DrawingType.ISOMETRIC; Close(); OnDialogSubmit(new FileSettingsEventArgs() { size = isz, stepDivision = sDiv, type = dt }); } catch { MessageBox.Show("Please ensure that all values are valid.", "Error", MessageBoxButton.OK, MessageBoxImage.Exclamation); return; } }
//按下Ellipse工具列按鈕的動作 public void CLickEllipseToolStripMenuItem() { _shapeType = DrawingType.Ellipse; ChangeState(); }
/// <summary> /// Shows and enters the dialgoue state /// </summary> /// <param name="gameTime"></param> /// <param name="name"></param> /// <param name="dialogue"></param> public void ShowDialogue(Npc npc, string dialogue = "") { this.textOwner = npc; dialogueBox.CurrentLine = 1; parentState.currentState = GameplayState.State.Frozen; drawingType = DrawingType.Dialogue; dialogueBox.TextOwner = npc.Name; dialogueBox.Text = dialogue == "" ? npc.GetRandomDialogue() : dialogue; }
//按下Line工具列按鈕的動作 public void ClickLineToolStripMenuItem() { _shapeType = DrawingType.Line; ChangeState(); }
public void ClickLineToolStripMenuItem() //按下Line工具列按鈕的動作 { _shapeType = DrawingType.Line; ChangeState(); }
public void ClickPointerToolStripMenuItem() //按下Pointer工具列按鈕的動作 { _shapeType = DrawingType.Pointer; ChangeState(); }
public void CLickEllipseToolStripMenuItem() //按下Ellipse工具列按鈕的動作 { _shapeType = DrawingType.Ellipse; ChangeState(); }
private void ButtonJiantou_ItemClick(object sender, ItemClickEventArgs e) { _currentDrawingType = DrawingType.Arrow; ResetButtonStyle(); barButtonArrow.ButtonStyle = BarButtonStyle.Check; }
//按下Pointer工具列按鈕的動作 public void ClickPointerToolStripMenuItem() { _shapeType = DrawingType.Pointer; ChangeState(); }
//按下Rectangle工具列按鈕的動作 public void ClickRectangleToolStripMenuItem() { _shapeType = DrawingType.Rectangle; ChangeState(); }
private void LineButton_ItemClick(object sender, ItemClickEventArgs e) { _currentDrawingType = DrawingType.Line; ResetButtonStyle(); barButtonLine.ButtonStyle = BarButtonStyle.Check; }
private static bool drawingIsBodyPart(DrawingType drawingType) { return(drawingType == DrawingType.Head || drawingType == DrawingType.Body || drawingType == DrawingType.Legs); }
private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e) { _currentDrawingType = DrawingType.Polygon; ResetButtonStyle(); barButtonPolygon.ButtonStyle = BarButtonStyle.Check; currentMyPoly = new MyPoly() { MyPen = (Pen)(mypen.Clone()) }; }
private void ButtonRect_ItemClick(object sender, ItemClickEventArgs e) { _currentDrawingType = DrawingType.Rect; ResetButtonStyle(); barButtonRect.ButtonStyle = BarButtonStyle.Check; }