[vtkusers] Qt/VTK application unable to make transforms using the vtkTransform

Jay jayavardhanravi at outlook.com
Tue Jan 16 11:41:21 EST 2018


I tried to make the QT/VTK application using the vtkEventQtSlotConnect().
When i try to make the transform in the slot function the application
crashes.

Pseudo code:
// created the actor
vtkActor actor = new vtkActor;
vtkTransfor trans = new vtkTransform;
// created the event
vtkEventQtSlotConnect(xx,xxx,xx,slot(slotFunction));

// slotfunction
 void slotFunction()
{
   trans = vtkTransform::SafeDownCast(actor->getUserTransform());
   trans->Identity(); /// this is where application crashes or stops running
   trans->RotateX(10);
   trans->Update();
   renderWindow->Render();
}

Any suggestion would be helpful.

Regards,
Jay






--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list