<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-9">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#010001 size=2>Thanks for your help. I dont have
<FONT face="Times New Roman" color=#000000 size=3>vtkLabelPlacementMapper class
in vtk 5.4.2. I am using vtkLabelPlacer and i couldnt find something similar
to</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT face="Times New Roman">UseDepthBufferOn in
vtkLabelPlacer. When i compile with vtk_use_qt, i cant wrap some classes and
methods (i am use .net wrapper for vtk).</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Kind Regards,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>murat</FONT></DIV>
<DIV><FONT color=#2b91af size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jeff.baumes@kitware.com href="mailto:jeff.baumes@kitware.com">Jeff
Baumes</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=murat.aydin@netcad.com.tr
href="mailto:murat.aydin@netcad.com.tr">Murat Aydın</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, November 10, 2009 3:58
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] hiding far
labels</DIV>
<DIV><BR></DIV>
<DIV class=gmail_quote>2009/11/9 Murat Aydın <SPAN dir=ltr><<A
href="mailto:murat.aydin@netcad.com.tr">murat.aydin@netcad.com.tr</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am trying this example : </FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Rendering/Testing/Cxx/TestLabelPlacerCoincidentPoints.cxx?root=VTK&content-type=text/plain"
target=_blank>http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Rendering/Testing/Cxx/TestLabelPlacerCoincidentPoints.cxx?root=VTK&content-type=text/plain</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>How can i hide far labels ? There are many
labels and its hard to understand which label belongs to which
object.</FONT></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>You can hide labels that are behind other objects with
UseDepthBufferOn(). There is no explicit way to turn off far labels, except
that the labeler should automatically try to place labels close to the camera
first, so far labels should be less frequent.</DIV>
<DIV> </DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Whats <FONT color=#010001
size=2>MaximumLabelFraction of
vtkLabelPlacer?</FONT></FONT></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>Maximum amount of screen space labels can take up before placement stops.
I've checked in a documentation fix.</DIV>
<DIV> </DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Another question is how can i display labels
vertical. i set <A
href="http://www.vtk.org/doc/release/5.4/html/a00946.html#600e4ccbee722ea6f9cef987f00ca8f2"
target=_blank><FONT face="Times New Roman"
size=3>LabelGravity</FONT></A> to
<TABLE>
<TBODY>
<TR>
<TD vAlign=top noWrap align=right><FONT size=3><FONT
face="Times New Roman"> </FONT></FONT><FONT
face="Times New Roman" size=3> </FONT><A
href="http://www.vtk.org/doc/release/5.4/html/a00946.html#600e4ccbee722ea6f9cef987f00ca8f2cfff75b45bba92e2b39cc53393286523"
target=_blank><FONT face="Times New Roman"
size=3>VerticalBottomBit</FONT></A><FONT face="Times New Roman"
size=3> , </FONT><A
href="http://www.vtk.org/doc/release/5.4/html/a00946.html#600e4ccbee722ea6f9cef987f00ca8f2e25d04518fe567930c48b685522e6113"
target=_blank><FONT face="Times New Roman"
size=3>VerticalBaselineBit</FONT></A><FONT size=3><FONT
face="Times New Roman"></FONT></FONT></TD></TR></TBODY></TABLE></FONT>
but labels are not displayed vertical.</DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>These flags just adjust the where the text is vertically aligned, not the
rotation. The default text rendering strategy (freetype) does not support
nicely rotated text. To get rotated text labels, you would need:</DIV>
<DIV><BR></DIV>
<DIV>1. Compile VTK with VTK_USE_QT.</DIV>
<DIV>2. Use vtkLabelPlacementMapper instead of vtkLabelPlacer (it has similar
API but a few more features).</DIV>
<DIV>3. Set the label rendering strategy to an instance of
vtkQtLabelRenderStrategy.</DIV>
<DIV>4. Set the orientation of the text property in
vtkPointSetToLabelHierarchy to the angle you desire (e.g. 90.0).</DIV>
<DIV><BR></DIV>
<DIV>Most of this code to do this is in</DIV>
<DIV>Views/Testing/Cxx/TestQtLabelStrategy.cxx</DIV>
<DIV><BR></DIV>
<DIV>Jeff</DIV></DIV></BLOCKQUOTE></BODY></HTML>