private void activateRightSideButtons() { colorPyrpur.setOnAction( (me) -> { ((MeshModel) rnaSequence3D.getModels().get(1)).colorPyrPur(); }); colorAugc.setOnAction( (me) -> { ((MeshModel) rnaSequence3D.getModels().get(1)).colorBases(); }); centerObject.setOnAction( (me) -> { tertiaryRoom.setCameraCenter(rnaSequence3D.computeCenter()); }); }
private void clearModels() { structureStick.selectedProperty().unbind(); structureBall.selectedProperty().unbind(); structureMesh.selectedProperty().unbind(); structureBall.setOnAction(event -> {}); rnaSequence3D.getModels().clear(); }