Hi all,
I turned on gpu volume rendering with
node->SetProperty("volumerendering.usegpu",mitk::BoolProperty::New(true),FourView->GetRenderWindow4()->GetRenderer());
and after adding node to storage I am updating rendering with
mitk::RenderingManager::GetInstance()->InitializeViews(geometry);
but in render window volume is not appearing at focus I have to zoom out to
find it. It is ok when I am using normal volume rendering. What I tried to
set camera is:
mitk::Point3D n = node->GetData()->GetGeometry()->GetCenter();
vtkCamera * camera = vtkCamera::New();
camera =
FourView->GetRenderWindow4()->GetRenderer()->GetVtkRenderer()->GetActiveCamera();
camera->SetFocalPoint(n.GetElement(0),n.GetElement(1),n.GetElement(2));
camera->SetPosition(0,0,0);
camera->ComputeViewPlaneNormal();
FourView->GetRenderWindow4()->GetRenderer()->GetVtkRenderer()->SetActiveCamera(camera);
FourView->GetRenderWindow4()->GetRenderer()->GetVtkRenderer()->ResetCamera();
but it is not effective.
Is there any setting through mitkCameraController or any way to reset
camera focus on volume?
Regards,
Tab
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
is your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users