/* * In this function, first need to build the color table, * and then add the text */ public void VTKInfoBuilder(ref vtkActor2D actor) { vtkActor2D colorTextActor = new vtkActor2D(); vtkTextMapper colorText = new vtkTextMapper(); colorTextActor.SetMapper(colorText); //Generate the string: string outPutChartString = ""; outPutChartString += "[Model Details]\n"; outPutChartString += "Phase: " + WorkSpaceInstance.Env.GetModelGeneratingPhase() + "\n"; outPutChartString += "ModelType: " + WorkSpaceInstance.Env.GetModelTypeString() + "\n"; outPutChartString += "Model Name: " + WorkSpaceInstance.Env.GetCurrentTowerModelName() + "\n"; outPutChartString += "\n"; outPutChartString += "Min: " + TowerModelInstance.GetColorGenColorTableMinvalue().ToString() + " Max: " + TowerModelInstance.GetColorGenColorTableMaxValue().ToString() + "\n"; colorText.SetInput(outPutChartString); colorText.GetTextProperty().SetFontSize(12); colorText.GetTextProperty().SetFontFamilyToArial(); //colorText.GetTextProperty().SetColor(225, 39, 39); colorTextActor.SetDisplayPosition(20, 50); actor = colorTextActor; }