Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
EggPalettize Class Reference

This is the program wrapper for egg-palettize, but it mainly serves to read in all the command-line parameters and then invoke the Palettizer. More...

#include "eggPalettize.h"

Inheritance diagram for EggPalettize:
EggMultiFilter EggMultiBase EggBase ProgramBase

Public Member Functions

void describe_input_file ()
 
virtual bool handle_args (Args &args)
 Does something with the additional arguments on the command line (after all the -options have been parsed).
 
void run ()
 
- Public Member Functions inherited from EggMultiFilter
 EggMultiFilter (bool allow_empty=false)
 
- Public Member Functions inherited from EggMultiBase
void post_process_egg_files ()
 Performs any processing of the egg file(s) that is appropriate before writing them out.
 
- Public Member Functions inherited from EggBase
void add_normals_options ()
 Adds -no, -np, etc.
 
void add_points_options ()
 Adds -points as a valid option for this program.
 
void add_transform_options ()
 Adds -TS, -TT, etc.
 
- Public Member Functions inherited from ProgramBase
 ProgramBase (const std::string &name=std::string())
 
std::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.
 
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().
 
void show_description ()
 Writes the program description to stderr.
 
void show_options ()
 Describes each of the available options to stderr.
 
void show_text (const std::string &prefix, int indent_width, std::string text)
 Formats the indicated text and its prefix for output to stderr with the known _terminal_width.
 
void show_text (const std::string &text)
 Formats the indicated text to stderr with the known _terminal_width.
 
void show_usage ()
 Writes the usage line(s) to stderr.
 
void write_man_page (std::ostream &out)
 Generates a man page in nroff syntax based on the description and options.
 

Public Attributes

std::string _default_groupdir
 
std::string _default_groupname
 
std::string _generated_image_pattern
 
bool _got_default_groupdir
 
bool _got_default_groupname
 
bool _got_generated_image_pattern
 
bool _got_map_dirname
 
bool _got_rel_dirname
 
bool _got_shadow_dirname
 
bool _got_txa_filename
 
bool _got_txa_script
 
std::string _map_dirname
 
bool _nodb
 
Filename _rel_dirname
 
Filename _shadow_dirname
 
Filename _txa_filename
 
std::string _txa_script
 
- Public Attributes inherited from ProgramBase
Args _program_args
 
Filename _program_name
 

Additional Inherited Members

- Public Types inherited from ProgramBase
typedef pdeque< std::string > Args
 
- Static Public Member Functions inherited from EggBase
static void convert_paths (EggNode *node, PathReplace *path_replace, const DSearchPath &additional_path)
 Recursively walks the egg hierarchy.
 

Detailed Description

This is the program wrapper for egg-palettize, but it mainly serves to read in all the command-line parameters and then invoke the Palettizer.

Definition at line 25 of file eggPalettize.h.

Constructor & Destructor Documentation

◆ EggPalettize()

EggPalettize::EggPalettize ( )

Definition at line 32 of file eggPalettize.cxx.

Member Function Documentation

◆ describe_input_file()

void EggPalettize::describe_input_file ( )

Definition at line 247 of file eggPalettize.cxx.

◆ handle_args()

bool EggPalettize::handle_args ( ProgramBase::Args & args)
virtual

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 EggMultiFilter.

Definition at line 226 of file eggPalettize.cxx.

◆ run()

void EggPalettize::run ( )

Definition at line 566 of file eggPalettize.cxx.

Member Data Documentation

◆ _default_groupdir

std::string EggPalettize::_default_groupdir

Definition at line 52 of file eggPalettize.h.

◆ _default_groupname

std::string EggPalettize::_default_groupname

Definition at line 50 of file eggPalettize.h.

◆ _generated_image_pattern

std::string EggPalettize::_generated_image_pattern

Definition at line 42 of file eggPalettize.h.

◆ _got_default_groupdir

bool EggPalettize::_got_default_groupdir

Definition at line 53 of file eggPalettize.h.

◆ _got_default_groupname

bool EggPalettize::_got_default_groupname

Definition at line 51 of file eggPalettize.h.

◆ _got_generated_image_pattern

bool EggPalettize::_got_generated_image_pattern

Definition at line 43 of file eggPalettize.h.

◆ _got_map_dirname

bool EggPalettize::_got_map_dirname

Definition at line 45 of file eggPalettize.h.

◆ _got_rel_dirname

bool EggPalettize::_got_rel_dirname

Definition at line 49 of file eggPalettize.h.

◆ _got_shadow_dirname

bool EggPalettize::_got_shadow_dirname

Definition at line 47 of file eggPalettize.h.

◆ _got_txa_filename

bool EggPalettize::_got_txa_filename

Definition at line 37 of file eggPalettize.h.

◆ _got_txa_script

bool EggPalettize::_got_txa_script

Definition at line 39 of file eggPalettize.h.

◆ _map_dirname

std::string EggPalettize::_map_dirname

Definition at line 44 of file eggPalettize.h.

◆ _nodb

bool EggPalettize::_nodb

Definition at line 41 of file eggPalettize.h.

◆ _rel_dirname

Filename EggPalettize::_rel_dirname

Definition at line 48 of file eggPalettize.h.

◆ _shadow_dirname

Filename EggPalettize::_shadow_dirname

Definition at line 46 of file eggPalettize.h.

◆ _txa_filename

Filename EggPalettize::_txa_filename

Definition at line 38 of file eggPalettize.h.

◆ _txa_script

std::string EggPalettize::_txa_script

Definition at line 40 of file eggPalettize.h.


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