[Insight-users] Re: Insight-users digest, Vol 1 #407 - 7 msgs

simgoal simgoal@sina.com.cn
Mon, 16 Dec 2002 18:41:37 +0800


This is a multi-part message in MIME format.

--=====000_Dragon204545675030_=====
Content-Type: text/plain;
      charset="GB2312"
Content-Transfer-Encoding: 7bit

hello friends.
	i write a program to test the vtkvtkCallbackCommand class.but the CallBackProc function did not happen.
i don't know why.any advice are what i want, thanks in advance.
    void main()
{
	vtkCallbackCommand *CallBackCm=vtkCallbackCommand::New();
	vtkRenderer *aRenderer=vtkRenderer::New();
	vtkRenderWindow *renWin=vtkRenderWindow::New();
	renWin->AddRenderer(aRenderer);
	vtkWin32RenderWindowInteractor *iren=vtkWin32RenderWindowInteractor::New ();
	iren->SetRenderWindow(renWin);

	CallBackCm->SetCallback (&CallBackProc);
	iren->AddObserver (vtkCommand::LeftButtonPressEvent,CallBackCm);
	renWin->Render();
	iren->Start();
}

void CallBackProc(vtkObject *object,unsigned long msg,void* ,void* )
{

	MessageBox(NULL,"LeftButtonPressEvent happen","congraduation",MB_OK);
	
}


--=====000_Dragon204545675030_=====
Content-Type: image/gif;
      name="9.gif"
Content-Transfer-Encoding: base64
Content-Disposition: FoxmailIcon;
      filename="9.gif"

R0lGODdhQABAANUAAAQCBASCBISCBKTK9Py+nIQCBJyenFw+PFyenJy+nDxePJy+XPz69JxePFxe
nFy+XLyeXMTCxLyenFxePFyePJyePFy+nLy+nJxenLzevPy+vPwCBJyevFw+XFyevJy+vDxeXLy+
XPz+/JxeXNzevLyevFxeXFyeXJyeXAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAQABAAAAG/8CNcEgsGo/IpHLJ
bDqf0GixsRlBNlSpVmqQRDKZz+fSNWzPyVEiE/mwNd9POxK5ou8bTCJSomsubARfFxd0GSN4WiMS
BnJxbBGCCR8abBklGXaJTmoffXSFgJURJKBye22bTSYREqgR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