public Graphics3DNode(String name, Graphics3DNodeType nodeType, Graphics3DObject graphicsObject) { this.name = name; this.nodeType = nodeType; if (graphicsObject != null) { setGraphicsObject(graphicsObject); } }
@Override public Object call() throws Exception { lidarNode.setTransform(lidarNodeTransform); return null; } });
public void setGraphicsObject(Graphics3DObject graphicsObject) { this.graphicsObject = graphicsObject; setHasGraphicsObjectChanged(true); }
private void init() { rootNode = new Graphics3DNode(worldName + "RootNode"); }
public void addChild(Graphics3DNode child) { if (viewportAdapter == null) { rootNode.addChild(child); } else { graphics3DNodesToAddPostFrame.add(child); } }
public void selected(Graphics3DNode graphics3dNode, ModifierKeyInterface modifierKeyHolder, Point3d location, Point3d cameraLocation, Quat4d cameraRotation) { System.out.println("Selected " + graphics3dNode.getName() + " @ location " + location); } };
private void init() { rootNode = new Graphics3DNode(worldName + "RootNode"); }
public Graphics3DNode(String name, Graphics3DNodeType nodeType, Graphics3DObject graphicsObject) { this.name = name; this.nodeType = nodeType; if (graphicsObject != null) { setGraphicsObject(graphicsObject); } }
public Object call() throws Exception { node.setTransform(transform); return null; } }
public synchronized Graphics3DObject getGraphicsObjectAndResetHasGraphicsObjectChanged() { Graphics3DObject ret = graphicsObject; setHasGraphicsObjectChanged(false); return ret; }
public void selected(Graphics3DNode graphics3dNode, ModifierKeyInterface modifierKeyHolder, Point3DReadOnly location, Point3DReadOnly cameraLocation, QuaternionReadOnly cameraRotation) { System.out.println("Selected " + graphics3dNode.getName() + " @ location " + location); } };
private void createRays() { rays = new Graphics3DNode[scansPerSweep]; for (int i = 0; i < scansPerSweep; i++) { Graphics3DObject rayObject = new Graphics3DObject(); rayObject.rotate(Math.PI / 2, Axis.Y); rayObject.addCylinder(1.0, 0.0005, appearance); rays[i] = new Graphics3DNode(lidarName + "ray" + i, Graphics3DNodeType.VISUALIZATION, rayObject); } } }
@Override public Object call() throws Exception { lidarNode.setTransform(lidarNodeTransform); return null; } });
public synchronized Graphics3DObject getGraphicsObjectAndResetHasGraphicsObjectChanged() { Graphics3DObject ret = graphicsObject; setHasGraphicsObjectChanged(false); return ret; }
public void selected(Graphics3DNode graphics3dNode, ModifierKeyInterface modifierKeyHolder, Point3d location, Point3d cameraLocation, Quat4d cameraRotation) { System.out.println("Selected " + graphics3dNode.getName() + " @ location " + location); } };
public Object call() throws Exception { node.setTransform(transform); return null; } }
public void setGraphicsObject(Graphics3DObject graphicsObject) { this.graphicsObject = graphicsObject; setHasGraphicsObjectChanged(true); }
@Override public Object call() throws Exception { lidarNode.setTransform(lidarNodeTransform); return null; } });