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

ImageBuffer Class Reference

#include <imageBuffer.h>

Inheritance diagram for ImageBuffer:

ReferenceCount WritableConfigurable Namable TypedWritable TypedObject PixelBuffer Texture List of all members.

Public Member Functions

virtual void config (void)
virtual void copy (GraphicsStateGuardianBase *, const DisplayRegion *)=0
virtual void copy (GraphicsStateGuardianBase *, const DisplayRegion *, const RenderBuffer &rb)=0
INLINE const Filename & get_filename () const
INLINE bool has_alpha_filename () const
INLINE const Filename & get_alpha_filename () const
INLINE bool has_fullpath () const
INLINE const Filename & get_fullpath () const
INLINE bool has_alpha_fullpath () const
INLINE const Filename & get_alpha_fullpath () const
INLINE void set_filename (const Filename &filename)
INLINE void clear_filename ()
INLINE void set_alpha_filename (const Filename &alpha_filename)
INLINE void clear_alpha_filename ()
INLINE void set_fullpath (const Filename &fullpath)
INLINE void clear_fullpath ()
INLINE void set_alpha_fullpath (const Filename &alpha_fullpath)
INLINE void clear_alpha_fullpath ()
virtual void write_datagram (BamWriter *manager, Datagram &me)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Public Attributes

PUBLISHED __pad1__: INLINE bool has_filename() const

Protected Member Functions

void fillin (DatagramIterator &scan, BamReader *manager)

Protected Attributes

int _primary_file_num_channels
int _alpha_file_channel

Private Member Functions

virtual ~ImageBuffer ()

Private Attributes

PUBLISHED __pad0__: ImageBuffer()
Filename _filename
Filename _alpha_filename
Filename _fullpath
Filename _alpha_fullpath

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

ImageBuffer::~ImageBuffer  )  [private, virtual]
 

Definition at line 48 of file imageBuffer.cxx.


Member Function Documentation

INLINE void ImageBuffer::clear_alpha_filename  ) 
 

Referenced by Texture::read(), and PixelBuffer::read().

INLINE void ImageBuffer::clear_alpha_fullpath  ) 
 

Referenced by Texture::read().

INLINE void ImageBuffer::clear_filename  ) 
 

INLINE void ImageBuffer::clear_fullpath  ) 
 

virtual void ImageBuffer::config void   )  [inline, virtual]
 

Reimplemented from WritableConfigurable.

Reimplemented in PixelBuffer.

Definition at line 44 of file imageBuffer.h.

References WritableConfigurable::config().

Referenced by PixelBuffer::config().

virtual void ImageBuffer::copy GraphicsStateGuardianBase ,
const DisplayRegion ,
const RenderBuffer rb
[pure virtual]
 

Implemented in PixelBuffer, and Texture.

virtual void ImageBuffer::copy GraphicsStateGuardianBase ,
const DisplayRegion
[pure virtual]
 

Implemented in PixelBuffer, and Texture.

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

Reimplemented from TypedWritable.

Reimplemented in Texture.

Definition at line 115 of file imageBuffer.cxx.

References _alpha_file_channel, _primary_file_num_channels, BamReader::get_file_minor_ver(), DatagramIterator::get_string(), DatagramIterator::get_uint8(), set_alpha_filename(), set_filename(), and Namable::set_name().

virtual TypeHandle ImageBuffer::force_init_type void   )  [inline, virtual]
 

Reimplemented from WritableConfigurable.

Reimplemented in PixelBuffer, and Texture.

Definition at line 114 of file imageBuffer.h.

References Namable::get_class_type(), and Namable::init_type().

INLINE const Filename& ImageBuffer::get_alpha_filename  )  const
 

Referenced by EggGroupNode::resolve_filenames(), and write_datagram().

INLINE const Filename& ImageBuffer::get_alpha_fullpath  )  const
 

Referenced by Texture::get_ram_image(), and write_datagram().

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

Reimplemented from Namable.

Reimplemented in PixelBuffer, and Texture.

Definition at line 99 of file imageBuffer.h.

Referenced by Texture::force_init_type(), PixelBuffer::force_init_type(), Texture::get_type(), PixelBuffer::get_type(), Texture::init_type(), and PixelBuffer::init_type().

