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

EggTextureCards Class Reference

#include <eggTextureCards.h>

Inheritance diagram for EggTextureCards:

EggWriter EggBase WithOutputFile ProgramBase List of all members.

Public Member Functions

 EggTextureCards ()
void run ()

Public Attributes

LVecBase4d _polygon_geometry
LVecBase2d _pixel_scale
bool _got_pixel_scale
Colorf _polygon_color
vector_string _texture_names
EggTexture::WrapMode _wrap_mode
EggTexture::Format _format
EggTexture::Format _format_1
EggTexture::Format _format_2
EggTexture::Format _format_3
EggTexture::Format _format_4
bool _apply_bface

Protected Member Functions

virtual bool handle_args (Args &args)

Static Protected Member Functions

bool dispatch_wrap_mode (const string &opt, const string &arg, void *var)
bool dispatch_format (const string &opt, const string &arg, void *var)

Private Member Functions

bool scan_texture (const Filename &filename, LVecBase4d &geometry, int &num_channels)
void make_vertices (const LPoint4d &geometry, EggVertexPool *vpool, EggVertex *&v1, EggVertex *&v2, EggVertex *&v3, EggVertex *&v4)

Constructor & Destructor Documentation

EggTextureCards::EggTextureCards  ) 
 

Definition at line 36 of file eggTextureCards.cxx.

References _apply_bface, _format, _format_1, _format_2, _format_3, _format_4, _got_pixel_scale, _pixel_scale, _polygon_color, _polygon_geometry, _wrap_mode, ProgramBase::add_option(), ProgramBase::add_runline(), ProgramBase::clear_runlines(), ProgramBase::dispatch_color(), ProgramBase::dispatch_double_pair(), ProgramBase::dispatch_double_quad(), dispatch_format(), ProgramBase::dispatch_none(), dispatch_wrap_mode(), EggTexture::F_unspecified, NULL, ProgramBase::set_program_description(), true, and EggTexture::WM_unspecified.


Member Function Documentation

bool EggTextureCards::dispatch_format const string &  opt,
const string &  arg,
void var
[static, protected]
 

Definition at line 192 of file eggTextureCards.cxx.

References EggTexture::F_unspecified, EggTexture::Format, nout, and EggTexture::string_format().

Referenced by EggTextureCards().

bool EggTextureCards::dispatch_wrap_mode const string &  opt,
const string &  arg,
void var
[static, protected]
 

Definition at line 163 of file eggTextureCards.cxx.

References nout, EggTexture::string_wrap_mode(), EggTexture::WM_clamp, EggTexture::WM_repeat, EggTexture::WM_unspecified, and EggTexture::WrapMode.

Referenced by EggTextureCards().

bool EggTextureCards::handle_args Args args  )  [protected, virtual]
 

Reimplemented from EggWriter.

Definition at line 138 of file eggTextureCards.cxx.

References _texture_names, WithOutputFile::check_last_arg(), and nout.

void EggTextureCards::make_vertices const LPoint4d &  geometry,
EggVertexPool vpool,
EggVertex *&  v1,
EggVertex *&  v2,
EggVertex *&  v3,
EggVertex *&  v4
[private]
 

Definition at line 245 of file eggTextureCards.cxx.

References EggVertexPool::make_new_vertex(), EggAttributes::set_uv(), and TexCoordd.

Referenced by run().

void EggTextureCards::run  ) 
 

Definition at line 275 of file eggTextureCards.cxx.

References EggBase::_data, _format, _format_1, _format_2, _format_3, _format_4, _got_pixel_scale, _polygon_color, _polygon_geometry, _texture_names, _wrap_mode, EggPrimitive::add_vertex(), EggTexture::F_unspecified, Filename::get_basename_wo_extension(), EggTexture::get_format(), make_vertices(), scan_texture(), EggPrimitive::set_bface_flag(), EggAttributes::set_color(), EggTexture::set_format(), EggGroup::set_switch_flag(), EggGroup::set_switch_fps(), EggPrimitive::set_texture(), EggTexture::set_wrap_mode(), and EggWriter::write_egg_file().

Referenced by main().

bool EggTextureCards::scan_texture const Filename filename,
LVecBase4d &  geometry,
int num_channels
[private]
 

Definition at line 218 of file eggTextureCards.cxx.

References _pixel_scale, _polygon_geometry, PNMImageHeader::get_num_channels(), PNMImageHeader::get_x_size(), PNMImageHeader::get_y_size(), nout, and PNMImageHeader::read_header().

Referenced by run().


Member Data Documentation

bool EggTextureCards::_apply_bface
 

Definition at line 64 of file eggTextureCards.h.

Referenced by EggTextureCards().

EggTexture::Format EggTextureCards::_format
 

Definition at line 62 of file eggTextureCards.h.

Referenced by EggTextureCards(), and run().

EggTexture::Format EggTextureCards::_format_1
 

Definition at line 63 of file eggTextureCards.h.

Referenced by EggTextureCards(), and run().

EggTexture::Format EggTextureCards::_format_2
 

Definition at line 63 of file eggTextureCards.h.

Referenced by EggTextureCards(), and run().

EggTexture::Format EggTextureCards::_format_3
 

Definition at line 63 of file eggTextureCards.h.

Referenced by EggTextureCards(), and run().

EggTexture::Format EggTextureCards::_format_4
 

Definition at line 63 of file eggTextureCards.h.

Referenced by EggTextureCards(), and run().

bool EggTextureCards::_got_pixel_scale
 

Definition at line 58 of file eggTextureCards.h.

Referenced by EggTextureCards(), and run().

LVecBase2d EggTextureCards::_pixel_scale
 

Definition at line 57 of file eggTextureCards.h.

Referenced by EggTextureCards(), and scan_texture().

Colorf EggTextureCards::_polygon_color
 

Definition at line 59 of file eggTextureCards.h.

Referenced by EggTextureCards(), and run().

LVecBase4d EggTextureCards::_polygon_geometry
 

Definition at line 56 of file eggTextureCards.h.

Referenced by EggTextureCards(), run(), and scan_texture().

vector_string EggTextureCards::_texture_names
 

Definition at line 60 of file eggTextureCards.h.

Referenced by handle_args(), and run().

EggTexture::WrapMode EggTextureCards::_wrap_mode
 

Definition at line 61 of file eggTextureCards.h.

Referenced by EggTextureCards(), and run().


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