[vtkusers] vtkWin32OpenGLRenderWindow vtkSmartPtr error
Harlow Eric D Contr 412 TW/ENR
Eric.Harlow at edwards.af.mil
Thu Aug 26 20:45:58 EDT 2004
Dear VTK Users:
Does anyone know how to solve this? I have a renderWindow wrapped in a
vtkSmartPtr and I get an compile error when I try to pass it the
vtkWindowToImageFilter SetInput function.
vtkSmartPtr<vtkWin32OpenGLRenderWindow> RenderWindow_;
implementation:
vtkWindowToImageFilter *w2if = vtkWindowToImageFilter::New();
w2if->SetInput(RenderWindow_.get );
error:
c:\MDV\DVL\dvlcanvas.cpp(169) : error C2664:
'vtkWindowToImageFilter::SetInput' : cannot convert parameter 1 from
'vtkWin32OpenGLRenderWindow *(void) const' to 'vtkWindow *'
There is no context in which this conversion is possible
Thanks,
Eric
More information about the vtkusers
mailing list