------------------------------------------------------------------------------
| 59 | |
| 60 | //------------------------------------------------------------------------------ |
| 61 | void vtkHandleRepresentation::GetDisplayPosition(double pos[2]) |
| 62 | { |
| 63 | // The position is really represented in the world position; the display |
| 64 | // position is a convenience to go back and forth between coordinate systems. |
| 65 | // Also note that the window size may have changed, so it's important to |
| 66 | // update the display position. |
| 67 | if (this->Renderer && |
| 68 | (this->WorldPositionTime > this->DisplayPositionTime || |
| 69 | (this->Renderer->GetVTKWindow() && |
| 70 | this->Renderer->GetVTKWindow()->GetMTime() > this->BuildTime))) |
| 71 | { |
| 72 | int* p = this->WorldPosition->GetComputedDisplayValue(this->Renderer); |
| 73 | this->DisplayPosition->SetValue(p[0], p[1], 0); |
| 74 | } |
| 75 | this->DisplayPosition->GetValue(pos); |
| 76 | } |
| 77 | |
| 78 | //------------------------------------------------------------------------------ |
| 79 | double* vtkHandleRepresentation::GetDisplayPosition() |