Package javax.media.j3d

Examples of javax.media.j3d.ViewPlatform


/*     */
/* 144 */     TransformGroup tg = this.mtg.getTransformGroup(0);
/* 145 */     addChild(tg);
/*     */
/* 149 */     tg = this.mtg.getTransformGroup(numTransforms - 1);
/* 150 */     this.viewPlatform = new ViewPlatform();
/* 151 */     this.viewPlatform.setCapability(12);
/* 152 */     this.viewPlatform.setCapability(13);
/* 153 */     tg.addChild(this.viewPlatform);
/*     */
/* 156 */     tg.setCapability(17);
View Full Code Here


/* 2378 */     this.updateView = true;
/*      */   }
/*      */
/*      */   private void getViewPlatform()
/*      */   {
/* 2386 */     ViewPlatform vp = this.view.getViewPlatform();
/* 2387 */     if (vp == null) {
/* 2388 */       throw new IllegalStateException("The View must be attached to a ViewPlatform");
/*      */     }
/*      */
/* 2391 */     ViewPlatformInfo tmpVpi = (ViewPlatformInfo)this.viewPlatformMap.get(vp);
/*      */
/* 2394 */     if (tmpVpi == null)
/*      */     {
/* 2396 */       tmpVpi = new ViewPlatformInfo(vp, null);
/* 2397 */       this.viewPlatformMap.put(vp, tmpVpi);
/*      */     }
/*      */
/* 2400 */     if (this.vpi != tmpVpi)
/*      */     {
/* 2403 */       if (this.vpi != null)
/*      */       {
/* 2406 */         this.vpi.removeViewInfo(this);
/*      */       }
/* 2408 */       this.vpi = tmpVpi;
/* 2409 */       this.vpi.addViewInfo(this);
/*      */
/* 2414 */       if (vp.getCapability(11))
/* 2415 */         this.vpi.updateViewPlatformToVworld = true;
/*      */     }
/*      */   }
View Full Code Here

/* 70 */     ((ViewPlatform)this.node).setViewAttachPolicy(in.readInt());
/*    */   }
/*    */
/*    */   protected SceneGraphObject createNode()
/*    */   {
/* 75 */     return new ViewPlatform();
/*    */   }
View Full Code Here

TOP

Related Classes of javax.media.j3d.ViewPlatform

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.