com.jme3.scene.control.LightControl Java Examples
The following examples show how to use
com.jme3.scene.control.LightControl.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ControlTreeNodeFactory.java From jmonkeybuilder with Apache License 2.0 | 6 votes |
@Override @FxThread public <T, V extends TreeNode<T>> @Nullable V createFor(@Nullable final T element, final long objectId) { if (element instanceof MotionEvent) { return unsafeCast(new MotionEventTreeNode((MotionEvent) element, objectId)); } else if (element instanceof KinematicRagdollControl) { return unsafeCast(new RagdollControlTreeNode((KinematicRagdollControl) element, objectId)); } else if (element instanceof VehicleControl) { return unsafeCast(new VehicleControlTreeNode((VehicleControl) element, objectId)); } else if (element instanceof SkeletonControl) { return unsafeCast(new SkeletonControlTreeNode((SkeletonControl) element, objectId)); } else if (element instanceof BetterCharacterControl) { return unsafeCast(new BetterCharacterControlTreeNode((BetterCharacterControl) element, objectId)); } else if (element instanceof RigidBodyControl) { return unsafeCast(new RigidBodyControlTreeNode((RigidBodyControl) element, objectId)); } else if (element instanceof LightControl) { return unsafeCast(new LightControlTreeNode((LightControl) element, objectId)); } else if (element instanceof Control) { return unsafeCast(new ControlTreeNode<>((Control) element, objectId)); } return null; }
Example #2
Source File: LightControlTreeNode.java From jmonkeybuilder with Apache License 2.0 | 4 votes |
public LightControlTreeNode(@NotNull final LightControl element, final long objectId) { super(element, objectId); }
Example #3
Source File: CreateLightControlAction.java From jmonkeybuilder with Apache License 2.0 | 4 votes |
@Override @FxThread protected @NotNull Control createControl(@NotNull final Spatial parent) { return new LightControl(); }
Example #4
Source File: LightNode.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 4 votes |
public LightNode(String name, Light light) { this(name, new LightControl(light)); }
Example #5
Source File: LightNode.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 4 votes |
public LightNode(String name, LightControl control) { super(name); addControl(control); lightControl = control; }
Example #6
Source File: LightNode.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void read(JmeImporter im) throws IOException { super.read(im); lightControl = (LightControl)im.getCapsule(this).readSavable("lightControl", null); }
Example #7
Source File: LightNode.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 4 votes |
public LightNode(String name, Light light) { this(name, new LightControl(light)); }
Example #8
Source File: LightNode.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 4 votes |
public LightNode(String name, LightControl control) { super(name); addControl(control); lightControl = control; }