Exemplo n.º 1
0
 internal ILTexMarkerShape (ILPanel panel, string expression) 
     :base (panel) {
     m_expression = expression; 
     m_interpreter = new ILSimpleTexInterpreter(); 
     m_font = new Font(FontFamily.GenericSansSerif,10.0f); 
     m_maxLabelsDrawn = 50; 
     m_valueFormat = "f"; 
     m_renderer = panel.TextRendererManager.GetDefault(CoordSystem.World3D); 
 }
Exemplo n.º 2
0
 internal ILTexMarkerShape(ILPanel panel, string expression)
     : base(panel)
 {
     m_expression     = expression;
     m_interpreter    = new ILSimpleTexInterpreter();
     m_font           = new Font(FontFamily.GenericSansSerif, 10.0f);
     m_maxLabelsDrawn = 50;
     m_valueFormat    = "f";
     m_renderer       = panel.TextRendererManager.GetDefault(CoordSystem.World3D);
 }
Exemplo n.º 3
0
 /// <summary>
 /// [abstract] Create a new labeling element
 /// </summary>
 /// <param name="panel">panel hosting the element</param>
 /// <param name="font">default font for the element</param>
 /// <param name="color">default color for the element</param>
 /// <param name="coordSystem">world / screen rendering method</param>
 public ILLabelingElement(ILPanel panel, Font font, Color color, CoordSystem coordSystem)
 {
     if (font != null)
     {
         m_font = font;
     }
     else
     {
         m_font = new System.Drawing.Font(
             System.Drawing.FontFamily.GenericSansSerif, 10.0f);
     }
     m_color       = color;
     m_orientation = TextOrientation.Horizontal;
     m_renderQueue = null;
     m_size        = Size.Empty;
     m_expression  = string.Empty;
     // init interpreter & renderer
     m_renderer = panel.TextRendererManager.GetDefault(coordSystem);
     m_renderer.CacheCleared += new EventHandler(m_renderer_CacheCleared);
     m_interpreter            = new ILSimpleTexInterpreter();
 }
Exemplo n.º 4
0
 /// <summary>
 /// [abstract] Create a new labeling element 
 /// </summary>
 /// <param name="panel">panel hosting the element</param>
 /// <param name="font">default font for the element</param>
 /// <param name="color">default color for the element</param>
 /// <param name="coordSystem">world / screen rendering method</param>
 public ILLabelingElement (ILPanel panel, Font font, Color color, CoordSystem coordSystem) {
     if (font != null) {
         m_font = font; 
     } else {
         m_font = new System.Drawing.Font(
             System.Drawing.FontFamily.GenericSansSerif,10.0f);
     }
     m_color = color; 
     m_orientation = TextOrientation.Horizontal; 
     m_renderQueue = null; 
     m_size = Size.Empty; 
     m_expression = string.Empty; 
     // init interpreter & renderer
     m_renderer = panel.TextRendererManager.GetDefault(coordSystem);
     m_renderer.CacheCleared += new EventHandler(m_renderer_CacheCleared);
     m_interpreter = new ILSimpleTexInterpreter(); 
 }