Package javax.media.j3d

Examples of javax.media.j3d.View


/* 295 */         if (this.viewerList.size() > 1) {
/* 296 */           throw new RuntimeException(J3dUtilsI18N.getString("ViewingPlatform0"));
/*     */         }
/*     */
/* 300 */         Viewer viewer = (Viewer)this.viewerList.keys().nextElement();
/* 301 */         View view = viewer.getView();
/* 302 */         fieldOfView = view.getFieldOfView();
/*     */       }
/*     */
/* 305 */       Transform3D t3d = new Transform3D();
/* 306 */       double viewDistance = 1.0D / Math.tan(fieldOfView / 2.0D);
/* 307 */       t3d.set(new Vector3d(0.0D, 0.0D, viewDistance));
View Full Code Here


/*      */         catch (NoSuchMethodError e)
/*      */         {
/*      */         }
/*      */       }
/*      */     }
/*  370 */     this.view = new View();
/*      */
/*  372 */     synchronized (viewerMap) {
/*  373 */       viewerMap.put(this.view, this);
/*      */     }
/*  375 */     for (int i = 0; i < this.canvases.length; i++) {
View Full Code Here

/*  437 */       this.canvases[0].setFocusable(true);
/*      */     }
/*      */     catch (NoSuchMethodError e)
/*      */     {
/*      */     }
/*  442 */     this.view = new View();
/*      */
/*  444 */     synchronized (viewerMap) {
/*  445 */       viewerMap.put(this.view, this);
/*      */     }
/*  447 */     this.view.addCanvas3D(this.canvases[0]);
View Full Code Here

/*     */     }
/*     */   }
/*     */
/*     */   protected Viewer createViewer(boolean setVisible)
/*     */   {
/* 355 */     this.j3dView = new View();
/* 356 */     this.j3dView.setViewPolicy(this.viewPolicy);
/*     */
/* 358 */     if (this.configBody == null)
/* 359 */       this.physicalBody = new PhysicalBody();
/*     */     else {
View Full Code Here

        transform.setTranslation(mazeManager.getStartPosition());
        steerTransformGroup.setTransform(transform);
    }

    private void prepareViewpoint() {
        final View userView = simpleUniverse.getViewer().getView();
        userView.setFieldOfView(FIELD_OF_VIEW);
        userView.setBackClipDistance(BACK_CLIP_DISTANCE);
        userView.setFrontClipDistance(FRONT_CLIP_DISTANCE);
    }
View Full Code Here

TOP

Related Classes of javax.media.j3d.View

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.