[vtk-developers] HOW DO YOU ... aggregate vtk Widget
Dean Inglis
dean.inglis at sympatico.ca
Sun Apr 13 23:08:35 EDT 2008
Hi Kent,
how odd that we seem to be working on the same problems!
Our solution for 3D image based contour work was to take
vtkContourRepresentation and vtkOrientedGlyphContourRepresentation,
and distill them down to one simple contour class. You can alter
vtkContourRepresentation to be a hybrid vtkProp but keep the
paradigm of nodes, interpolators and point placers. With
multi-slice images you can use stl containers for contour
management: std::list for within slices and std::vector for between
slices. You can do undo/redo contour editing by interfacing
vtkContourWidget to take the nodes of a contour class as input
for user interaction, or vtkAffineWidget for affine transforms
(translation, rotation, scaling).
HTH,
Dean
More information about the vtk-developers
mailing list