Package de.ailis.jollada.model

Examples of de.ailis.jollada.model.ScaleTransform


     */

    @Test
    public void testConstructor()
    {
        final ScaleTransform transform = new ScaleTransform();
        assertNull(transform.getSid());
        assertNotNull(transform.getScaling());
    }
View Full Code Here


     */

    @Test
    public void testSid()
    {
        final ScaleTransform transform = new ScaleTransform();
        assertNull(transform.getSid());
        transform.setSid("foo");
        assertEquals("foo", transform.getSid());
        transform.setSid(null);
        assertNull(transform.getSid());
    }
View Full Code Here

     */

    @Test
    public void testScaling()
    {
        final ScaleTransform transform = new ScaleTransform();
        assertTrue(transform.getScaling().isNull());
        final ImmutableVector3d translation = new ImmutableVector3d(1, 2, 3);
        transform.setScaling(translation);
        assertEquals(translation.getX(), transform.getScaling().getX(),
            0.0001f);
        assertEquals(translation.getY(), transform.getScaling().getY(),
            0.0001f);
        assertEquals(translation.getZ(), transform.getScaling().getZ(),
            0.0001f);
    }
View Full Code Here

     */

    @Test(expected = IllegalArgumentException.class)
    public void testScalingWithNull()
    {
        new ScaleTransform().setScaling(null);
    }
View Full Code Here

     *            The element attributes.
     */

    private void enterScale(final Attributes attributes)
    {
        final ScaleTransform transform = new ScaleTransform();
        transform.setSid(attributes.getValue("sid"));

        final MutableVector3d vector = transform.getScaling();
        this.chunkFloatReader = new ChunkFloatReader()
        {
            private int index = 0;

            @Override
View Full Code Here

TOP

Related Classes of de.ailis.jollada.model.ScaleTransform

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.