Ejemplo n.º 1
0
 /// <summary>
 /// (internal use)
 /// </summary>
 /// <param name="p">render properties</param>
 /// <param name="center">center position for the label</param>
 public void Draw(ILRenderProperties p, ILPoint3Df center)
 {
     if (!String.IsNullOrEmpty(Text))
     {
         if (m_expression != m_cachedExpression)
         {
             interprete(m_expression);
         }
         double[] modelview = null;
         m_renderer.Begin(p, ref modelview);
         Point dest = m_panel.World2Screen(center, modelview);
         offsetAlignment(m_size, ref dest);
         if (m_fringeColor.IsEmpty)
         {
             m_renderer.Draw(m_renderQueue, dest, TextOrientation.Horizontal, m_color);
         }
         else
         {
             drawFringed(m_renderer, m_renderQueue, dest, TextOrientation.Horizontal, m_color);
         }
         m_renderer.End(p);
     }
 }