Panda3D
Public Member Functions | Static Public Member Functions | List of all members
EggBase Class Reference

This is a base class for both EggSingleBase and EggMultiBase. More...

#include "eggBase.h"

Inheritance diagram for EggBase:
ProgramBase EggMultiBase EggSingleBase EggMultiFilter EggReader EggWriter EggCharacterFilter EggPalettize EggRename EggFilter EggListTextures EggFilter EggMakeFont EggMakeSomething EggTextureCards

Public Member Functions

void add_normals_options ()
 Adds -no, -np, etc. More...
 
void add_points_options ()
 Adds -points as a valid option for this program. More...
 
void add_transform_options ()
 Adds -TS, -TT, etc. More...
 
- Public Member Functions inherited from ProgramBase
 ProgramBase (const string &name=string())
 
string get_exec_command () const
 Returns the command that invoked this program, as a shell-friendly string, suitable for pasting into the comments of output files. More...
 
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_args(). More...
 
void show_description ()
 Writes the program description to stderr. More...
 
void show_options ()
 Describes each of the available options to stderr. More...
 
void show_text (const string &text)
 Formats the indicated text to stderr with the known _terminal_width. More...
 
void show_text (const string &prefix, int indent_width, string text)
 Formats the indicated text and its prefix for output to stderr with the known _terminal_width. More...
 
void show_usage ()
 Writes the usage line(s) to stderr. More...
 
void write_man_page (ostream &out)
 Generates a man page in nroff syntax based on the description and options. More...
 

Static Public Member Functions

static void convert_paths (EggNode *node, PathReplace *path_replace, const DSearchPath &additional_path)
 Recursively walks the egg hierarchy. More...
 

Additional Inherited Members

- Public Types inherited from ProgramBase
typedef pdeque< string > Args
 
- Public Attributes inherited from ProgramBase
Args _program_args
 
Filename _program_name
 

Detailed Description

This is a base class for both EggSingleBase and EggMultiBase.

Don't inherit directly from this; use one of those two classes instead.

This is just a base class; see EggReader, EggWriter, or EggFilter according to your particular I/O needs.

Definition at line 32 of file eggBase.h.

Member Function Documentation

◆ add_normals_options()

void EggBase::add_normals_options ( )

Adds -no, -np, etc.

as valid options for this program. If the user specifies one of the options on the command line, the normals will be adjusted when the egg file is written out.

Definition at line 63 of file eggBase.cxx.

References add_points_options().

◆ add_points_options()

void EggBase::add_points_options ( )

Adds -points as a valid option for this program.

Definition at line 119 of file eggBase.cxx.

References add_transform_options().

Referenced by add_normals_options().

◆ add_transform_options()

void EggBase::add_transform_options ( )

Adds -TS, -TT, etc.

as valid options for this program. If the user specifies one of the options on the command line, the data will be transformed when the egg file is written out.

Definition at line 135 of file eggBase.cxx.

References convert_paths().

Referenced by add_points_options().

◆ convert_paths()

void EggBase::convert_paths ( EggNode node,
PathReplace path_replace,
const DSearchPath additional_path 
)
static

The documentation for this class was generated from the following files: