<div dir="ltr">Your opengl driver tells VTK how wide of a line it can draw via something like<div><br></div><div><div>      glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE,lineWidthRange);</div><div>      if (glGetError() == GL_NO_ERROR)</div><div>        {</div><div>        this->MaximumHardwareLineWidth = lineWidthRange[1];</div><div>        }</div><div><br></div><div>If your driver says it can handle lines up to 7.5 then VTK let's your driver handle it. When you request a line greater than what your driver says it can handle, VTK handles it itself. That is why you could see a sudden discontinuity in line sizes. If your driver reports it can do wide lines when in fact it doesn't you would see the behavior you described. hence my suggestion on how to test for that.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 23, 2016 at 9:38 PM, Liu_tj <span dir="ltr"><<a href="mailto:tjlp@netease.com" target="_blank">tjlp@netease.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Correct some information. My computer runs on Windows 7. OpenGL is 3.3. Renderer is Intel(R) HD Graphics 4000.<br><div><br><br></div>
 <span>
 </span>
<br>      在2016-08-24,"Liu_tj" <<a href="mailto:tjlp@netease.com" target="_blank">tjlp@netease.com</a>> 写道:
        <blockquote style="padding-left:1ex;margin:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid">
        -----原始邮件-----<br>
        <b>发件人:</b>"Liu_tj" <<a href="mailto:tjlp@netease.com" target="_blank">tjlp@netease.com</a>> <br>
        <b>发送时间:</b>2016年08月24日 星期三<br>
        <b>收件人:</b>"Ken Martin" <<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>><br>
        <b>抄送:</b>"vtkusers" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
        <b>主题:</b>Re: [vtkusers] How to tune the line with of vtkProperty2D<br>
<br>Hi, Ken,<br><br>What do you mean "your hardware is saying it can draw wide lines up to 7.5 pixels"? From my attachment, the effect of 8.0f is greatly wider than 7.5f. I am using VTK 7 with OpenGL2.<br><div><br>Thanks<br><br></div>
 <span>
 </span>
<br>      在2016-08-24,"Ken Martin" <<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>> 写道:
        <blockquote style="padding-left:1ex;margin:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid">
        -----原始邮件-----<br>
        <b>发件人:</b>"Ken Martin" <<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>> <br>
        <b>发送时间:</b>2016年08月24日 星期三<br>
        <b>收件人:</b>"Liu_tj" <<a href="mailto:tjlp@netease.com" target="_blank">tjlp@netease.com</a>><br>
        <b>抄送:</b>"vtkusers" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
        <b>主题:</b>Re: [vtkusers] How to tune the line with of vtkProperty2D<br>
<br><div dir="ltr">It sounds like an openGL driver issue.  What version of VTK are you using and is it built with the OPenGL1 or OpenGL2 backend? What GPU is on the system you are using? <div><br></div><div>Assuming you are using a recent VTK with OpenGL2 backend my guess is that your hardware is saying it can draw wide lines up to 7.5 pixels (though it seems not to), beyond that VTK is having to render the wide lines itself. That would be my guess. If you are using a recent VTK with the OPenGL2 backend you can test this by modifying the HaveWideLines method in Rendering/OpenGL2/<wbr>vtgkOpenGLPolyDataMapper2D.cxx</div><div><br></div><div>change</div><div><br></div><div><div>    return !(renWin &&</div><div>      renWin-><wbr>GetMaximumHardwareLineWidth() >= actor->GetProperty()-><wbr>GetLineWidth());</div></div><div><br></div><div>to</div><div><br></div><div><div>    return true;</div><div><br></div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 22, 2016 at 9:10 PM, Liu_tj <span dir="ltr"><<a href="mailto:tjlp@netease.com" target="_blank">tjlp@netease.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi,<br><br>I use vtkAngleWidget to measure angle. I want to tune the line width of the angle leaders and arc. Below is my C# code:<br><br>            m_angleWidget = vtkAngleWidget.New();<br>            m_angleWidget.SetInteractor(m_<wbr>renderWin.GetInteractor());<br>            m_angleWidget.PlacePointEvt += new vtkObject.vtkObjectEventHandle<wbr>r(AngleWidget_PlacePointEvt);<br>            m_angleRep = vtkAngleRepresentation2D.New()<wbr>;<br>            m_angleRep.GetRay1().GetProper<wbr>ty().SetColor(0.0, 1.0, 0.0);<br>            m_angleRep.GetRay1().GetProper<wbr>ty().SetLineWidth(8.0f);<br>            m_angleRep.GetRay2().GetProper<wbr>ty().SetColor(0.0, 1.0, 0.0);<br>            m_angleRep.GetRay2().GetProper<wbr>ty().SetLineWidth(8.0f);<br>            m_angleRep.GetArc().GetPropert<wbr>y().SetColor(0.0, 1.0, 0.0);<br>            m_angleRep.GetArc().GetPropert<wbr>y().SetLineWidth(8.0f);<br>            m_angleRep.GetArc().GetLabelTe<wbr>xtProperty().SetColor(0.0, 0.0, 1.0);<br>            m_angleWidget.SetRepresentatio<wbr>n(m_angleRep);<br><br>If
 I call SetLineWidth with 5.0f, 6.0f, 7.0f and 7.5f, I get the same effect as 
1.jpg; if I call SetLineWidth with 8.0f, the effect is as 2.jpg. For me,
 the line in 1.jpg is too slim, the line in 2.jpg is too wide, how to 
tune it?<br><br>Thanks<br>Liu Peng<br><br></div><br><br><span title="neteasefooter"><p> </p></span><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br><a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee.  Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message. 
Thank you.</span></div></div></div>
</div>
</blockquote><br><br><span title="neteasefooter"><p> </p></span></blockquote><br><br><span title="neteasefooter"><p> </p></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee.  Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message. 
Thank you.</span></div></div></div>
</div>