26   _preferred_extension = 
".wrl";
    28   set_program_brief(
"reads and writes VRML 2.0 files");
    29   set_program_description
    30     (
"This program reads a VRML 2.0 file (.wrl) and writes an "    31      "essentially equivalent .wrl file.  It is primarily useful for "    32      "debugging the VRML parser that is part of the Pandatool library.");
    35   add_runline(
"[opts] input.wrl > output.wrl");
    36   add_runline(
"[opts] input.wrl output.wrl");
    37   add_runline(
"[opts] -o output.wrl input.wrl");
    41      "Specify the filename to which the resulting .wrl file will be written.  "    42      "If this option is omitted, the last parameter name is taken to be the "    43      "name of the output file.",
    44      &VRMLTrans::dispatch_filename, &_got_output_filename, &_output_filename);
    53   nout << 
"Reading " << _input_filename << 
"\n";
    56   if (scene == 
nullptr) {
    57     nout << 
"Unable to read.\n";
    70   if (!check_last_arg(args, 1)) {
    75     nout << 
"You must specify the .wrl file to read on the command line.\n";
    78   } 
else if (args.size() != 1) {
    79     nout << 
"You must specify only one .wrl file to read on the command line.\n";
    83   _input_filename = args[0];
    89 int main(
int argc, 
char *argv[]) {
 virtual void parse_command_line(int argc, char **argv)
Dispatches on each of the options on the command line, and passes the remaining parameters to handle_...
A program to read a VRML file and output an essentially similar VRML file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
VrmlScene * parse_vrml(Filename filename)
Reads the named VRML file and returns a corresponding VrmlScene, or NULL if there is a parse error.
This is our own Panda specialization on the default STL vector.
This is the bare functionality (intended to be inherited from along with ProgramBase or some derivati...
std::ostream & get_output()
Returns an output stream that corresponds to the user's intended egg file output–either stdout,...