INLINE const Filename& ImageBuffer::get_filename  )  const
 

Referenced by EggTextureCollection::find_filename(), get_textures_by_filename(), TexturePool::ns_add_texture(), TexturePool::ns_release_texture(), EggGroupNode::resolve_filenames(), PixelBuffer::write(), and write_datagram().

INLINE const Filename& ImageBuffer::get_fullpath  )  const
 

Referenced by Texture::get_ram_image(), and write_datagram().

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

Reimplemented from WritableConfigurable.

Reimplemented in PixelBuffer, and Texture.

Definition at line 111 of file imageBuffer.h.

References Namable::get_class_type().

INLINE bool ImageBuffer::has_alpha_filename  )  const
 

Referenced by EggGroupNode::resolve_filenames().

INLINE bool ImageBuffer::has_alpha_fullpath  )  const
 

Referenced by Texture::get_ram_image().

INLINE bool ImageBuffer::has_fullpath  )  const
 

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

Reimplemented from Namable.

Reimplemented in PixelBuffer, and Texture.

Definition at line 102 of file imageBuffer.h.

References Namable::get_class_type(), TypedObject::get_class_type(), ReferenceCount::get_class_type(), Namable::init_type(), WritableConfigurable::init_type(), ReferenceCount::init_type(), and register_type().

Referenced by ConfigureFn(), Texture::force_init_type(), PixelBuffer::force_init_type(), Texture::init_type(), and PixelBuffer::init_type().

INLINE void ImageBuffer::set_alpha_filename const Filename &  alpha_filename  ) 
 

Referenced by fillin(), EggLoader::load_texture(), TexturePool::ns_load_texture(), Texture::read(), and EggGroupNode::resolve_filenames().

INLINE void ImageBuffer::set_alpha_fullpath const Filename &  alpha_fullpath  ) 
 

Referenced by Texture::read().

INLINE void ImageBuffer::set_filename const Filename &  filename  ) 
 

Referenced by fillin(), EggLoader::load_texture(), TexturePool::ns_load_texture(), Texture::read(), PixelBuffer::read(), and EggGroupNode::resolve_filenames().

INLINE void ImageBuffer::set_fullpath const Filename &  fullpath  ) 
 

Referenced by Texture::read().

void ImageBuffer::write_datagram BamWriter manager,
Datagram me
[virtual]
 

Implements WritableConfigurable.

Reimplemented in Texture.

Definition at line 58 of file imageBuffer.cxx.

References _alpha_file_channel, _primary_file_num_channels, Datagram::add_string(), Datagram::add_uint8(), bam_texture_mode, BTM_basename, BTM_fullpath, BTM_relative, BTM_unchanged, get_alpha_filename(), get_alpha_fullpath(), get_filename(), get_fullpath(), get_model_path(), Namable::get_name(), and get_texture_path().

Referenced by Texture::write_datagram().


Member Data Documentation

PUBLISHED ImageBuffer::__pad0__ [private]
 

Reimplemented from Namable.

Reimplemented in Texture.

Definition at line 40 of file imageBuffer.h.

PUBLISHED ImageBuffer::__pad1__
 

Reimplemented in Texture.

Definition at line 51 of file imageBuffer.h.

int ImageBuffer::_alpha_file_channel [protected]
 

Definition at line 88 of file imageBuffer.h.

Referenced by fillin(), Texture::read(), and write_datagram().

Filename ImageBuffer::_alpha_filename [private]
 

Definition at line 74 of file imageBuffer.h.

Filename ImageBuffer::_alpha_fullpath [private]
 

Definition at line 76 of file imageBuffer.h.

Filename ImageBuffer::_filename [private]
 

Definition at line 73 of file imageBuffer.h.

Filename ImageBuffer::_fullpath [private]
 

Definition at line 75 of file imageBuffer.h.

int ImageBuffer::_primary_file_num_channels [protected]
 

Definition at line 82 of file imageBuffer.h.

Referenced by fillin(), Texture::read(), and write_datagram().

TypeHandle ImageBuffer::_type_handle [static, private]
 

Reimplemented from Namable.

Reimplemented in PixelBuffer, and Texture.

Definition at line 29 of file imageBuffer.cxx.


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