Hi Taylor,
I am afraid that there is no simply way in MITK to add actors/props to the
scene and to the datastorage, as this is not trivial. You need to cover a lot
of things to make everything work smoothly.
The recommended way (where you can achieve everything you want) is to write
your own data type (derived from mitk::BaseData) and write your own mapper
which renders the vtkAxesActors as you would like to.
A quick way would be to get the renderer of the desired renderwindow and add
your actor. In your view for example:
mitk::BaseRenderer* renderer = mitk::BaseRenderer::GetInstance(
this->GetRenderWindowPart()->GetRenderWindow("sagittal")->GetRenderWindow() );
renderer->GetVtkRenderer()->AddActor( yourActorHere );
This way you can see your actor, but it is not added to the datastorage. It
depends on your personal requirements which way you want to go for.
In the mid future, we plan to offer an easy way to add vtkWidgets to MITK, such
as overlays and text. I am not sure if they will be added to the data storage.
(I assume not).
Regards,
Thomas
Thomas Kilgus
German Cancer Research Center (DKFZ)
Div. Medical and Biological Informatics
Junior group: Computer-assisted Interventions (E131)
Im Neuenheimer Feld 280
69120 Heidelberg, Germany
Phone: +49(0) 6221-42-3545
From: Taylor Braun-Jones [mailto:[email protected]]
Sent: Mittwoch, 17. April 2013 17:38
To: [email protected]
Subject: [mitk-users] Adding vtkAxesActor to DataStorage
Hello mitk-users,
What's the best way to add a vtkAxesActor (or any of the other useful VTK
actors derived from vtkProp3D) to a mitk::DataStorage so that it is visible in
all the associated renderers?
Thanks,
Taylor
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users