Home | Hierarchy | Members | Alphabetical | Related Pages |
#include <scene.h>
Public Member Functions | |
Scene () | |
virtual | ~Scene () |
void | load (const char *fileName, bool verbose=false, bool fast=true) |
void | load (const std::string &fileName, bool verbose=false, bool fast=true) |
Public Attributes | |
MFNode | nodes |
std::deque< ProtoDeclaration * > | protos |
std::deque< ExternProtoDeclaration * > | externProtos |
#include <xdkwrl/scene.h> #include <xdkwrl/tools/prettyprinter.h> #include <stdexcept> using namespace std; int main(int argc,char** argv) { try { wrl::Scene scene; scene.load(argv[1],true); wrl::PrettyPrinter p(cout); p<<scene; } catch (runtime_error e) { cerr <<e.what()<<endl; } }
|
Constructs an empty scene. |
|
|
|
|
|
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
|
|
Once the load function has been called, this member contains all root nodes that has been parsed in the file. If load() is called successively on several files, this member is cleared each time so you cannot "accumulate" files in a Scene.
|
|
Once the load function has been called, this member contains all proto declarations that has been parsed in the file. If load() is called successively on several files, this member is cleared each time so you cannot "accumulate" files in a Scene. This protos are just declarations. If they are instanciated in the file then the nodes member contains somewhere in the hierarchy ProtoInstance nodes. See The Proto Classes for more info on protos classes.xb |
Generated on 24 Feb 2005 with version 1.3.9.1. |