[vtkusers] vtkContourWidget initial state of representation

Dean Inglis dean.inglis at camris.ca
Fri Jan 26 16:23:05 EST 2007


I am scratching my head over how
to get this to work: 
vtkOrientedGlyphContourRepresentation has
a public method to define itself from
user supplied polydata.  The problem is
that if you define a contour before interacting
with the widget, it appears that you have
to add a point or click one of the nodes
to change the widget's initial internal 
state from Start to Manipulate.  Since
the widget's ivar WidgetState is protected,
and vtkContourRepresentation is not a friend
class, there is no way (I think) to programatically
force the widget into the desired Manipulate state.
The use scenario here is that there is a popup
display with an image and a contour defined by
a previous segmentation step, and the user
needs to edit this pre-existing contour.
Anyone know a workaround?

Dean



More information about the vtkusers mailing list