[vtkusers] Question about contour widget

shengweng shengwen.guo at gmail.com
Wed Oct 20 06:28:30 EDT 2010


Thank for your explanation.
But there is an error when I use the command in VC 2005:
     PolyData =
((*vtkOrientedGlyphContourRepresentation)(ContourWidget->GetRepresentation()))->GetContourRepresentationAsPolyData();
     Error Message:
      error C2275: “vtkOrientedGlyphContourRepresentation”: Invalid ......

     It seems that it doesn't support to change class
vtkWidgetRepresentation to class vtkOrientedGlyphContourRepresentation
because ContourWidget->GetRepresentation() returns a vtkWidgetRepresentation
object which is the parent class of class
vtkOrientedGlyphContourRepresentation. 

          Shengwen
    Thanks
    
-- 
View this message in context: http://vtk.1045678.n5.nabble.com/Question-about-contour-widget-tp3208404p3228302.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list