BowlerKernel
IInteractiveUIElementProvider.java
Go to the documentation of this file.
1 package com.neuronrobotics.bowlerkernel.Bezier3d;
2 
3 import com.neuronrobotics.sdk.addons.kinematics.math.TransformNR;
4 
5 import javafx.application.Platform;
6 
7 @SuppressWarnings("restriction")
8 public interface IInteractiveUIElementProvider {
9 
10  default void runLater(Runnable r) {
11  new Thread(()->{
12  Platform.runLater(() -> {
13  try {
14  r.run();
15  } catch (Throwable t) {
16  t.printStackTrace();
17  }
18  });
19  }).start();
20  }
21 
23  return new TransformNR();
24  }
25 
26  default double getCamerDepth() {
27  return -1500;
28  }
29 
30 }