Tabnine Logo
View.addCanvas3D
Code IndexAdd Tabnine to your IDE (free)

How to use
addCanvas3D
method
in
javax.media.j3d.View

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

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

BCanvas3DOffScreen(final BCanvas3D _init) {
 super(_init.getGraphicsConfiguration(), true);
 initDimensions(_init);
 _init.getView().addCanvas3D(this);
}
origin: org.fudaa.framework.ebli/ebli-3d

public BUnivers(final BCanvas3D _canvas) {
 canvas_ = _canvas;
 locale_ = new Locale(this);
 final ViewPlatform camera = new ViewPlatform();
 final BranchGroup viewGroup = new BranchGroup();
 final TransformGroup viewTg = new TransformGroup();
 viewTg.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
 viewTg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
 viewTg.setCapability(Node.ALLOW_LOCAL_TO_VWORLD_READ);
 viewTg.addChild(camera);
 viewGroup.addChild(viewTg);
 final PhysicalBody body = new PhysicalBody();
 final PhysicalEnvironment env = new PhysicalEnvironment();
 final View view = new View();
 view.setPhysicalBody(body);
 view.setPhysicalEnvironment(env);
 view.setBackClipDistance(100);
 view.setFrontClipDistance(.1);
 view.addCanvas3D(canvas_);
 view.attachViewPlatform(camera);
 transformU_ = viewTg;
 position_ = new Vector3d();
 viewGroup.setCapability(BranchGroup.ALLOW_DETACH);
 locale_.addBranchGraph(viewGroup);
}
origin: eu.mihosoft.vrl/vrl

@Override
public void init(VCanvas3D canvas) {
  GraphicsConfigTemplate3D gct = new GraphicsConfigTemplate3D();
  gct.setSceneAntialiasing(GraphicsConfigTemplate.PREFERRED);
  this.canvas = canvas;
  canvas.setDoubleBuffered(true);
  
  // 12.05.2015 define default size since offscreencanvas will be null
  // otherwise
  // see: https://java.net/jira/browse/JAVA3D-386
  canvas.setSize(100, 100);
  canvas.getOffscreenCanvas3D().setDoubleBufferEnable(true);
  canvas.setResizeMode(JCanvas3D.RESIZE_IMMEDIATELY);
  offscreenCanvas = new VOffscreenCanvas3D(
      SimpleUniverse.getPreferredConfiguration());
  universe = new SimpleUniverse(getCanvas().getOffscreenCanvas3D());
  universe.getViewer().getView().addCanvas3D(offscreenCanvas);
  // offscreen rendering does not work with sceneantialiasing enabled!
  // universe.getViewer().getView().setSceneAntialiasingEnable(true);
  universe.getViewingPlatform().setNominalViewingTransform();
  universe.getViewer().getView().setMinimumFrameCycleTime(0);
  universe.getViewer().getView().setFrontClipDistance(0.1);
  universe.getViewer().getView().setBackClipDistance(100);
  BranchGroup scene = createSceneGraph();
  scene.compile();
  universe.addBranchGraph(scene);
}
javax.media.j3dViewaddCanvas3D

Popular methods of View

  • setBackClipDistance
  • setFrontClipDistance
  • getBackClipDistance
  • getFrontClipDistance
  • getProjectionPolicy
  • getSceneAntialiasingEnable
  • getScreenScale
  • removeAllCanvas3Ds
  • setFieldOfView
  • setLocalEyeLightingEnable
  • setProjectionPolicy
  • setSceneAntialiasingEnable
  • setProjectionPolicy,
  • setSceneAntialiasingEnable,
  • setScreenScale,
  • setScreenScalePolicy,
  • setTransparencySortingPolicy,
  • setWindowEyepointPolicy,
  • <init>,
  • attachViewPlatform,
  • getFieldOfView

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Runner (org.openjdk.jmh.runner)
  • 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