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

TxaLine Class Reference

#include <txaLine.h>

List of all members.

Public Member Functions

 TxaLine ()
bool parse (const string &line)
bool match_egg (EggFile *egg_file) const
bool match_texture (TextureImage *texture) const
void output (ostream &out) const

Private Types

typedef pvector< GlobPatternPatterns
typedef pvector< KeywordKeywords
enum  SizeType { ST_none, ST_scale, ST_explicit_2, ST_explicit_3 }
enum  Keyword {
  KW_omit, KW_nearest, KW_linear, KW_mipmap,
  KW_cont, KW_anisotropic
}

Private Attributes

Patterns _texture_patterns
Patterns _egg_patterns
SizeType _size_type
float _scale
int _x_size
int _y_size
int _num_channels
EggTexture::Format _format
bool _force_format
bool _generic_format
EggRenderMode::AlphaMode _alpha_mode
int _aniso_degree
bool _got_margin
int _margin
bool _got_coverage_threshold
double _coverage_threshold
Keywords _keywords
PaletteGroups _palette_groups
PNMFileType_color_type
PNMFileType_alpha_type


Member Typedef Documentation

typedef pvector<Keyword> TxaLine::Keywords [private]
 

Definition at line 91 of file txaLine.h.

typedef pvector<GlobPattern> TxaLine::Patterns [private]
 

Definition at line 55 of file txaLine.h.


Member Enumeration Documentation

enum TxaLine::Keyword [private]
 

Enumeration values:
KW_omit 
KW_nearest 
KW_linear 
KW_mipmap 
KW_cont 
KW_anisotropic 

Definition at line 82 of file txaLine.h.

enum TxaLine::SizeType [private]
 

Enumeration values:
ST_none 
ST_scale 
ST_explicit_2 
ST_explicit_3 

Definition at line 59 of file txaLine.h.


Constructor & Destructor Documentation

TxaLine::TxaLine  ) 
 

Definition at line 36 of file txaLine.cxx.

References _alpha_mode, _alpha_type, _aniso_degree, _color_type, _coverage_threshold, _force_format, _format, _generic_format, _got_coverage_threshold, _got_margin, _margin, _num_channels, _scale, _size_type, _x_size, _y_size, EggRenderMode::AM_unspecified, EggTexture::F_unspecified, NULL, and ST_none.


Member Function Documentation

bool TxaLine::match_egg EggFile egg_file  )  const
 

Definition at line 307 of file txaLine.cxx.

References _egg_patterns, _keywords, _palette_groups, EggFile::clear_surprise(), Namable::get_name(), KW_anisotropic, KW_cont, KW_linear, KW_mipmap, KW_nearest, KW_omit, and EggFile::match_txa_groups().

bool TxaLine::match_texture TextureImage texture  )  const
 

Definition at line 370 of file txaLine.cxx.

References TextureRequest::_alpha_mode, _alpha_mode, _alpha_type, TextureProperties::_alpha_type, _aniso_degree, TextureRequest::_anisotropic_degree, TextureProperties::_color_type, _color_type, _coverage_threshold, TextureRequest::_coverage_threshold, _force_format, TextureRequest::_force_format, TextureRequest::_format, _format, TextureRequest::_generic_format, TextureRequest::_got_num_channels, TextureRequest::_got_size, _keywords, TextureRequest::_magfilter, _margin, TextureRequest::_margin, TextureRequest::_minfilter, _num_channels, TextureRequest::_num_channels, TextureRequest::_omit, _palette_groups, TextureRequest::_properties, _scale, _texture_patterns, _x_size, TextureRequest::_x_size, _y_size, TextureRequest::_y_size, EggRenderMode::AM_unspecified, EggTexture::F_unspecified, EggTexture::FT_linear, EggTexture::FT_linear_mipmap_linear, EggTexture::FT_nearest, SourceTextureImage::get_size(), ImageFile::get_x_size(), ImageFile::get_y_size(), KW_anisotropic, KW_cont, KW_linear, KW_mipmap, KW_nearest, KW_omit, NULL, ST_explicit_2, ST_explicit_3, ST_none, ST_scale, and texture.

void TxaLine::output ostream &  out  )  const
 

Definition at line 497 of file txaLine.cxx.

References _alpha_type, _aniso_degree, _color_type, _coverage_threshold, _egg_patterns, _format, _keywords, _margin, _num_channels, _palette_groups, _scale, _texture_patterns, _x_size, _y_size, PaletteGroups::begin(), PaletteGroups::const_iterator, PaletteGroups::end(), EggTexture::F_unspecified, PNMFileType::get_suggested_extension(), KW_anisotropic, KW_cont, KW_linear, KW_mipmap, KW_nearest, KW_omit, NULL, ST_explicit_2, ST_explicit_3, ST_none, and ST_scale.

