[vtkusers] Cannot refresh rendering window automatically
Jianlong Zhou
zhou at isg.cs.uni-magdeburg.de
Tue Oct 23 09:48:52 EDT 2001
hi, all,
I use the vtk attached sample program as the basis for my MFC
based project. Now I have a problem. I add a member function in
sampleview class to realize my own rendering procedure. I use the
method like: this->GetDocument()->Props->AddItem() to add my
Actors and Voumes into rendering pipeline. When I run it, I cannot
get rendering automatically, I must refresh the client window and
then get the rendering as I want. I know I must send WM_PAINT to
OnDraw() function, I have tried several methods and it still cannot
work. Is my method as following right? Anyone have any ideas?
Below is some segment of my member function:
CSampleView::OnVolumeRendering()
{
//some processing lines ..
.............
this->GetDocument()->Props->AddItem(this->myActor);
this->Interactor->Initialize();
this->RenderWindow->Render();
this->Interactor->Start();
}
Thank you very much for your help.
Jianlong
More information about the vtkusers
mailing list