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

DestTextureImage Class Reference

#include <destTextureImage.h>

Inheritance diagram for DestTextureImage:

ImageFile TypedWritable TypedObject List of all members.

Public Member Functions

 DestTextureImage (TexturePlacement *placement)
void copy (TextureImage *texture)
void copy_if_stale (const DestTextureImage *other, TextureImage *texture)
virtual void write_datagram (BamWriter *writer, Datagram &datagram)
virtual TypeHandle get_type () const

Static Public Member Functions

void register_with_read_factory ()
TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

void fillin (DatagramIterator &scan, BamReader *manager)

Static Protected Member Functions

TypedWritablemake_DestTextureImage (const FactoryParams &params)

Private Member Functions

 DestTextureImage ()

Static Private Member Functions

int to_power_2 (int value)

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

DestTextureImage::DestTextureImage  )  [private]
 

Definition at line 40 of file destTextureImage.cxx.

DestTextureImage::DestTextureImage TexturePlacement placement  ) 
 

Definition at line 49 of file destTextureImage.cxx.

References Palettizer::_force_power_2, ImageFile::_properties, ImageFile::_size_known, ImageFile::_x_size, ImageFile::_y_size, TexturePlacement::get_group(), TexturePlacement::get_texture(), pal, ImageFile::set_filename(), texture, and to_power_2().


Member Function Documentation

void DestTextureImage::copy TextureImage texture  ) 
 

Definition at line 73 of file destTextureImage.cxx.

References ImageFile::_x_size, ImageFile::_y_size, PNMImage::fill(), PNMImageHeader::get_maxval(), PNMImage::is_valid(), PNMImage::quick_filter_from(), texture, and ImageFile::write().

Referenced by copy_if_stale().

void DestTextureImage::copy_if_stale const DestTextureImage *  other,
TextureImage texture
 

Definition at line 98 of file destTextureImage.cxx.

References Filename::compare_timestamps(), copy(), ImageFile::get_filename(), ImageFile::get_num_channels(), ImageFile::get_x_size(), ImageFile::get_y_size(), NULL, and texture.

void DestTextureImage::fillin DatagramIterator scan,
BamReader manager
[protected]
 

Reimplemented from ImageFile.

Definition at line 181 of file destTextureImage.cxx.

References ImageFile::fillin().

Referenced by make_DestTextureImage().

TypeHandle DestTextureImage::get_class_type void   )  [inline, static]
 

Reimplemented from ImageFile.

Definition at line 59 of file destTextureImage.h.

References _type_handle.

Referenced by get_type(), and register_with_read_factory().

virtual TypeHandle DestTextureImage::get_type void   )  const [inline, virtual]
 

Reimplemented from ImageFile.

Definition at line 67 of file destTextureImage.h.

References get_class_type().

void DestTextureImage::init_type void   )  [inline, static]
 

Reimplemented from ImageFile.

Definition at line 62 of file destTextureImage.h.

References _type_handle, ImageFile::get_class_type(), ImageFile::init_type(), and register_type().

Referenced by ConfigureFn().

TypedWritable * DestTextureImage::make_DestTextureImage const FactoryParams params  )  [static, protected]
 

Definition at line 163 of file destTextureImage.cxx.

References fillin(), params, and parse_params().

Referenced by register_with_read_factory().

void DestTextureImage::register_with_read_factory  )  [static]
 

Definition at line 137 of file destTextureImage.cxx.

References get_class_type(), BamReader::get_factory(), and make_DestTextureImage().

Referenced by ConfigureFn().

int DestTextureImage::to_power_2 int  value  )  [static, private]
 

Definition at line 122 of file destTextureImage.cxx.

References x.

Referenced by DestTextureImage().

void DestTextureImage::write_datagram BamWriter writer,
Datagram datagram
[virtual]
 

Reimplemented from ImageFile.

Definition at line 150 of file destTextureImage.cxx.

References ImageFile::write_datagram(), and writer().


Member Data Documentation

TypeHandle DestTextureImage::_type_handle [static, private]
 

Reimplemented from ImageFile.

Definition at line 30 of file destTextureImage.cxx.

Referenced by get_class_type(), and init_type().


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