<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Or can I talk
to the textActor like this?<br>
<br>
<font color="#ff0000" face="Courier New, Courier, monospace">&nbsp;&nbsp;&nbsp;
vtkTextActor *ta = reinterpret_cast&lt;vtkTextActor*&gt;(caller);<br>
&nbsp;&nbsp;&nbsp; ta-&gt;SetInput("TEST");</font><br>
<br>
or like this?<br>
<br>
<font color="#ff0000" face="Courier New, Courier, monospace">&nbsp;&nbsp;
this-&gt;TextActor-&gt;SetInput("TEST");</font><br>
<br>
No, does not work either way.<br>
<br>
<br>
</font></font><br>
Am 12.03.2010 12:56, schrieb Sebastian Gatzka:
<blockquote cite="mid:4B9A2BE6.90401@stud.tu-darmstadt.de" type="cite">
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <font size="-1"><font face="Helvetica, Arial, sans-serif">Ok. Maybe
you
want can help me if you see something like this:<br>
  <br>
  <font face="Courier New, Courier, monospace">// Callback for the
interaction<br>
// This does the actual work: updates the vtkPlane implicit function.<br>
// This in turn causes the pipeline to update and clip the object.<br>
class vtkIPWCallback : public vtkCommand<br>
{<br>
public:<br>
&nbsp; static vtkIPWCallback *New() <br>
&nbsp;&nbsp;&nbsp; { return new vtkIPWCallback; }<br>
&nbsp; virtual void Execute(vtkObject *caller, unsigned long, void*)<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; vtkImplicitPlaneWidget2 *planeWidget = <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reinterpret_cast&lt;vtkImplicitPlaneWidget2*&gt;(caller);<br>
&nbsp;&nbsp;&nbsp; vtkImplicitPlaneRepresentation *rep = <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
reinterpret_cast&lt;vtkImplicitPlaneRepresentation*&gt;(planeWidget-&gt;GetRepresentation());<br>
&nbsp;&nbsp;&nbsp; rep-&gt;GetPlane(this-&gt;Plane);<br>
&nbsp;&nbsp;&nbsp; TextActor-&gt;SetInput("Test");<br>
&nbsp;&nbsp;&nbsp; vtkTextActor *ta =
reinterpret_cast&lt;vtkTextActor*&gt;(TextActor-&gt;GetInput());<br>
&nbsp;&nbsp;&nbsp; ta-&gt;SetInput("Test 111111");<br>
&nbsp;&nbsp;&nbsp; //TextActor-&gt;GetInput(this-&gt;TextActor);<br>
&nbsp;&nbsp;&nbsp; }<br>
  <br>
&nbsp; vtkIPWCallback():Plane(0),Actor(0),TextActor(0) {}<br>
  <br>
&nbsp; vtkPlane *Plane;<br>
&nbsp; vtkActor *Actor;<br>
&nbsp; vtkTextActor *TextActor;<br>
&nbsp;};</font><br>
  <br>
I have no idea what I was doing. As a matter of fact the textActor
didn't change.<br>
  </font></font><br>
Am 10.03.2010 15:30, schrieb David Doria:
  <blockquote
 cite="mid:c19fcadc1003100630m3150269dw6e5394ec931f14ad@mail.gmail.com"
 type="cite">
    <div class="gmail_quote">On Wed, Mar 10, 2010 at 6:04 AM, Sebastian
Gatzka <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:sebastian.gatzka@stud.tu-darmstadt.de">sebastian.gatzka@stud.tu-darmstadt.de</a>&gt;</span>
wrote:<br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <div bgcolor="#ffffff" text="#000000"><font size="-1"><font
 face="Helvetica, Arial, sans-serif"><br>
Sorry, this is not enough information.<br>
      <br>
How and where do I have to do things to the textActor?!<br>
I'm not getting the syntax with reinterpret_cast and this and eveything.<br>
Sorry ...<br>
      <br>
I tried something from withing this Execute thing but everything just
resulted in errors...<br>
      </font></font></div>
      <div bgcolor="#ffffff" text="#000000"><font size="-1"><font
 face="Helvetica, Arial, sans-serif"><br>
      </font></font></div>
    </blockquote>
    <div>&nbsp;</div>
Please post the smallest compilable example code which demonstrates the
error.</div>
    <div class="gmail_quote"><br clear="all">
Thanks,<br>
    <br>
    <div>David&nbsp;</div>
    </div>
    <br>
  </blockquote>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
  </pre>
</blockquote>
</body>
</html>