[vtkusers] Transforming an Actor

T.Lim at hw.ac.uk T.Lim at hw.ac.uk
Wed Apr 27 13:59:10 EDT 2005


Hi vtkusers,

How does one transform an Actor?

What i have is an external device from which i have obtained it's position 
(in world coords). I want to set the Actor to this device position. I used 
myActor->SetPosition(device_pos) and apply Render() to the Actor. However, 
the actor always remains at the same position.

The follwing is how i've coded..

// returns proxy position in world coords
float device_pos[3] = this->get_proxy_pos();

// set proxy position to Actor
Actor->SetPosition(device_pos);
Actor->Modified();

// render it again
Actor->Render(this->renderer, this->mapperActor);

Am i missing something here...??

Also, are there functions to obtain Actor matrix translations:
actor space to world space (a_M_w)


Many thanks,
Theo.

-------------------------------------------------------------------
DISCLAIMER

This message is subject to http://www.hw.ac.uk/disclaim.htm 

-------------------------------------------------------------------




More information about the vtkusers mailing list