<!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">
vtkTextActor *ta = reinterpret_cast<vtkTextActor*>(caller);<br>
ta->SetInput("TEST");</font><br>
<br>
or like this?<br>
<br>
<font color="#ff0000" face="Courier New, Courier, monospace">
this->TextActor->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>
static vtkIPWCallback *New() <br>
{ return new vtkIPWCallback; }<br>
virtual void Execute(vtkObject *caller, unsigned long, void*)<br>
{<br>
vtkImplicitPlaneWidget2 *planeWidget = <br>
reinterpret_cast<vtkImplicitPlaneWidget2*>(caller);<br>
vtkImplicitPlaneRepresentation *rep = <br>
reinterpret_cast<vtkImplicitPlaneRepresentation*>(planeWidget->GetRepresentation());<br>
rep->GetPlane(this->Plane);<br>
TextActor->SetInput("Test");<br>
vtkTextActor *ta =
reinterpret_cast<vtkTextActor*>(TextActor->GetInput());<br>
ta->SetInput("Test 111111");<br>
//TextActor->GetInput(this->TextActor);<br>
}<br>
<br>
vtkIPWCallback():Plane(0),Actor(0),TextActor(0) {}<br>
<br>
vtkPlane *Plane;<br>
vtkActor *Actor;<br>
vtkTextActor *TextActor;<br>
};</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"><<a moz-do-not-send="true"
href="mailto:sebastian.gatzka@stud.tu-darmstadt.de">sebastian.gatzka@stud.tu-darmstadt.de</a>></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> </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 </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>