<meta http-equiv="Content-Type" content="text/html charset=us-ascii">Maybe, you can use the below code. However, customization is necessary for your taste.<div><div><br></div><div><div><span class="Apple-tab-span" style="white-space: pre;">                </span>vtkTextProperty tprop = new vtkTextProperty();</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>tprop.SetColor(1, 1, 1);</div><div><span class="Apple-tab-span" style="white-space:pre">             </span>tprop.ShadowOn();</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">           </span>vtkCubeAxesActor2D axes = new vtkCubeAxesActor2D();</div><div><span class="Apple-tab-span" style="white-space:pre">          </span>axes.SetInputConnection(merge.GetOutputPort());</div><div><span class="Apple-tab-span" style="white-space:pre">              </span>axes.SetCamera(renWin.GetRenderer().GetActiveCamera());</div><div><span class="Apple-tab-span" style="white-space:pre">              </span>axes.SetLabelFormat("%6.4g");</div><div><span class="Apple-tab-span" style="white-space:pre">              </span>axes.SetFlyModeToOuterEdges();</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>axes.SetFontFactor(0.8);</div><div><span class="Apple-tab-span" style="white-space:pre">             </span>axes.SetAxisTitleTextProperty(tprop);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>axes.SetAxisLabelTextProperty(tprop);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>renWin.GetRenderer().AddViewProp(axes);</div></div><div><br></div><div>Cheers,</div><div>HongKee</div><div><b><br></b></div><div><br><div><div>On Aug 19, 2014, at 2:47 PM, flaviu2 [via VTK] <<a href="/user/SendEmail.jtp?type=node&node=5728284&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' type="cite">

        There is in VTK some class that can render an scale bar line, like in attached image ?
<br><a href="http://vtk.1045678.n5.nabble.com/file/n5728279/Untitled-1.jpg" target="_top" rel="nofollow" link="external">Untitled-1.jpg</a><br>Which one ?
<br>

        
        
        
        <br>
        <br>
        <hr noshade="noshade" size="1">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://vtk.1045678.n5.nabble.com/VTK-class-for-scale-bar-line-tp5728279.html" target="_top" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/VTK-class-for-scale-bar-line-tp5728279.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                To start a new topic under VTK - Users, email <a href="/user/SendEmail.jtp?type=node&node=5728284&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
                To unsubscribe from VTK, <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a>
        </div></blockquote></div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><div><br class="Apple-interchange-newline">--</div><div>HongKee Moon</div><div>Software Engineer</div><div>Scientific Computing Facility</div><div><br></div><div>Max Planck Institute of Molecular Cell Biology and Genetics</div><div>Pfotenhauerstr. 108</div><div>01307 Dresden</div><div>Germany</div><div><br></div><div>fon: +49 351 210 2740</div><div>fax: +49 351 210 1689</div><div><a href="http://www.mpi-cbg.de" target="_top" rel="nofollow" link="external">www.mpi-cbg.de</a></div></span></div></span></div></span></div></span></div></span></div></div>
</div>
<br></div></div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VTK-class-for-scale-bar-line-tp5728279p5728284.html">Re: VTK class for scale bar line ?</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>