------------------------------------------------------------------------------
| 143 | |
| 144 | //------------------------------------------------------------------------------ |
| 145 | void vtkInteractorStyleDrawPolygon::OnLeftButtonUp() |
| 146 | { |
| 147 | if (!this->Interactor || !this->Moving) |
| 148 | { |
| 149 | return; |
| 150 | } |
| 151 | |
| 152 | if (this->DrawPolygonPixels) |
| 153 | { |
| 154 | const int* size = this->Interactor->GetRenderWindow()->GetSize(); |
| 155 | unsigned char* pixels = this->PixelArray->GetPointer(0); |
| 156 | this->Interactor->GetRenderWindow()->SetPixelData(0, 0, size[0] - 1, size[1] - 1, pixels, 0); |
| 157 | this->Interactor->GetRenderWindow()->Frame(); |
| 158 | } |
| 159 | |
| 160 | this->Moving = 0; |
| 161 | this->InvokeEvent(vtkCommand::SelectionChangedEvent); |
| 162 | this->InvokeEvent(vtkCommand::EndInteractionEvent); |
| 163 | } |
| 164 | |
| 165 | //------------------------------------------------------------------------------ |
| 166 | void vtkInteractorStyleDrawPolygon::DrawPolygon() |
nothing calls this directly
no test coverage detected