Package jsynoptic.plugins.java3d

Examples of jsynoptic.plugins.java3d.AttachDetach


     * @return a clone of the tree node with a clone of the scene graph object in
     */
    public SceneGraphTreeNode cloneNode(boolean deepClone, AbstractNode parent){
        SceneGraphObject o=(SceneGraphObject)getGraphObject();
        Node n=getSceneGraphNode();
        AttachDetach ad=null;
        if(n!=null && n.isLive()){
            ad=new AttachDetach(n);
            ad.detach();
        }
        Object clone=null;
        if(o instanceof Group){
            clone=((Group)o).cloneTree(deepClone);
        }
        else if(o instanceof Node){
            clone=((Node)o).cloneNode(deepClone);
        }
        else if(o instanceof NodeComponent){
            clone=((NodeComponent)o).cloneNodeComponent(deepClone);
        }
        else{
            if(ad!=null) ad.attach();
            throw new RuntimeException("Can not clone "+o);
        }
        if(ad!=null) ad.attach();
        return (SceneGraphTreeNode)parent.createNode(clone);
    }
View Full Code Here


            if(((SceneGraphObject)getGraphObject()).isLive()){
                Node n= getSceneGraphNode();
                if(_ad!=null){
                    throw new RuntimeException("Unexpected attach detach operation");
                }
                _ad=new AttachDetach(n);
                _ad.detach();
            }
            ((SceneGraphObject)getGraphObject()).setCapability(bit);
            return true;
        }
View Full Code Here

                    n=_holder.getSceneGraphNode();
                }
                if(_ad!=null){
                    throw new RuntimeException("Unexpected attach detach operation");
                }
                _ad=new AttachDetach(n);
                _ad.detach();
            }
            getCapableObject().setCapability(bit);
            return true;
        }
View Full Code Here

TOP

Related Classes of jsynoptic.plugins.java3d.AttachDetach

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.