private void AddNote() { VIZCore3D.NET.Data.NoteStyle style = vizcore3d.Review.Note.GetStyle(); List <string> keys = Blocks.Keys.ToList(); for (int i = 0; i < keys.Count; i++) { VIZCore3D.NET.Data.Node node = Blocks[keys[i]]; VIZCore3D.NET.Data.Object3DProperty prop = vizcore3d.Object3D.GeometryProperty.FromIndex(node.Index); vizcore3d.Review.Note.AddNote3D(node.NodeName, prop.CenterPoint); } }
private VIZCore3D.NET.Data.NoteStyle GetStyle() { VIZCore3D.NET.Data.NoteStyle style = vizcore3d.Review.Note.GetStyle(); if (ckSymbol.Checked == true) { style.UseSymbol = true; style.SymbolText = vizcore3d.Review.Note.Items.Count.ToString(); style.SymbolBackgroundColor = Color.Red; style.SymbolFontColor = Color.Yellow; } style.LineColor = Color.Black; return(style); }
private void btnShowString_Click(object sender, EventArgs e) { VIZCore3D.NET.Data.NoteStyle style = vizcore3d.Review.Note.GetStyle(); style.BackgroundColor = Color.Yellow; style.BackgroudTransparent = true; style.FontColor = Color.Black; style.FontSize = VIZCore3D.NET.Data.FontSizeKind.SIZE16; style.FontBold = true; style.LineColor = Color.White; style.LineWidth = 2; style.LinkArrowTailToText = VIZCore3D.NET.Manager.NoteManager.LinkArrowTailToTextKind.OUTLINE; style.ArrowColor = Color.Red; style.ArrowWidth = 10; style.TextBoxLineColor = Color.Black; vizcore3d.Review.Note.SetStyle(style); vizcore3d.GenericData.ShowStringData(true); }
private void HighlightCenter(List <VIZCore3D.NET.Data.CircleData> items) { VIZCore3D.NET.Data.NoteStyle style = vizcore3d.Review.Note.GetStyle(); vizcore3d.BeginUpdate(); if (ckClearReview.Checked == true) { vizcore3d.Review.Note.Clear(); } foreach (VIZCore3D.NET.Data.CircleData item in items) { VIZCore3D.NET.Data.Vertex3D vNote = item.Center.Clone(); vNote.Z += 400.0f; vizcore3d.Review.Note.AddNoteSurface(string.Format("INDEX : {0}\r\nDiameter : {1}\r\nCenter : {2}", item.Index, item.Diameter, item.Center.ToString()), vNote, item.Center); } vizcore3d.EndUpdate(); }