[vtkusers] MFC & VTK

John Platt jcplatt at lineone.net
Sun Feb 1 17:57:43 EST 2004


Hi Henry,

MFC SDI applications use the same document object for each file you
open.
You can override OnOpenDocument() and clean out the previous data
sources (or reinitialize them if this method is supported).

-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of guanwen zhang
Sent: 31 January 2004 20:23
To: Olivier Cuisenaire
Cc: vtkusers at public.kitware.com
Subject: [vtkusers] MFC & VTK


Dear Sir,

I am wondering if you can help me with following
problem.

I developed a SDI application using MFC.
At start-up, a scene, say a sphere, is rendered
to my view window. After that, I open a data
file for a new scene different from the previous
one. I want to render the new scene, however, 
the old scene is always there, the new does not show
up at all.


Could you please help me with this problem?
Thank you very much!

Henry

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list