|
|
|
This is the base class for a program that reads egg files, but doesn't write an egg file.
More...
#include "eggReader.h"
List of all members.
Public Member Functions |
| void | add_delod_options (double default_delod=-1.0) |
| | Adds -delod as a valid option for this program.
|
| void | add_texture_options () |
| | Adds -td, -te, etc.
|
| virtual EggReader * | as_reader () |
| | Returns this object as an EggReader pointer, if it is in fact an EggReader, or NULL if it is not.
|
| virtual void | pre_process_egg_file () |
| | Performs any processing of the egg file that is appropriate after reading it in.
|
Protected Member Functions |
| bool | do_reader_options () |
| | Postprocesses the egg file as the user requested according to whatever command-line options are in effect.
|
| virtual bool | handle_args (Args &args) |
| | Does something with the additional arguments on the command line (after all the -options have been parsed).
|
| virtual bool | post_command_line () |
| | This is called after the command line has been completely processed, and it gives the program a chance to do some last-minute processing and validation of the options and arguments.
|
Protected Attributes |
|
bool | _force_complete |
Detailed Description
This is the base class for a program that reads egg files, but doesn't write an egg file.
Definition at line 30 of file eggReader.h.
Member Function Documentation
Returns this object as an EggReader pointer, if it is in fact an EggReader, or NULL if it is not.
This is intended to work around the C++ limitation that prevents downcasts past virtual inheritance. Since both EggReader and EggWriter inherit virtually from EggSingleBase, we need functions like this to downcast to the appropriate pointer.
Reimplemented from EggSingleBase.
Definition at line 150 of file eggReader.cxx.
Postprocesses the egg file as the user requested according to whatever command-line options are in effect.
Returns true if everything is done correctly, false if there was some problem.
Definition at line 248 of file eggReader.cxx.
Does something with the additional arguments on the command line (after all the -options have been parsed).
Returns true if the arguments are good, false otherwise.
Reimplemented from ProgramBase.
Reimplemented in SomethingToEgg, EggToBam, EggToSomething, EggQtess, EggFilter, and EggToObj.
Definition at line 173 of file eggReader.cxx.
References DSearchPath::append_directory(), EggBase::convert_paths(), Filename::from_os_specific(), Filename::get_basename(), Filename::get_dirname(), EggData::load_externals(), EggData::original_had_absolute_pathnames(), pre_process_egg_file(), and EggData::read().
This is called after the command line has been completely processed, and it gives the program a chance to do some last-minute processing and validation of the options and arguments.
It should return true if everything is fine, false if there is an error.
Reimplemented from EggSingleBase.
Reimplemented in SomethingToEgg, EggFilter, and EggCrop.
Definition at line 235 of file eggReader.cxx.
Performs any processing of the egg file that is appropriate after reading it in.
Normally, you should not need to call this function directly; it is called automatically at startup.
Reimplemented in EggToSomething.
Definition at line 164 of file eggReader.cxx.
Referenced by handle_args().
The documentation for this class was generated from the following files:
| | |