Tabnine Logo
DirectionalLight.setEnable
Code IndexAdd Tabnine to your IDE (free)

How to use
setEnable
method
in
javax.media.j3d.DirectionalLight

Best Java code snippets using javax.media.j3d.DirectionalLight.setEnable (Showing top 3 results out of 315)

origin: org.fudaa.framework.ebli/ebli-3d

public void setVisible(final boolean _visible) {
 l_.setEnable(_visible);
 visible_ = _visible;
}
origin: com.github.fracpete/princeton-java-stdlib

/**
 * Adds a directional light of color col which shines in the direction vector (x, y, z)
 */
public static Light directionalLight (double x, double y, double z, Color col) {
  DirectionalLight light = new DirectionalLight();
  light.setColor(new Color3f(col));
  light.setInfluencingBounds(INFINITE_BOUNDS);
  light.setCapability(DirectionalLight.ALLOW_STATE_WRITE);
  light.setCapability(DirectionalLight.ALLOW_COLOR_WRITE);
  light.setEnable(true);
  BranchGroup bg = createBranchGroup();
  TransformGroup tg = createTransformGroup();
  tg.addChild(light);
  bg.addChild(tg);
  lightGroup.addChild(bg);
  Light l = new Light(bg, tg, light);
  l.setDirection(new Vector3D(x, y, z));
  return l;
}
origin: com.googlecode.princeton-java-introduction/stdlib

/**
 * Adds a directional light of color col which shines in the direction vector (x, y, z)
 */
public static Light directionalLight (double x, double y, double z, Color col) {
  DirectionalLight light = new DirectionalLight();
  light.setColor(new Color3f(col));
  light.setInfluencingBounds(INFINITE_BOUNDS);
  light.setCapability(DirectionalLight.ALLOW_STATE_WRITE);
  light.setCapability(DirectionalLight.ALLOW_COLOR_WRITE);
  light.setEnable(true);
  BranchGroup bg = createBranchGroup();
  TransformGroup tg = createTransformGroup();
  tg.addChild(light);
  bg.addChild(tg);
  lightGroup.addChild(bg);
  Light l = new Light(bg, tg, light);
  l.setDirection(new Vector3D(x, y, z));
  return l;
}
javax.media.j3dDirectionalLightsetEnable

Popular methods of DirectionalLight

  • <init>
  • setInfluencingBounds
  • setCapability
  • setColor
  • getInfluencingBounds
  • setDirection

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now