------------------------------------------------------------------------------
| 66 | |
| 67 | //------------------------------------------------------------------------------ |
| 68 | void vtkGraphLayoutView::ProcessEvents(vtkObject* caller, unsigned long eventId, void* callData) |
| 69 | { |
| 70 | if (eventId == vtkCommand::StartInteractionEvent) |
| 71 | { |
| 72 | if (GetHideVertexLabelsOnInteraction() && this->VertexLabelsRequested) |
| 73 | { |
| 74 | this->Interacting = true; |
| 75 | this->GetGraphRepresentation()->SetVertexLabelVisibility(false); |
| 76 | } |
| 77 | if (GetHideEdgeLabelsOnInteraction() && this->EdgeLabelsRequested) |
| 78 | { |
| 79 | this->Interacting = true; |
| 80 | this->GetGraphRepresentation()->SetEdgeLabelVisibility(false); |
| 81 | } |
| 82 | } |
| 83 | if (eventId == vtkCommand::EndInteractionEvent) |
| 84 | { |
| 85 | bool forceRender = false; |
| 86 | if (GetHideVertexLabelsOnInteraction() && this->VertexLabelsRequested) |
| 87 | { |
| 88 | this->Interacting = false; |
| 89 | this->GetGraphRepresentation()->SetVertexLabelVisibility(true); |
| 90 | // Force the labels to reappear |
| 91 | forceRender = true; |
| 92 | } |
| 93 | if (GetHideEdgeLabelsOnInteraction() && this->EdgeLabelsRequested) |
| 94 | { |
| 95 | this->Interacting = false; |
| 96 | this->GetGraphRepresentation()->SetEdgeLabelVisibility(true); |
| 97 | // Force the labels to reappear |
| 98 | forceRender = true; |
| 99 | } |
| 100 | if (forceRender) |
| 101 | // Force the labels to reappear |
| 102 | this->Render(); |
| 103 | } |
| 104 | if (eventId != vtkCommand::ComputeVisiblePropBoundsEvent) |
| 105 | { |
| 106 | this->Superclass::ProcessEvents(caller, eventId, callData); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | //------------------------------------------------------------------------------ |
| 111 | void vtkGraphLayoutView::SetVertexLabelArrayName(const char* name) |
nothing calls this directly
no test coverage detected