[vtkusers] How to change properties of vtkContourWidget object?

igorznt igorznt at gmail.com
Wed May 26 17:54:22 EDT 2010


This may help you:

contour = vtk.vtkContourWidget()
representation = vtk.vtkOrientedGlyphContourRepresentation()
contour.SetRepresentation(representation)

#Changing line color
representation.GetLinesProperty().SetColor(0,0,1)

#Changing points color
representation.GetProperty().SetColor(0,1, 0)



Rakesh Patil wrote:
> 
> Hi vtkusersIs there any way to change the color and visibility of the
> vtkContourWidget Object..??ThanksRegardsRakesh PatilDear VTK ! Get
> Yourself a cool, short @in.com Email ID now!
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 

-- 
View this message in context: http://old.nabble.com/How-to-change-properties-of-vtkContourWidget-object--tp28555410p28686994.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list