Examples of PickTranslateBehavior


Examples of com.sun.j3d.utils.picking.behaviors.PickTranslateBehavior

    knb.setSchedulingBounds(bounds);
    tgAll.addChild(knb);
    theScene.addChild(tgAll);

    //The PickTranslateBehavior for moving the blue cube.
    PickTranslateBehavior pickTrans = new PickTranslateBehavior(theScene,myCanvas3D,bounds);
    theScene.addChild(pickTrans);



    //This class takes care of changing the colour of the sphere when the cube touches it.
View Full Code Here

Examples of edu.uci.ics.jung.visualization3d.control.PickTranslateBehavior

    MouseTranslate behavior3 = new MouseTranslate();
    behavior3.setTransformGroup(objTrans);
    objTrans.addChild(behavior3);
    behavior3.setSchedulingBounds(bounds);
   
    PickTranslateBehavior ptb = new PickTranslateBehavior(objRoot,canvas,bounds,PickTool.GEOMETRY);
    ptb.setSchedulingBounds(bounds);
//    objTrans.addChild(ptb);
    ptb.setupCallback(new PickingCallback() {

      public void transformChanged(int type, TransformGroup tg) {
        if(tg == null) return;
        Transform3D t3d = new Transform3D();
        tg.getTransform(t3d);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.