PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "bamFile.h"
#include "config_pgraph.h"
#include "bam.h"
#include "bamCacheRecord.h"
#include "config_putil.h"
#include "bamReader.h"
#include "bamWriter.h"
#include "filename.h"
#include "config_express.h"
#include "virtualFileSystem.h"
#include "dcast.h"
Go to the source code of this file.
Functions | |
PT (PandaNode) BamFile | |
Although the bam file format is general enough to store a list of objects of arbitrary type, bam files on disk usually contain just one object, a PandaNode that is the root of a scene graph. More... | |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file bamFile.cxx.
PT | ( | PandaNode | ) |
Although the bam file format is general enough to store a list of objects of arbitrary type, bam files on disk usually contain just one object, a PandaNode that is the root of a scene graph.
(Bam files that store other kinds of things are usually given the extension "boo", for "binary other objects", to differentiate them from the normal scene graph type file.)
This is a convenience method for when you believe you are reading a scene graph bam file. It reads the one PandaNode and returns it. It also calls resolve() to fully resolve the object, since we expect this will be the only object in the file.
If the bam file contains something other than a PandaNode, an error is printed and NULL is returned.
Definition at line 133 of file bamFile.cxx.
References TypedObject::is_exact_type(), TypedObject::is_of_type(), and BamFile::read_object().