public FBXBindingManager(FBXDocument doc)
        {
            this.doc              = doc;
            this.objects          = doc.GetDeclaration <FBXObject>(FBXDocument.Objects);
            this.connectionObject = doc.GetObject("Connections");
            this.connections      = connectionObject.Declarations["Connect"];

            LoadConnectionHeirarchys();
        }
Пример #2
0
        public static FBXDocument Load(string FBXfilename)
        {
            ANTLRFileStream fStream = new ANTLRFileStream(FBXfilename, Encoding.ASCII);
            fbxLexer        lexer   = new fbxLexer(fStream);
            fbxParser       parser  = new fbxParser(new CommonTokenStream(lexer));

            FBXDocument doc = parser.document();

            doc.bindingManager = new FBXBindingManager(doc);
            return(doc);
        }