Package de.ailis.jollada.model

Examples of de.ailis.jollada.model.MatrixTransform


     */

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


     */

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

     */

    @Test
    public void testMatrix()
    {
        final MatrixTransform transform = new MatrixTransform();
        assertTrue(transform.getMatrix().isIdentity());
        final ImmutableMatrix4d translation = new ImmutableMatrix4d(0, 1, 2, 3,
            4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
        transform.setMatrix(translation);
        assertEquals(translation, new ImmutableMatrix4d(transform.getMatrix()));
    }
View Full Code Here

     */

    @Test(expected = IllegalArgumentException.class)
    public void testMatrixWithNull()
    {
        new MatrixTransform().setMatrix(null);
    }
View Full Code Here

     *            The element attributes.
     */

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

        final MutableMatrix4d matrix = transform.getMatrix();
        this.chunkFloatReader = new ChunkFloatReader()
        {
            private int index = 0;

            @Override
View Full Code Here

TOP

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

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.