Package com.ardor3d.math

Examples of com.ardor3d.math.Transform.translate()


                // note: we round to get the text pixel aligned... otherwise it can get blurry
                v.set(Math.round(x), Math.round(y), 0);
                final Transform t = Transform.fetchTempInstance();
                t.set(getWorldTransform());
                t.applyForwardVector(v);
                t.translate(v);
                Vector3.releaseTempInstance(v);
                _uiText.setWorldTransform(t);
                Transform.releaseTempInstance(t);

                // draw the selection first
View Full Code Here


                + comp.getBorder().getBottom(), 0);

        final Transform t = Transform.fetchTempInstance();
        t.set(comp.getWorldTransform());
        t.applyForwardVector(v);
        t.translate(v);
        Vector3.releaseTempInstance(v);

        GradientBackdrop._mesh.setWorldTransform(t);
        Transform.releaseTempInstance(t);
View Full Code Here

                // note: we round to get the text pixel aligned... otherwise it can get blurry
                v.set(Math.round(x), Math.round(y), 0);
                final Transform t = Transform.fetchTempInstance();
                t.set(getWorldTransform());
                t.applyForwardVector(v);
                t.translate(v);
                Vector3.releaseTempInstance(v);
                _uiText.setWorldTransform(t);
                Transform.releaseTempInstance(t);

                // draw the selection first
View Full Code Here

            v.set(Math.round(x + getTotalLeft()), Math.round(y + getTotalBottom()), 0);

            final Transform t = Transform.fetchTempInstance();
            t.set(getWorldTransform());
            t.applyForwardVector(v);
            t.translate(v);
            Vector3.releaseTempInstance(v);

            _uiText.setWorldTransform(t);
            Transform.releaseTempInstance(t);
View Full Code Here

        v.set(comp.getMargin().getLeft(), comp.getMargin().getBottom(), 0);

        final Transform t = Transform.fetchTempInstance();
        t.set(comp.getWorldTransform());
        t.applyForwardVector(v);
        t.translate(v);
        Vector3.releaseTempInstance(v);

        SolidBorder._mesh.setWorldTransform(t);
        Transform.releaseTempInstance(t);
View Full Code Here

                    // shift our origin by total left/bottom
                    final Vector3 v = Vector3.fetchTempInstance();
                    v.set(gPar.getTotalLeft(), gPar.getTotalBottom(), 0);
                    t.applyForwardVector(v);
                    t.translate(v);
                    Vector3.releaseTempInstance(v);

                    // apply our local transform
                    t.multiply(_localTransform, _worldTransform);
                    Transform.releaseTempInstance(t);
View Full Code Here

                + comp.getBorder().getBottom(), 0);

        final Transform t = Transform.fetchTempInstance();
        t.set(comp.getWorldTransform());
        t.applyForwardVector(v);
        t.translate(v);
        Vector3.releaseTempInstance(v);

        SolidBackdrop._standin.setWorldTransform(t);
        Transform.releaseTempInstance(t);
View Full Code Here

        v.set(getPosX() + xOffset, getPosY() + yOffset, 0);

        final Transform t = Transform.fetchTempInstance();
        t.set(comp.getWorldTransform());
        t.applyForwardVector(v);
        t.translate(v);
        Vector3.releaseTempInstance(v);

        _strip.setWorldTransform(t);
        Transform.releaseTempInstance(t);
View Full Code Here

        awtTextureSource.getProvider().addElement(oval);

        // add an image element to test.
        t = new Transform();
        t.setScale(2.0);
        t.translate(-250, 150, 0);
        addBubble(t);

        // Setup labels for presenting example info.
        final Node textNodes = new Node("Text");
        _root.attachChild(textNodes);
View Full Code Here

        _logicalLayer.registerTrigger(new InputTrigger(new KeyPressedCondition(Key.V), new TriggerAction() {
            public void perform(final Canvas source, final TwoInputStates inputStates, final double tpf) {
                final Transform t = new Transform();
                t.setScale(MathUtils.nextRandomDouble() * 4.9 + 0.1);
                t.translate(MathUtils.nextRandomDouble() * 500 - 250, MathUtils.nextRandomDouble() * 500 - 250, 0);
                addBubble(t);
            }
        }));

        _logicalLayer.registerTrigger(new InputTrigger(new KeyPressedCondition(Key.ZERO), new TriggerAction() {
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.