User talk:ClaudeG

From KitwarePublic
Jump to navigationJump to search

Hi to you all

I have just starting in Vtk-Programming and i have 2 question, perhaps you can help me.

1) I want to add numbers (float, int, double) in the window where all the other stuff like sphere, cube etc. are shown, but i don't know how to get the numbers in this window. How can i use floatArray to show numbers in the window or an other part of the question is, can one add a timer into the window who shows the time of the simulation.

2) My second question is that if i had added an object like a shpere into the window with ren->AddActor(sphere) and i want to change the position of the sphere, how can i change this in the window without creating a new sphere and setting this new sphere on the right position and than adding this one into the window after deleting the other.


I hope you can help me, so thanks you, Vtk-Users