Hello,
I want to replace the original volume from widget4, because with adding an
actor to widget4 I have 2 volumes in it. My new volume should also have a
connection to the 3 Planes in widget4 and to the big grayvalue slider on the
right side.
node->SetProperty("volumerendering", new mitk::BoolProperty(true));
vtkRenderer* rendererAct;
rendererAct =
m_MultiWidget->GetRenderWindow4()->GetRenderer()->GetVtkRenderer();
vtkVolumeRayCastMapper *volumeMapper = vtkVolumeRayCastMapper::New();
vtkVolumeRayCastMIPFunction *mip=vtkVolumeRayCastMIPFunction::New();
volumeMapper->SetVolumeRayCastFunction(mip);
volumeMapper->SetInput(img->GetVtkImageData());
vtkVolumeProperty *volumeProperty = vtkVolumeProperty::New();
vtkLODProp3D* volumeLOD=vtkLODProp3D::New();
int i=0;
i=volumeLOD->AddLOD(volumeMapper,volumeProperty,0.0);
rendererAct->AddActor(volumeLOD);
Thanks for all responses
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users