return true;
}
- private List<vtkProp> selectActors = new ArrayList<vtkProp>();
- private List<vtkProp> hoverActor = new ArrayList<vtkProp>();
+ protected List<vtkProp> selectActors = new ArrayList<vtkProp>();
+ protected List<vtkProp> hoverActor = new ArrayList<vtkProp>();
@Override
public boolean mouseClicked(MouseEvent e) {
fireSelectionChanged();
}
- private void fireSelectionChanged() {
+ protected void fireSelectionChanged() {
Display.getDefault().asyncExec(new Runnable() {
@Override
public void run() {
new ContextMenuListener(panel, contextMenu);
- cameraAction = new vtkCameraAndSelectorAction(panel);
+ cameraAction = createCameraAction();
panel.setDefaultAction(cameraAction);
panel.useDefaultAction();
panel.setPickType(4);
}
+ protected vtkCameraAndSelectorAction createCameraAction() {
+ return new vtkCameraAndSelectorAction(panel);
+ }
+
protected void createActions() {
translateAction = new TranslateAction(panel,nodeMap);
translateInlineAction = new TranslateInlineAction(panel, nodeMap);