Class ColladaNode

    • Field Detail

      • children

        protected java.util.List<ColladaRenderable> children
        Children of this node. Children may be ColladaNode (direct child of this node) or ColladaInstanceNode (reference to a node elsewhere in the current document, or another document).
      • shapes

        protected java.util.List<ColladaMeshShape> shapes
        Shape used to render geometry in this node.
      • matrix

        protected Matrix matrix
        Transform matrix for this node.
    • Constructor Detail

      • ColladaNode

        public ColladaNode​(java.lang.String ns)
        Construct an instance.
        Parameters:
        ns - the qualifying namespace URI. May be null to indicate no namespace qualification.
    • Method Detail

      • createShapes

        protected java.util.List<ColladaMeshShape> createShapes()
        Create shapes to render this node.
        Returns:
        List shapes. The list may be empty, but will never be null.
      • createShapesForGeometry

        protected void createShapesForGeometry​(ColladaInstanceGeometry geomInstance,
                                               java.util.List<ColladaMeshShape> shapes)
        Create shapes for a geometry.
        Parameters:
        geomInstance - Geometry for which to create shapes.
        shapes - List to collect the new shapes.
      • getChildren

        protected java.util.List<ColladaRenderable> getChildren()
        Indicates the children of this node. Children may be other node elements contained directly within this node, or other nodes referenced indirectly by a instance_node element.
        Returns:
        List of children. The list may be empty, but will never be null.
      • getMatrix

        protected Matrix getMatrix()
        Indicates the transform matrix specified in this node.
        Returns:
        The matrix specified in this node. Returns the identity matrix if the node does not specify a matrix.
      • parseDoubleArray

        protected double[] parseDoubleArray​(java.lang.String doubleArrayString)
        Parse a string of doubles into a double[].
        Parameters:
        doubleArrayString - String of doubles, separated by whitespace.
        Returns:
        Parsed double[]