Hi Edgar, >> My new volume should also have a connection to the 3 Planes in widget4 and >> to the big grayvalue slider on the right side.
The planes in a 3D widget and the levelWindowSlider interact with MITK DataTreeNodes / their corresponding mappers. If you want to change the way the data of a DataTreeNode is visualized in any window you can do this by setting/changing a mapper for the Node (DataTreeNode->SetMapper(...)), or by changing some properties of the Node, which may change a mapper's behaviour. If you just do VTK-coding it won't interact with MITK. Also, in this case you should not use the MITK scene vtkRenderer, instead you should use/create own vtkRenderer(s) (like e.g. in mitk::LogoRendering). I do not understand this: >> because with adding an actor to widget4 I have 2 volumes in it Did you read the modules->"Renderer and RenderWindow Classes" documentation? Also, the related pages->"Rendering in MITK by means of the QT-VTK widget" might be helpful. A short excerpt of the first one: MITK is designed to intrinsically provide different views on data. For example, a volume dataset is volume rendered in a 3D view, and displayed slice-wise in a 2D view. A polygon model would be displayed as a contour in 2D (i.e., the intersection of the 3D model and the respective 2D plane). This principle applies to all kinds of data, thereby ensuring a consistent visual representation regardless of the view type. It is realized by providing Mappers for each combination of data type and view type. Every item of the DataTree is associated with a list of Mappers, each capable of rendering the data item in a specific view. If the mitk::VolumeDataVtkMapper3D is not sufficient for your needs, may be you should create your own mapper (e.g. by inheriting from this one) and replace the standard VolumeDataVtkMapper3D with your own one by node->SetMapper(mitk::BaseRenderer::Standard3D, myOwnMapper); Regards, Matthias -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Edgar Andrasch Gesendet: Freitag, 28. März 2008 17:10 An: [email protected] Betreff: [mitk-users] Replace Volume in Widget4 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 ------------------------------------------------------------------------- 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