Referenced by operator<<().

bool TxaLine::parse const string &  line  ) 
 

Definition at line 63 of file txaLine.cxx.

References _alpha_mode, _alpha_type, _aniso_degree, _color_type, _coverage_threshold, _egg_patterns, _force_format, _format, _generic_format, _got_coverage_threshold, _got_margin, _keywords, _margin, _num_channels, _palette_groups, _scale, _size_type, _texture_patterns, _x_size, _y_size, EggRenderMode::AlphaMode, EggRenderMode::AM_unspecified, dot(), extract_words(), EggTexture::F_unspecified, format, EggTexture::Format, PaletteGroups::insert(), KW_anisotropic, KW_cont, KW_linear, KW_mipmap, KW_nearest, KW_omit, nassertr, nout, NULL, pal, parse_image_type_request(), size_t, ST_explicit_2, ST_explicit_3, ST_none, ST_scale, EggRenderMode::string_alpha_mode(), EggTexture::string_format(), string_to_double(), string_to_int(), Palettizer::test_palette_group(), and vector_string.

Referenced by TxaFile::read().


Member Data Documentation

EggRenderMode::AlphaMode TxaLine::_alpha_mode [private]
 

Definition at line 74 of file txaLine.h.

Referenced by match_texture(), parse(), and TxaLine().

PNMFileType* TxaLine::_alpha_type [private]
 

Definition at line 97 of file txaLine.h.

Referenced by match_texture(), output(), parse(), and TxaLine().

int TxaLine::_aniso_degree [private]
 

Definition at line 76 of file txaLine.h.

Referenced by match_texture(), output(), parse(), and TxaLine().

PNMFileType* TxaLine::_color_type [private]
 

Definition at line 96 of file txaLine.h.

Referenced by match_texture(), output(), parse(), and TxaLine().

double TxaLine::_coverage_threshold [private]
 

Definition at line 80 of file txaLine.h.

Referenced by match_texture(), output(), parse(), and TxaLine().

Patterns TxaLine::_egg_patterns [private]
 

Definition at line 57 of file txaLine.h.

Referenced by match_egg(), output(), and parse().

bool TxaLine::_force_format [private]
 

Definition at line 72 of file txaLine.h.

Referenced by match_texture(), parse(), and TxaLine().

EggTexture::Format TxaLine::_format [private]
 

Definition at line 71 of file txaLine.h.

Referenced by match_texture(), output(), parse(), and TxaLine().

bool TxaLine::_generic_format [private]
 

Definition at line 73 of file txaLine.h.

Referenced by parse(), and TxaLine().

bool TxaLine::_got_coverage_threshold [private]
 

Definition at line 79 of file txaLine.h.

Referenced by parse(), and TxaLine().

bool TxaLine::_got_margin [private]
 

Definition at line 77 of file txaLine.h.

Referenced by parse(), and TxaLine().

Keywords TxaLine::_keywords [private]
 

Definition at line 92 of file txaLine.h.

Referenced by match_egg(), match_texture(), output(), and parse().

int TxaLine::_margin [private]
 

Definition at line 78 of file txaLine.h.

Referenced by match_texture(), output(), parse(), and TxaLine().

int TxaLine::_num_channels [private]
 

Definition at line 70 of file txaLine.h.

Referenced by match_texture(), output(), parse(), and TxaLine().

PaletteGroups TxaLine::_palette_groups [private]
 

Definition at line 94 of file txaLine.h.

Referenced by match_egg(), match_texture(), output(), and parse().

float TxaLine::_scale [private]
 

Definition at line 67 of file txaLine.h.

Referenced by match_texture(), output(), parse(), and TxaLine().

SizeType TxaLine::_size_type [private]
 

Definition at line 66 of file txaLine.h.

Referenced by parse(), and TxaLine().

Patterns TxaLine::_texture_patterns [private]
 

Definition at line 56 of file txaLine.h.

Referenced by match_texture(), output(), and parse().

int TxaLine::_x_size [private]
 

Definition at line 68 of file txaLine.h.

Referenced by match_texture(), output(), parse(), and TxaLine().

int TxaLine::_y_size [private]
 

Definition at line 69 of file txaLine.h.

Referenced by match_texture(), output(), parse(), and TxaLine().


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