Package com.sun.j3d.utils.picking

Examples of com.sun.j3d.utils.picking.PickResult


    TransformGroup tg = null;
     
    if (mevent.isAltDown() && !mevent.isMetaDown()){
    
      pickCanvas.setShapeLocation(xpos, ypos);
      PickResult pr = pickCanvas.pickClosest();
      if ((pr != null) &&
          ((tg = (TransformGroup)pr.getNode(PickResult.TRANSFORM_GROUP))
                != null) &&
    (tg.getCapability(TransformGroup.ALLOW_TRANSFORM_READ)) &&
    (tg.getCapability(TransformGroup.ALLOW_TRANSFORM_WRITE))){
  zoom.setTransformGroup(tg);
  zoom.wakeup();
View Full Code Here


    TransformGroup tg = null;

    if (!mevent.isAltDown() && !mevent.isMetaDown()){

      pickCanvas.setShapeLocation(xpos, ypos);
      PickResult pr = pickCanvas.pickClosest();
      if ((pr != null) &&
          ((tg = (TransformGroup)pr.getNode(PickResult.TRANSFORM_GROUP))
              != null) &&
              (tg.getCapability(TransformGroup.ALLOW_TRANSFORM_READ)) &&
              (tg.getCapability(TransformGroup.ALLOW_TRANSFORM_WRITE))){

        translate.setTransformGroup(tg);
View Full Code Here

    }
  }
 
  private void doPick(int xpos, int ypos) {
    pickCanvas.setShapeLocation(xpos, ypos);
    PickResult result = pickCanvas.pickClosest();
    if(result != null) {

      TransformGroup tg = (TransformGroup)result.getNode(PickResult.TRANSFORM_GROUP);
      if(tg instanceof VertexGroup) {

        System.err.println("picked "+tg);
        pickedState.pick(((VertexGroup<V>)tg).vertex, true);
        fireStateChanged();
View Full Code Here

/* 125 */     TransformGroup tg = null;
/*     */
/* 127 */     if ((!this.mevent.isMetaDown()) && (!this.mevent.isAltDown()))
/*     */     {
/* 129 */       this.pickCanvas.setShapeLocation(xpos, ypos);
/* 130 */       PickResult pr = this.pickCanvas.pickClosest();
/* 131 */       if ((pr != null) && ((tg = (TransformGroup)pr.getNode(32)) != null) && (tg.getCapability(17)) && (tg.getCapability(18)))
/*     */       {
/* 136 */         this.drag.setTransformGroup(tg);
/* 137 */         this.drag.wakeup();
/* 138 */         this.currentTG = tg;
/*     */
View Full Code Here

/* 110 */     TransformGroup tg = null;
/*     */
/* 112 */     if ((this.mevent.isAltDown()) && (!this.mevent.isMetaDown()))
/*     */     {
/* 114 */       this.pickCanvas.setShapeLocation(xpos, ypos);
/* 115 */       PickResult pr = this.pickCanvas.pickClosest();
/* 116 */       if ((pr != null) && ((tg = (TransformGroup)pr.getNode(32)) != null) && (tg.getCapability(17)) && (tg.getCapability(18)))
/*     */       {
/* 121 */         this.zoom.setTransformGroup(tg);
/* 122 */         this.zoom.wakeup();
/* 123 */         this.currentTG = tg;
/* 124 */         freePickResult(pr);
View Full Code Here

/* 109 */     TransformGroup tg = null;
/*     */
/* 111 */     if ((!this.mevent.isAltDown()) && (this.mevent.isMetaDown()))
/*     */     {
/* 113 */       this.pickCanvas.setShapeLocation(xpos, ypos);
/* 114 */       PickResult pr = this.pickCanvas.pickClosest();
/* 115 */       if ((pr != null) && ((tg = (TransformGroup)pr.getNode(32)) != null) && (tg.getCapability(17)) && (tg.getCapability(18)))
/*     */       {
/* 121 */         this.translate.setTransformGroup(tg);
/* 122 */         this.translate.wakeup();
/* 123 */         this.currentTG = tg;
/* 124 */         freePickResult(pr);
View Full Code Here

TOP

Related Classes of com.sun.j3d.utils.picking.PickResult

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.