------------------------------------------------------------------------------
| 1485 | |
| 1486 | //------------------------------------------------------------------------------ |
| 1487 | void vtkCoordinateFrameRepresentation::BuildRepresentation() |
| 1488 | { |
| 1489 | if (!this->Renderer || !this->Renderer->GetRenderWindow()) |
| 1490 | { |
| 1491 | return; |
| 1492 | } |
| 1493 | |
| 1494 | vtkInformation* info = this->GetPropertyKeys(); |
| 1495 | this->OriginSphereActor->SetPropertyKeys(info); |
| 1496 | this->XVectorLineActor->SetPropertyKeys(info); |
| 1497 | this->XVectorConeActor->SetPropertyKeys(info); |
| 1498 | this->LockerXVectorConeActor->SetPropertyKeys(info); |
| 1499 | this->YVectorLineActor->SetPropertyKeys(info); |
| 1500 | this->YVectorConeActor->SetPropertyKeys(info); |
| 1501 | this->LockerYVectorConeActor->SetPropertyKeys(info); |
| 1502 | this->ZVectorLineActor->SetPropertyKeys(info); |
| 1503 | this->ZVectorConeActor->SetPropertyKeys(info); |
| 1504 | this->LockerZVectorConeActor->SetPropertyKeys(info); |
| 1505 | |
| 1506 | if (this->GetMTime() > this->BuildTime) |
| 1507 | { |
| 1508 | double* origin = this->GetOrigin(); |
| 1509 | |
| 1510 | // Set up the position handle |
| 1511 | this->OriginSphereSource->SetCenter(origin); |
| 1512 | this->XVectorLineSource->SetPoint1(origin); |
| 1513 | this->XVectorConeSource->SetDirection(this->GetXVectorNormal()); |
| 1514 | this->LockerXVectorConeSource->SetDirection(this->GetXVectorNormal()); |
| 1515 | this->YVectorLineSource->SetPoint1(origin); |
| 1516 | this->YVectorConeSource->SetDirection(this->GetYVectorNormal()); |
| 1517 | this->LockerYVectorConeSource->SetDirection(this->GetYVectorNormal()); |
| 1518 | this->ZVectorLineSource->SetPoint1(origin); |
| 1519 | this->ZVectorConeSource->SetDirection(this->GetZVectorNormal()); |
| 1520 | this->LockerZVectorConeSource->SetDirection(this->GetZVectorNormal()); |
| 1521 | } |
| 1522 | |
| 1523 | if (this->GetMTime() > this->BuildTime || |
| 1524 | this->Renderer->GetRenderWindow()->GetMTime() > this->BuildTime || |
| 1525 | (this->Renderer->GetActiveCamera() && |
| 1526 | this->Renderer->GetActiveCamera()->GetMTime() > this->BuildTime)) |
| 1527 | |
| 1528 | { |
| 1529 | this->SizeHandles(); |
| 1530 | this->BuildTime.Modified(); |
| 1531 | } |
| 1532 | } |
| 1533 | |
| 1534 | //------------------------------------------------------------------------------ |
| 1535 | void vtkCoordinateFrameRepresentation::SizeHandles() |
no test coverage detected