Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TxaFile Class Reference

#include <txaFile.h>

List of all members.

Public Member Functions

 TxaFile ()
bool read (Filename filename)
bool match_egg (EggFile *egg_file) const
bool match_texture (TextureImage *texture) const
void write (ostream &out) const

Private Types

typedef pvector< TxaLineLines

Private Member Functions

bool parse_group_line (const vector_string &words)
bool parse_palette_line (const vector_string &words)
bool parse_margin_line (const vector_string &words)
bool parse_coverage_line (const vector_string &words)
bool parse_imagetype_line (const vector_string &words)
bool parse_shadowtype_line (const vector_string &words)
bool parse_round_line (const vector_string &words)
bool parse_remap_line (const vector_string &words)
bool parse_remapchar_line (const vector_string &words)

Private Attributes

Lines _lines


Member Typedef Documentation

typedef pvector<TxaLine> TxaFile::Lines [private]
 

Definition at line 59 of file txaFile.h.


Constructor & Destructor Documentation

TxaFile::TxaFile  ) 
 

Definition at line 34 of file txaFile.cxx.


Member Function Documentation

bool TxaFile::match_egg EggFile egg_file  )  const
 

Definition at line 135 of file txaFile.cxx.

References _lines.

Referenced by Palettizer::process_all(), and Palettizer::process_command_line_eggs().

bool TxaFile::match_texture TextureImage texture  )  const
 

Definition at line 156 of file txaFile.cxx.

References _lines, and texture.

Referenced by Palettizer::process_all(), Palettizer::process_command_line_eggs(), and PaletteGroup::update_unknown_textures().

bool TxaFile::parse_coverage_line const vector_string words  )  [private]
 

Definition at line 305 of file txaFile.cxx.

References Palettizer::_coverage_threshold, nout, pal, and string_to_double().

Referenced by read().

bool TxaFile::parse_group_line const vector_string words  )  [private]
 

Definition at line 191 of file txaFile.cxx.

References assert, Palettizer::get_palette_group(), PaletteGroup::group_with(), nout, pal, and PaletteGroup::set_dirname().

Referenced by read().

bool TxaFile::parse_imagetype_line const vector_string words  )  [private]
 

Definition at line 334 of file txaFile.cxx.

References Palettizer::_alpha_type, Palettizer::_color_type, PNMFileTypeRegistry::get_ptr(), nout, pal, parse_image_type_request(), and PNMFileTypeRegistry::write_types().

Referenced by read().

bool TxaFile::parse_margin_line const vector_string words  )  [private]
 

Definition at line 277 of file txaFile.cxx.

References Palettizer::_margin, nout, pal, and string_to_int().

Referenced by read().

bool TxaFile::parse_palette_line const vector_string words  )  [private]
 

Definition at line 247 of file txaFile.cxx.

References Palettizer::_pal_x_size, Palettizer::_pal_y_size, nout, pal, and string_to_int().

Referenced by read().

bool TxaFile::parse_remap_line const vector_string words  )  [private]
 

Definition at line 426 of file txaFile.cxx.

References Palettizer::_remap_char_uv, Palettizer::_remap_uv, nout, pal, Palettizer::RU_invalid, and Palettizer::string_remap().

Referenced by read().

bool TxaFile::parse_remapchar_line const vector_string words  )  [private]
 

bool TxaFile::parse_round_line const vector_string words  )  [private]
 

Definition at line 384 of file txaFile.cxx.

References Palettizer::_round_fuzz, Palettizer::_round_unit, Palettizer::_round_uvs, nout, pal, and string_to_double().

Referenced by read().

bool TxaFile::parse_shadowtype_line const vector_string words  )  [private]
 

Definition at line 359 of file txaFile.cxx.

References Palettizer::_shadow_alpha_type, Palettizer::_shadow_color_type, PNMFileTypeRegistry::get_ptr(), nout, pal, parse_image_type_request(), and PNMFileTypeRegistry::write_types().

Referenced by read().

bool TxaFile::read Filename  filename  ) 
 

Definition at line 44 of file txaFile.cxx.

References _lines, extract_words(), nout, Filename::open_read(), TxaLine::parse(), parse_coverage_line(), parse_group_line(), parse_imagetype_line(), parse_margin_line(), parse_palette_line(), parse_remap_line(), parse_round_line(), parse_shadowtype_line(), Filename::set_text(), size_t, trim_left(), and vector_string.

Referenced by Palettizer::read_txa_file().

void TxaFile::write ostream &  out  )  const
 

Definition at line 175 of file txaFile.cxx.

References _lines.


Member Data Documentation

Lines TxaFile::_lines [private]
 

Definition at line 60 of file txaFile.h.

Referenced by match_egg(), match_texture(), read(), and write().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:01:30 2003 for Panda-Tool by doxygen1.3