[vtkusers] stack over flow error

Arora, Prateek (MED) Prateek.Arora at geind.ge.com
Mon Jan 21 08:20:24 EST 2002


Hi Users
   I am facing the the problem with vtkRenderWindow , I am using
vtkInteractorStyleUser to write my own custom event, the moment I change the
vtkImageData I get a error of stack overflow , I am sending the code can you
please see it tell me what should I do To remove this error
With Regard
Prateek

		mapper1->SetInput(this->imagedata1);
		mapper1->SetColorWindow(this->winValue);
		mapper1->SetColorLevel(this->colValue);
		mapper1->SetZSlice(this->zslice);
		
		vtkActor2D *actor1 =  vtkActor2D::New();		
		actor1->SetMapper(mapper1);


		vtkRenderer *renderer = vtkRenderer::New();
		renderer->AddActor2D(actor1);
		vtkRenderWindow *renWin = vtkRenderWindow::New();
		renWin->AddRenderer(renderer);
		vtkRenderWindowInteractor *iren ;
		iren = vtkRenderWindowInteractor::New();
		iren->SetRenderWindow(renWin);
		renWin->Render();
		iren->Initialize();
	
		style = vtkInteractorStyleUser::New();
		iren-> SetInteractorStyle( style);
		void (*ptr)(void *);
		void (*ptr1)(void *);
		void (*ptr2)(void *);
		ptr = RotateCallBack12;
		ptr1 = Leavewin;
		ptr2 = CallBack12;
		style->SetMouseMoveMethod(ptr,0);


"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system."




More information about the vtkusers mailing list