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

Generates an egg file featuring a number of polygons, one for each named texture. More...

#include "eggTextureCards.h"

Inheritance diagram for EggTextureCards:
EggWriter EggSingleBase WithOutputFile EggBase ProgramBase

Public Member Functions

void run ()
 
- Public Member Functions inherited from EggWriter
 EggWriter (bool allow_last_param=false, bool allow_stdout=true)
 Egg-writing type programs may specify their output file using either the last-filename convention, the -o convention, and/or implicitly writing the result to standard output.
 
virtual EggWriteras_writer ()
 Returns this object as an EggWriter pointer, if it is in fact an EggWriter, or NULL if it is not.
 
virtual void post_process_egg_file ()
 Performs any processing of the egg file that is appropriate before writing it out.
 
void write_egg_file ()
 Writes out the egg file as the normal result of the program.
 
- Public Member Functions inherited from EggSingleBase
virtual EggReaderas_reader ()
 Returns this object as an EggReader pointer, if it is in fact an EggReader, or NULL if it is not.
 
- 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 Member Functions inherited from WithOutputFile
 WithOutputFile (bool allow_last_param, bool allow_stdout, bool binary_output)
 
void close_output ()
 Closes the output stream previously opened by get_output().
 
std::ostream & get_output ()
 Returns an output stream that corresponds to the user's intended egg file output–either stdout, or the named output file.
 
Filename get_output_filename () const
 If has_output_filename() returns true, this is the filename that the user specified.
 
bool has_output_filename () const
 Returns true if the user specified an output filename, false otherwise (e.g.
 

Public Attributes

int _aniso_degree
 
bool _apply_bface
 
EggTexture::Format _format
 
EggTexture::Format _format_1
 
EggTexture::Format _format_2
 
EggTexture::Format _format_3
 
EggTexture::Format _format_4
 
double _frame_rate
 
bool _got_aniso_degree
 
bool _got_pixel_scale
 
EggTexture::FilterType _magfilter
 
EggTexture::FilterType _minfilter
 
bool _noexist
 
LVecBase2d _pixel_scale
 
LColor _polygon_color
 
LVecBase4d _polygon_geometry
 
EggTexture::QualityLevel _quality_level
 
vector_string _suffixes
 
vector_string _texture_names
 
EggTexture::WrapMode _wrap_mode
 
EggTexture::WrapMode _wrap_u
 
EggTexture::WrapMode _wrap_v
 
- 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

Generates an egg file featuring a number of polygons, one for each named texture.

This is a support program for getting textures through egg- palettize.

Definition at line 32 of file eggTextureCards.h.

Constructor & Destructor Documentation

◆ EggTextureCards()

EggTextureCards::EggTextureCards ( )

Definition at line 30 of file eggTextureCards.cxx.

Member Function Documentation

◆ run()

void EggTextureCards::run ( )

Definition at line 360 of file eggTextureCards.cxx.

Member Data Documentation

◆ _aniso_degree

int EggTextureCards::_aniso_degree

Definition at line 65 of file eggTextureCards.h.

◆ _apply_bface

bool EggTextureCards::_apply_bface

Definition at line 69 of file eggTextureCards.h.

◆ _format

EggTexture::Format EggTextureCards::_format

Definition at line 67 of file eggTextureCards.h.

◆ _format_1

EggTexture::Format EggTextureCards::_format_1

Definition at line 68 of file eggTextureCards.h.

◆ _format_2

EggTexture::Format EggTextureCards::_format_2

Definition at line 68 of file eggTextureCards.h.

◆ _format_3

EggTexture::Format EggTextureCards::_format_3

Definition at line 68 of file eggTextureCards.h.

◆ _format_4

EggTexture::Format EggTextureCards::_format_4

Definition at line 68 of file eggTextureCards.h.

◆ _frame_rate

double EggTextureCards::_frame_rate

Definition at line 70 of file eggTextureCards.h.

◆ _got_aniso_degree

bool EggTextureCards::_got_aniso_degree

Definition at line 64 of file eggTextureCards.h.

◆ _got_pixel_scale

bool EggTextureCards::_got_pixel_scale

Definition at line 55 of file eggTextureCards.h.

◆ _magfilter

EggTexture::FilterType EggTextureCards::_magfilter

Definition at line 63 of file eggTextureCards.h.

◆ _minfilter

EggTexture::FilterType EggTextureCards::_minfilter

Definition at line 62 of file eggTextureCards.h.

◆ _noexist

bool EggTextureCards::_noexist

Definition at line 71 of file eggTextureCards.h.

◆ _pixel_scale

LVecBase2d EggTextureCards::_pixel_scale

Definition at line 54 of file eggTextureCards.h.

◆ _polygon_color

LColor EggTextureCards::_polygon_color

Definition at line 57 of file eggTextureCards.h.

◆ _polygon_geometry

LVecBase4d EggTextureCards::_polygon_geometry

Definition at line 53 of file eggTextureCards.h.

◆ _quality_level

EggTexture::QualityLevel EggTextureCards::_quality_level

Definition at line 66 of file eggTextureCards.h.

◆ _suffixes

vector_string EggTextureCards::_suffixes

Definition at line 56 of file eggTextureCards.h.

◆ _texture_names

vector_string EggTextureCards::_texture_names

Definition at line 58 of file eggTextureCards.h.

◆ _wrap_mode

EggTexture::WrapMode EggTextureCards::_wrap_mode

Definition at line 59 of file eggTextureCards.h.

◆ _wrap_u

EggTexture::WrapMode EggTextureCards::_wrap_u

Definition at line 60 of file eggTextureCards.h.

◆ _wrap_v

EggTexture::WrapMode EggTextureCards::_wrap_v

Definition at line 61 of file eggTextureCards.h.


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