Hi,
I am currently having trouble moving a Surface which PolyData is for now
initialized by a vtkSphereSource (not really important this step). The surface
is initially centered at (0,0,0). I register it by simply calling
SetVtkPolyData() on the surface with the output of the source once updated.
I have my own interactor setted up, and now I want to move the surface by
translating its geometry, but I seem not to be working at all.
To do this, I first acquire the UpdatedTimeGeometry and then get the actual
Geometry of the surface for the specific timepoint. I then apply a translation
to the geometry with a vector builded from the positionEvent and the present
center of my surface, as the mitkAffineBaseDataInteractor3D does.
In the DataManager, offset and translation informations seems good, as well as
the center in the vtkPolyData part, but a call to Render everything does not
show up anything.
I setted the color and opacity property of the DataNode enclosing the Surface,
without success.
At that point, I have 3 questions :
- Do I need to translate PolyData directly (with a vtkTransform) prior to
rendering or the rendering process is already doing that ? I really want to
keep the polydata unaffected, but if it is the only solution, I'll go for it.
- I presently Clone the surface when rendering it, are the property following
through the Clone, should they be visible in the details of the surface in the
DataManager ?
- Is there a way of generating predefined surface like spheres in MITK ? Right
now I have to hack out of the vtk pipeline with an Update/GetOutput call, as I
don't really want to trickle with the actors in the VtkRenderer.
Thanks a lot for your help,
Alex
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users