[vtkusers] disable dragging and rotation

ankitramani ankit_maruti at yahoo.co.in
Wed Feb 8 13:25:31 EST 2012


Hello,

I used two object in my code. i can drag and rotate it. But the problem is
that i want to disable dragging and rotation of one object. can you help me
to figure out this problem..?

i sending my code. 

int currPos[3];
interactor->GetEventPosition(currPos);	
 
					// Pick from this location.
vtkSmartPointer<vtkPropPicker>  picker =
vtkSmartPointer<vtkPropPicker>::New();
picker->Pick(currPos[0], currPos[1], currPos[2], this->renderer3D);
vtkProp3D * p;
p = picker->GetProp3D();
		
vtkSmartPointer<vtkInteractorStyleTrackballActor> style =
vtkSmartPointer<vtkInteractorStyleTrackballActor>::New();
	interactor->SetInteractorStyle(style); 
				
					interactor->Initialize();
					interactor->Start();



thnx in advance.....

--
View this message in context: http://vtk.1045678.n5.nabble.com/disable-dragging-and-rotation-tp5467294p5467294.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list