Package jsynoptic.plugins.java3d.edit

Examples of jsynoptic.plugins.java3d.edit.AddEdit


        ArrayList<SceneGraphTreeNode> v=getTree().getClipBoard().get();
        CompoundEdit compoundEdit = new CompoundEdit();
        for(SceneGraphTreeNode o: v){
            SceneGraphTreeNode cn=o.cloneNode(deepClone, this);
            SceneGraphObject replaced=addSceneGraphObject((SceneGraphObject)cn.getGraphObject());
            compoundEdit.addEdit(new AddEdit(this,
                    (SceneGraphObject)cn.getGraphObject(),
                    replaced));
        }
        compoundEdit.end();
        getTree().getUndoableEditListener().undoableEditHappened(
View Full Code Here


                    _primitiveClass, _title);
            Primitive n=d.getResult();
            if(n!=null){
                GroupNode gn=(GroupNode)getNode();
                gn.addChild(n);
                AddEdit ae=new AddEdit(gn, n, null);

                getNode().getTree().getUndoableEditListener().undoableEditHappened(
                        new UndoableEditEvent(this, ae));
                getNode().refresh();
            }
View Full Code Here

            saxis.setName("Z");
            g.addChild(saxis);
           
            gn.addChild(g);
           
            AddEdit ae=new AddEdit(gn, g, null);
            getNode().getTree().getUndoableEditListener().undoableEditHappened(
                    new UndoableEditEvent(this, ae));

            getNode().refresh();
        }
View Full Code Here

            makeSolidAxis(tgz, 1.f, 0.04f, 0.02f, 0.04f, Color.BLUE, Color.BLUE, 10);           
            g.addChild(tgz);

            gn.addChild(g);
           
            AddEdit ae=new AddEdit(gn, g, null);
            getNode().getTree().getUndoableEditListener().undoableEditHappened(
                    new UndoableEditEvent(this, ae));

            getNode().refresh();
        }
View Full Code Here

       
                makeSolidAxis(g, n.height, n.arrowHeight, n.radius, n.arrowRadius, Color.WHITE, Color.WHITE, n.divisions);           

                gn.addChild(g);
       
                AddEdit ae=new AddEdit(gn, g, null);
                getNode().getTree().getUndoableEditListener().undoableEditHappened(
                        new UndoableEditEvent(this, ae));

                getNode().refresh();
            }
View Full Code Here

                cya.setMaterial(cym);
                sd.setAppearance(cya);

                gn.addChild(sd);
       
                AddEdit ae=new AddEdit(gn, sd, null);
                getNode().getTree().getUndoableEditListener().undoableEditHappened(
                        new UndoableEditEvent(this, ae));

                getNode().refresh();
            }
View Full Code Here

                a.setColoringAttributes(ca);
                Shape3D sd = new Shape3D(la, a);

                gn.addChild(sd);
       
                AddEdit ae=new AddEdit(gn, sd, null);
                getNode().getTree().getUndoableEditListener().undoableEditHappened(
                        new UndoableEditEvent(this, ae));

                getNode().refresh();
            }
View Full Code Here

            cya.setMaterial(cym);
            sd.setAppearance(cya);

            gn.addChild(sd);
   
            AddEdit ae=new AddEdit(gn, sd, null);
            getNode().getTree().getUndoableEditListener().undoableEditHappened(
                    new UndoableEditEvent(this, ae));

            getNode().refresh();
        }
View Full Code Here

        }
    }
   
    public void addChildUndoable(Node n){
        addChild(n);
        AddEdit ae=new AddEdit(this,n,null);
        getTree().getUndoableEditListener().undoableEditHappened(
                new UndoableEditEvent(this, ae));
    }
View Full Code Here

TOP

Related Classes of jsynoptic.plugins.java3d.edit.AddEdit

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.