Hi list,

what I want to do is the following: get a plane in space which I can 
place wherever I like and which shows an image which is a slice from an 
mitk::Image.

So far I can see the plane but not the image/texture on it.


I did the following:

nodeIt =
   mitk::DataTreeHelper::FindIteratorToNode(m_TreeIterator,currentNode);

planeGeometry = mitk::PlaneGeometry::New();
planeGeometry->InitializeStandardPlane(someRightVector,someDownVector);
planeGeometry->SetBounds(someBounds);

planeData = mitk::Geometry2DData::New();
planeData->SetGeometry2D(planeGeometry);

mapper = mitk::Geometry2DDataVtkMapper3D::New();
mapper->SetDataIteratorForTexture(
                          nodeIt.GetPointer() ); // -- is that correct?

planeNode = mitk::DataTreeNode::New();
planeNode->SetData(planeData);
planeNode->SetMapper(mitk::BaseRenderer::Standard3D, mapper);

imageMapper2D = mitk::ImageMapper2D::New();
currentNode->SetMapper(mitk::BaseRenderer::Standard2D, imageMapper2D);

nodeIt->Add(planeNode);




Any ideas what goes wrong? Do I have to use Geometry2DDataVtkMapper3D in 
another way? Do I have to initialize the ImageMapper2D and how would I 
do that?

Thanks in advance for every help!

Cheers, Marcel



-- 
---------------------------------------------
Dipl.-Ing. Marcel Schenderlein
Institute of Measurement, Control and Microtechnology
Ulm University
Albert Einstein Allee 41
89081 Ulm, Germany

Phone:  +49 (0) 731 50 26338
FAX:    +49 (0) 731 50 26301
Mobile: +49 (0) 176 217 33668

Email: [EMAIL PROTECTED]
web:   http://www.uni-ulm.de/in/mrm

-------------------------------------------------------------------------
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