------------------------------------------------------------------------------
| 36 | |
| 37 | //------------------------------------------------------------------------------ |
| 38 | void vtkHandleRepresentation::SetDisplayPosition(double displyPos[2]) |
| 39 | { |
| 40 | if (this->Renderer && this->PointPlacer) |
| 41 | { |
| 42 | if (this->PointPlacer->ValidateDisplayPosition(this->Renderer, displyPos)) |
| 43 | { |
| 44 | double worldPos[3], worldOrient[9]; |
| 45 | if (this->PointPlacer->ComputeWorldPosition(this->Renderer, displyPos, worldPos, worldOrient)) |
| 46 | { |
| 47 | this->DisplayPosition->SetValue(displyPos); |
| 48 | this->WorldPosition->SetValue(worldPos); |
| 49 | this->DisplayPositionTime.Modified(); |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 | else |
| 54 | { |
| 55 | this->DisplayPosition->SetValue(displyPos); |
| 56 | this->DisplayPositionTime.Modified(); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | //------------------------------------------------------------------------------ |
| 61 | void vtkHandleRepresentation::GetDisplayPosition(double pos[2]) |