Examples of attachChild()


Examples of com.ardor3d.scenegraph.Node.attachChild()

        nodes.put(name, node);
    }

    public Node attachToParent(String name, Spatial child) {
        Node node = getNode(name);
        node.attachChild(child);
        return node;
    }

    public Node dettachFromParent(String name, Spatial child) {
        Node node = getNode(name);
View Full Code Here

Examples of com.ardor3d.scenegraph.Node.attachChild()

        //final double infoStartY = camera.getHeight();
        for (int i = 0; i < infoText.length; i++) {
            infoText[i] = BasicText.createDefaultTextLabel("Text", "", 16);
            infoText[i].setTranslation(new Vector3(10, + i * 20, 0));
            textNodes.attachChild(infoText[i]);
            infoText[i].setText(" ");
        }
        textNodes.updateGeometricState(0.0);
    }
        
View Full Code Here

Examples of com.ardor3d.scenegraph.Node.attachChild()

       
        final Node reflectedNode = new Node("reflectNode");
       
        // SKY
        sky = new Sky(WATER_HEIGHT);
        reflectedNode.attachChild(sky);
        reflectedNode.attachChild(voxelPoolContainer.getNode());
        reflectedNode.attachChild(staticObjectNode);
       
        // WATER
        water = new PlainWater(camera, reflectedNode, sky, FAR_PLANE, WATER_HEIGHT); //= new Water(camera, reflectedNode, sky, FAR_PLANE, WATER_HEIGHT, timer);
View Full Code Here

Examples of com.ardor3d.scenegraph.Node.attachChild()

        final Node reflectedNode = new Node("reflectNode");
       
        // SKY
        sky = new Sky(WATER_HEIGHT);
        reflectedNode.attachChild(sky);
        reflectedNode.attachChild(voxelPoolContainer.getNode());
        reflectedNode.attachChild(staticObjectNode);
       
        // WATER
        water = new PlainWater(camera, reflectedNode, sky, FAR_PLANE, WATER_HEIGHT); //= new Water(camera, reflectedNode, sky, FAR_PLANE, WATER_HEIGHT, timer);
        root.attachChild(reflectedNode);   
View Full Code Here

Examples of com.ardor3d.scenegraph.extension.BillboardNode.attachChild()

        _root.setRenderState(ts);

        final Quad quad = new Quad("Quad", 5, 5);
        final BillboardNode billboard = new BillboardNode("Billboard");
        billboard.setAlignment(BillboardAlignment.ScreenAligned);
        billboard.attachChild(quad);
        _root.attachChild(billboard);

        _logicalLayer.registerTrigger(new InputTrigger(new KeyPressedCondition(Key.SPACE), new TriggerAction() {
            public void perform(final Canvas source, final TwoInputStates inputStates, final double tpf) {
                int ordinal = billboard.getAlignment().ordinal() + 1;
View Full Code Here

Examples of com.ardor3d.scenegraph.extension.PassNode.attachChild()

        final PassNode pNode = new PassNode();
        pNode.addPass(pass1);
        pNode.addPass(pass2);

        // Attach the box to the pass node.
        pNode.attachChild(box);

        // Attach the pass node to the scenegraph root.
        _root.attachChild(pNode);
    }
}
View Full Code Here

Examples of com.ardor3d.scenegraph.extension.QuadImposterNode.attachChild()

        imposter0.setCameraDistanceThreshold(0.1);
        _root.attachChild(imposter0);

        final Node scene1 = createModel();
        scene1.setTranslation(0, 0, 0);
        imposter0.attachChild(scene1);

        final QuadImposterNode imposter1 = new QuadImposterNode("Imposter1", 128, 128, _settings.getDepthBits(),
                _settings.getSamples(), _timer);
        imposter1.setRedrawRate(0.0); // No timed update
        imposter1.setCameraAngleThreshold(1.0 * MathUtils.DEG_TO_RAD);
 
View Full Code Here

Examples of com.ardor3d.scenegraph.extension.SwitchNode.attachChild()

        final SwitchNode switchNode = new SwitchNode();

        Box box = new Box("Box", new Vector3(), 2, 1, 1);
        box.setModelBound(new BoundingBox());
        box.setTranslation(new Vector3(0, 0, 0));
        switchNode.attachChild(box);

        box = new Box("Box", new Vector3(), 1, 2, 1);
        box.setModelBound(new BoundingBox());
        box.setTranslation(new Vector3(0, 0, 0));
        box.setRandomColors();
View Full Code Here

Examples of com.google.gwt.layout.client.Layout.attachChild()

    Layout layout = new Layout(parent);
    layout.onAttach();

    Element topChild = doc.createDivElement(), bottomChild = doc
        .createDivElement();
    Layer topLayer = layout.attachChild(topChild);
    Layer bottomLayer = layout.attachChild(bottomChild);

    // Stack the two children vertically, meeting at 50%.
    topLayer.setLeftRight(0, PX, 0, PX);
    bottomLayer.setLeftRight(0, PX, 0, PX);
View Full Code Here

Examples of com.jme.scene.BillboardNode.attachChild()

        return ret;
    }

    private BillboardNode getBillboard() {
        BillboardNode bb = new BillboardNode("bb");
        bb.attachChild(getQuad());
        return bb;
    }
}
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.