Tabnine Logo
Material.setCapability
Code IndexAdd Tabnine to your IDE (free)

How to use
setCapability
method
in
javax.media.j3d.Material

Best Java code snippets using javax.media.j3d.Material.setCapability (Showing top 5 results out of 315)

origin: com.googlecode.princeton-java-introduction/stdlib

private static Appearance createCustomAppearance (boolean fill) {
  Appearance ap = createBlankAppearance();
  PolygonAttributes pa = new PolygonAttributes();
  if (!fill) pa.setPolygonMode(PolygonAttributes.POLYGON_LINE);
  pa.setCullFace(PolygonAttributes.CULL_NONE);
  LineAttributes la = new LineAttributes();
  la.setLineWidth(penRadius);
  la.setLineAntialiasingEnable(view.getSceneAntialiasingEnable());
  PointAttributes poa = new PointAttributes();
  poa.setPointAntialiasingEnable(view.getSceneAntialiasingEnable());
  ap.setPolygonAttributes(pa);
  ap.setLineAttributes(la);
  ap.setPointAttributes(poa);
  Color3f col = new Color3f(penColor);
  Color3f black = new Color3f(0, 0, 0);
  Color3f specular = new Color3f(GRAY);
  // Material properties
  Material material = new Material(col, black, col, specular, 64);
  material.setCapability(Material.ALLOW_COMPONENT_READ);
  material.setCapability(Material.ALLOW_COMPONENT_WRITE);
  material.setLightingEnable(true);
  ap.setMaterial(material);
  return ap;
}
origin: com.github.fracpete/princeton-java-stdlib

private static Appearance createCustomAppearance (boolean fill) {
  Appearance ap = createBlankAppearance();
  PolygonAttributes pa = new PolygonAttributes();
  if (!fill) pa.setPolygonMode(PolygonAttributes.POLYGON_LINE);
  pa.setCullFace(PolygonAttributes.CULL_NONE);
  LineAttributes la = new LineAttributes();
  la.setLineWidth(penRadius);
  la.setLineAntialiasingEnable(view.getSceneAntialiasingEnable());
  PointAttributes poa = new PointAttributes();
  poa.setPointAntialiasingEnable(view.getSceneAntialiasingEnable());
  ap.setPolygonAttributes(pa);
  ap.setLineAttributes(la);
  ap.setPointAttributes(poa);
  Color3f col = new Color3f(penColor);
  Color3f black = new Color3f(0, 0, 0);
  Color3f specular = new Color3f(GRAY);
  // Material properties
  Material material = new Material(col, black, col, specular, 64);
  material.setCapability(Material.ALLOW_COMPONENT_READ);
  material.setCapability(Material.ALLOW_COMPONENT_WRITE);
  material.setLightingEnable(true);
  ap.setMaterial(material);
  return ap;
}
origin: com.googlecode.princeton-java-introduction/stdlib

material.setCapability(Material.ALLOW_COMPONENT_READ);
material.setCapability(Material.ALLOW_COMPONENT_WRITE);
material.setLightingEnable(true);
ap.setMaterial(material);
origin: com.github.fracpete/princeton-java-stdlib

material.setCapability(Material.ALLOW_COMPONENT_READ);
material.setCapability(Material.ALLOW_COMPONENT_WRITE);
material.setLightingEnable(true);
ap.setMaterial(material);
origin: org.fudaa.framework.ebli/ebli-3d

pa.setBackFaceNormalFlip(true);
final Material m = new Material();
m.setCapability(Material.ALLOW_COMPONENT_READ);
m.setCapability(Material.ALLOW_COMPONENT_WRITE);
m.setShininess(2);
m.setLightingEnable(false);
javax.media.j3dMaterialsetCapability

Popular methods of Material

  • <init>
  • setLightingEnable
  • setDiffuseColor
  • getShininess
  • setAmbientColor
  • setShininess
  • getAmbientColor
  • getDiffuseColor
  • getEmissiveColor
  • getLightingEnable
  • getSpecularColor
  • setColorTarget
  • getSpecularColor,
  • setColorTarget,
  • setSpecularColor

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Notification (javax.management)
  • Top Vim 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