------------------------------------------------------------------------------ The frustum selection code is borrowed from vtkRenderView.
| 140 | //------------------------------------------------------------------------------ |
| 141 | // The frustum selection code is borrowed from vtkRenderView. |
| 142 | void vtkParallelCoordinatesView::ProcessEvents( |
| 143 | vtkObject* caller, unsigned long eventId, void* callData) |
| 144 | { |
| 145 | |
| 146 | // if (caller == this->GetInteractor() || caller == this->GetInteractorStyle()) |
| 147 | if (caller == this->GetInteractorStyle()) |
| 148 | { |
| 149 | vtkParallelCoordinatesInteractorStyle* style = |
| 150 | vtkParallelCoordinatesInteractorStyle::SafeDownCast(this->GetInteractorStyle()); |
| 151 | vtkParallelCoordinatesRepresentation* rep = |
| 152 | vtkParallelCoordinatesRepresentation::SafeDownCast(this->GetRepresentation()); |
| 153 | |
| 154 | if (style && rep) |
| 155 | { |
| 156 | int state = style->GetState(); |
| 157 | |
| 158 | if (eventId == vtkCommand::UpdateEvent) |
| 159 | { |
| 160 | rep->ResetAxes(); |
| 161 | } |
| 162 | else |
| 163 | { |
| 164 | switch (state) |
| 165 | { |
| 166 | case vtkParallelCoordinatesInteractorStyle::INTERACT_HOVER: |
| 167 | this->Hover(eventId); |
| 168 | break; |
| 169 | case vtkParallelCoordinatesInteractorStyle::INTERACT_INSPECT: |
| 170 | if (this->InspectMode == VTK_INSPECT_MANIPULATE_AXES) |
| 171 | { |
| 172 | this->ManipulateAxes(eventId); |
| 173 | } |
| 174 | else if (this->InspectMode == VTK_INSPECT_SELECT_DATA) |
| 175 | { |
| 176 | this->SelectData(eventId); |
| 177 | } |
| 178 | break; |
| 179 | case vtkParallelCoordinatesInteractorStyle::INTERACT_ZOOM: |
| 180 | this->Zoom(eventId); |
| 181 | break; |
| 182 | case vtkParallelCoordinatesInteractorStyle::INTERACT_PAN: |
| 183 | this->Pan(eventId); |
| 184 | break; |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | this->Render(); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | this->Superclass::ProcessEvents(caller, eventId, callData); |
| 193 | } |
| 194 | |
| 195 | vtkDataRepresentation* vtkParallelCoordinatesView::CreateDefaultRepresentation( |
| 196 | vtkAlgorithmOutput* conn) |
nothing calls this directly
no test coverage detected