------------------------------------------------------------------------------ Description: Transform from world to display coordinates. displayPt has to be allocated as 3 vector
| 263 | // Transform from world to display coordinates. |
| 264 | // displayPt has to be allocated as 3 vector |
| 265 | void vtkInteractorObserver::ComputeWorldToDisplay( |
| 266 | vtkRenderer* ren, double x, double y, double z, double displayPt[3]) |
| 267 | { |
| 268 | ren->SetWorldPoint(x, y, z, 1.0); |
| 269 | ren->WorldToDisplay(); |
| 270 | ren->GetDisplayPoint(displayPt); |
| 271 | } |
| 272 | |
| 273 | //------------------------------------------------------------------------------ |
| 274 | // Description: |