Added field and getter for metadata entries to AiNode.java.

pull/1499/head
Doug Stephen 2017-10-11 10:56:40 -05:00
parent 3ef1f37a80
commit 00eb2e401a
1 changed files with 19 additions and 0 deletions

View File

@ -41,7 +41,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package jassimp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
@ -186,6 +188,18 @@ public final class AiNode {
return m_meshReferences;
}
/**
* Returns the metadata entries for this node.<p>
*
* Consult the original Doxygen for importer_notes to
* see which formats have metadata and what to expect.
*
* @return A map of metadata names to entries.
*/
public Map<String, AiMetadataEntry> getMetadata() {
return m_metaData;
}
/**
* Adds a child node.
@ -220,6 +234,11 @@ public final class AiNode {
*/
private final List<AiNode> m_children = new ArrayList<AiNode>();
/**
* List of metadata entries.
*/
private final Map<String, AiMetadataEntry> m_metaData = new HashMap<String, AiMetadataEntry>();
/**
* Buffer for transformation matrix.