------------------------------------------------------------------------------
| 194 | |
| 195 | //------------------------------------------------------------------------------ |
| 196 | void vtkPointHandleRepresentation3D::SetDisplayPosition(double p[3]) |
| 197 | { |
| 198 | if (this->Renderer && this->PointPlacer) |
| 199 | { |
| 200 | if (this->PointPlacer->ValidateDisplayPosition(this->Renderer, p)) |
| 201 | { |
| 202 | double worldPos[3], worldOrient[9]; |
| 203 | if (this->PointPlacer->ComputeWorldPosition(this->Renderer, p, worldPos, worldOrient)) |
| 204 | { |
| 205 | this->DisplayPosition->SetValue(p); |
| 206 | this->WorldPosition->SetValue(worldPos); |
| 207 | this->DisplayPositionTime.Modified(); |
| 208 | this->SetWorldPosition(this->WorldPosition->GetValue()); |
| 209 | } |
| 210 | } |
| 211 | } |
| 212 | else |
| 213 | { |
| 214 | this->DisplayPosition->SetValue(p); |
| 215 | this->DisplayPositionTime.Modified(); |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | //------------------------------------------------------------------------------ |
| 220 | void vtkPointHandleRepresentation3D::SetHandleSize(double size) |
nothing calls this directly
no test coverage detected