Yes<br><br><div class="gmail_quote">On Wed, Oct 20, 2010 at 3:03 AM, shengwen guo <span dir="ltr">&lt;<a href="mailto:shengwen.guo@gmail.com">shengwen.guo@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
There is an error when I use the command:<div>     PolyData = ((*vtkOrientedGlyphContourRepresentation)(ContourWidget-&gt;GetRepresentation()))-&gt;GetContourRepresentationAsPolyData();</div><div>     Error Message:</div>
<div>
      error C2275: “vtkOrientedGlyphContourRepresentation”: Invalid ......</div><div>     It seems that it can&#39;t support to change class vtkWidgetRepresentation to class vtkOrientedGlyphContourRepresentation because ContourWidget-&gt;GetRepresentation() returns a vtkWidgetRepresentation object which is the parent class of class vtkOrientedGlyphContourRepresentation. Does it work in Java if you use the command <span style="font-family:Arial;font-size:13px">vtkPolyData polyData =</span></div>



<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US" style="font-size:10.0pt;font-family:Arial;color:black">    ((vtkOrientedGlyphContourRepresentation)contour.GetRepresentation()).</span><span style="font-family:Arial;font-size:13px">GetContourRepresentationAsPolyData();</span>?</p>
<p class="MsoNormal" align="left" style="text-align:left">
<br></p><p class="MsoNormal" align="left" style="text-align:left">    Thanks</p><p class="MsoNormal" align="left" style="text-align:left">    </p><p class="MsoNormal" align="left" style="text-align:left">
<br></p><p class="MsoNormal" align="left" style="text-align:left">     </p><div><div> </div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><br></div></blockquote></div></div></div></blockquote></div></div></div></div></blockquote></div></div></div></blockquote></div></div></div></blockquote></div>
</div>
</blockquote></div><br>