<div dir="ltr">I tested without<br><br> self.renWinInteract = vtkTkRenderWindowInteractor(parent,rw=self.renWin, width=visWidth, height=visHeight)<div id=":7k">
      <br>
   self.renWinInteract.pack(side=visSide, fill=&#39;both&#39;, expand=1)<br><br>and it works well.<br><br>Jothy<br></div><br><br><div class="gmail_quote">On Fri, Oct 22, 2010 at 4:29 PM, aneuryzma <span dir="ltr">&lt;<a href="mailto:patrick.diviacco@gmail.com">patrick.diviacco@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
This is my pipeline<br>
<br>
        self.ren = vtk.vtkRenderer()<br>
        self.renWin = vtk.vtkRenderWindow()<br>
<br>
        self.v16 = vtk.vtkVolume16Reader()<br>
        self.v16.SetDataDimensions(256, 256)<br>
        self.v16.SetDataByteOrderToLittleEndian()<br>
        self.v16.SetFilePrefix(&quot;C:/vtk/vtkdata/fullHead/headsq&quot;)<br>
        self.v16.SetImageRange(1, 93)<br>
        self.v16.SetDataSpacing(0.8, 0.8, 1.5)<br>
        self.v16.Update()<br>
<br>
        self.contour = vtk.vtkContourFilter()<br>
        self.contour.SetInputConnection(self.v16.GetOutputPort())<br>
        self.contour.SetValue(0, 1150)<br>
<br>
        self.normals = vtk.vtkPolyDataNormals()<br>
        self.normals.SetInputConnection(self.contour.GetOutputPort())<br>
        self.normals.SetFeatureAngle(60.0)<br>
<br>
        self.stripper = vtk.vtkStripper()<br>
        self.stripper.SetInputConnection(self.normals.GetOutputPort())<br>
<br>
        self.mapper = vtk.vtkPolyDataMapper()<br>
        self.mapper.SetInputConnection(self.stripper.GetOutputPort())<br>
        self.mapper.ScalarVisibilityOff()<br>
<br>
        self.headActor = vtk.vtkActor()<br>
        self.headActor.GetProperty().SetColor(1,1,1)<br>
        self.headActor.SetMapper(self.mapper)<br>
<br>
        self.mass = vtk.vtkMassProperties()<br>
        self.mass.SetInputConnection(self.contour.GetOutputPort())<br>
        #mass.Update()<br>
<br>
        self.renWinInteract = vtkTkRenderWindowInteractor(parent,<br>
rw=self.renWin, width=visWidth, height=visHeight)<br>
        self.renWinInteract.Initialize()<br>
        self.renWinInteract.pack(side=visSide, fill=&#39;both&#39;, expand=1)<br>
        self.renWinInteract.Start()<br>
<br>
        self.ren.AddActor(self.headActor)<br>
        self.renWin.AddRenderer(self.ren)<br>
        self.renWin.Render()<br>
<font color="#888888">--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/self-headActor-GetProperty-SetColor-R-G-B-tp3232393p3232448.html" target="_blank">http://vtk.1045678.n5.nabble.com/self-headActor-GetProperty-SetColor-R-G-B-tp3232393p3232448.html</a><br>

</font><div><div></div><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>