<div class="gmail_quote">On Mon, Mar 15, 2010 at 9:18 AM, Sebastian Gatzka <span dir="ltr">&lt;<a href="mailto:sebastian.gatzka@stud.tu-darmstadt.de">sebastian.gatzka@stud.tu-darmstadt.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



  

<div bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Check.
Everything is allready there.<br>
<br>
In main:<br>
<br>
<font face="Courier New, Courier, monospace">KeyPressInteractorStyle
*kpis = KeyPressInteractorStyle::New();<br>
kpis-&gt;planeWidget = iPlane;</font><br>
<br>
while <font face="Courier New, Courier, monospace">iPlane </font>is
the interactivePlaneWidget2.<br>
<br>
And the <font face="Courier New, Courier, monospace">class </font>looks
like the one below, but still the line<br>
<br>
</font></font><font size="-1"><font face="Helvetica, Arial, sans-serif"><font face="Courier New, Courier, monospace">vtkImplicitPlaneRepresentation*
rep = <font color="#ff0000"><b>planeWidget</b></font>-&gt;GetRepresentation();<br>
<br>
<font face="Helvetica, Arial, sans-serif">can&#39;t be interpreted: <br>
<br>
</font>error C2440: &#39;initializing&#39; : cannot convert from
&#39;vtkWidgetRepresentation *&#39; to &#39;vtkImplicitPlaneRepresentation *&#39;<br>
</font></font></font></div><div bgcolor="#ffffff" text="#000000"><font size="-1"><font face="Helvetica, Arial, sans-serif"><font face="Courier New, Courier, monospace"><br></font></font></font></div></blockquote><div class="gmail_quote">
<br></div>That looks like you&#39;d need to do:</div><div class="gmail_quote"><br></div><div class="gmail_quote"><span class="Apple-style-span" style="font-family: &#39;Courier New&#39;, Courier, monospace; ">vtkImplicitPlaneRepresentation* rep = static_cast&lt;vtkImplicitPlaneRepresentation*&gt;(<font color="#ff0000"><b>planeWidget</b></font>-&gt;GetRepresentation());</span></div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div class="gmail_quote"><font class="Apple-style-span" face="&#39;Courier New&#39;, Courier, monospace"><br clear="all"></font>Thanks,<br><br>David</div>