Hello Edgar,

your code looks a bit strange. Do you have a render window? A DataTree? A 
mitk-Mapper?

If you want to enable volume rendering in MTK, the usual way is to add your 3D 
image to a DataTreeNode, add a BoolProperty called "volumerendering" to the 
node and at the node to the DataTree that is used by your render window. This 
should enable volume rendering for your image. To control rendering, you can 
(and should) add a LookupTableProperty called "LookupTable" to the node.

Hope that helps.

 Jochen
---
Jochen Neuhaus
Deutsches Krebsforschungszentrum
Medizinische und Biologische Informatik
Im Neuenheimer Feld 280
D-69120 Heidelberg
Tel.: +49 (0) 6221 / 42-2329
Fax: +49 (0) 6221 / 42-2345
http://www.dkfz-heidelberg.de/de/mbi/people/Jochen_Neuhaus.html


> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:mitk-users-
> [EMAIL PROTECTED] Im Auftrag von Edgar Andrasch
> Gesendet: Freitag, 14. März 2008 16:05
> An: [email protected]
> Betreff: [mitk-users] Sample Distance
> 
> Hello,
> 
> I want to change the sample distance of my 3d visualisation. The source
> is a mitk Image and the 3d is in vtk. I used a vtkVolumeRayCastMapper
> object but nothing happened.
> The code:
> 
> vtkVolumeRayCastMapper *volumeMapper = vtkVolumeRayCastMapper::New();
> 
> mitk::Image::Pointer img = dynamic_cast<mitk::Image*>( node->GetData()
> );
> 
> volumeMapper->SetInput(img->GetVtkImageData());
> 
> volumeMapper->SetSampleDistance(50.0);
> 
> mitk::RenderingManager::GetInstance()->RequestUpdateAll();
> 
> Thanks for the responses

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to