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

PalettePage Class Reference

#include <palettePage.h>

Inheritance diagram for PalettePage:

TypedWritable Namable TypedObject List of all members.

Public Member Functions

 PalettePage (PaletteGroup *group, const TextureProperties &properties)
PaletteGroupget_group () const
const TexturePropertiesget_properties () const
void assign (TexturePlacement *placement)
void place_all ()
void place (TexturePlacement *placement)
void unplace (TexturePlacement *placement)
void write_image_info (ostream &out, int indent_level=0) const
void optimal_resize ()
void reset_images ()
void setup_shadow_images ()
void update_images (bool redo_all)
virtual void write_datagram (BamWriter *writer, Datagram &datagram)
virtual int complete_pointers (TypedWritable **p_list, BamReader *manager)
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_PalettePage (const FactoryParams &params)

Private Types

typedef pvector< TexturePlacement * > Assigned
typedef pvector< PaletteImage * > Images

Private Member Functions

 PalettePage ()

Private Attributes

PaletteGroup_group
TextureProperties _properties
Assigned _assigned
Images _images
int _num_images

Static Private Attributes

TypeHandle _type_handle

Member Typedef Documentation

typedef pvector<TexturePlacement *> PalettePage::Assigned [private]
 

Definition at line 66 of file palettePage.h.

typedef pvector<PaletteImage *> PalettePage::Images [private]
 

Definition at line 69 of file palettePage.h.


Constructor & Destructor Documentation

PalettePage::PalettePage  )  [private]
 

Definition at line 42 of file palettePage.cxx.

References _group, and NULL.

PalettePage::PalettePage PaletteGroup group,
const TextureProperties properties
 

Definition at line 52 of file palettePage.cxx.


Member Function Documentation

void PalettePage::assign TexturePlacement placement  ) 
 

Definition at line 88 of file palettePage.cxx.

References _assigned.

Referenced by PaletteGroup::place_all().

int PalettePage::complete_pointers TypedWritable **  p_list,
BamReader manager
[virtual]
 

Reimplemented from TypedWritable.

Definition at line 298 of file palettePage.cxx.

References _group, _images, _num_images, _properties, TextureProperties::complete_pointers(), TypedWritable::complete_pointers(), DCAST_INTO_R, image, and NULL.

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

Reimplemented from TypedWritable.

Definition at line 346 of file palettePage.cxx.

References _num_images, _properties, TextureProperties::fillin(), TypedWritable::fillin(), DatagramIterator::get_string(), DatagramIterator::get_uint32(), BamReader::read_pointer(), BamReader::read_pointers(), and Namable::set_name().

Referenced by make_PalettePage().

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

Reimplemented from Namable.

Definition at line 89 of file palettePage.h.

References _type_handle.

Referenced by get_type(), and register_with_read_factory().

PaletteGroup * PalettePage::get_group  )  const
 

Definition at line 66 of file palettePage.cxx.

References _group.

Referenced by PaletteImage::PaletteImage().

const TextureProperties & PalettePage::get_properties  )  const
 

Definition at line 77 of file palettePage.cxx.

References _properties.

Referenced by PaletteGroup::finalize(), and PaletteImage::PaletteImage().

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

Reimplemented from TypedWritable.

Definition at line 99 of file palettePage.h.

References get_class_type().

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

Reimplemented from Namable.

Definition at line 92 of file palettePage.h.

References _type_handle, Namable::get_class_type(), TypedObject::get_class_type(), Namable::init_type(), TypedWritable::init_type(), and register_type().

Referenced by ConfigureFn().

TypedWritable * PalettePage::make_PalettePage const FactoryParams params  )  [static, protected]
 

Definition at line 328 of file palettePage.cxx.

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

Referenced by register_with_read_factory().

void PalettePage::optimal_resize  ) 
 

Definition at line 193 of file palettePage.cxx.

References _images, and image.

Referenced by PaletteGroup::optimal_resize().

void PalettePage::place TexturePlacement placement  ) 
 

Definition at line 130 of file palettePage.cxx.

References _images, TexturePlacement::get_omit_reason(), image, nassertv, and OR_working.

Referenced by place_all().

void PalettePage::place_all  ) 
 

Definition at line 100 of file palettePage.cxx.

References _assigned, _images, image, and place().

Referenced by PaletteGroup::place_all().

void PalettePage::register_with_read_factory  )  [static]
 

Definition at line 259 of file palettePage.cxx.

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

Referenced by ConfigureFn().

void PalettePage::reset_images  ) 
 

Definition at line 209 of file palettePage.cxx.

References _images, and image.

Referenced by PaletteGroup::reset_images().

void PalettePage::setup_shadow_images  ) 
 

Definition at line 229 of file palettePage.cxx.

References _images, and image.

Referenced by PaletteGroup::setup_shadow_images().

void PalettePage::unplace TexturePlacement placement  ) 
 

Definition at line 160 of file palettePage.cxx.

References TexturePlacement::get_image(), TexturePlacement::get_page(), TexturePlacement::is_placed(), nassertv, and PaletteImage::unplace().

Referenced by PaletteGroup::unplace().

void PalettePage::update_images bool  redo_all  ) 
 

Definition at line 244 of file palettePage.cxx.

References _images, and image.

Referenced by PaletteGroup::update_images().

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

Reimplemented from TypedWritable.

Definition at line 272 of file palettePage.cxx.

References _group, _images, _properties, Datagram::add_string(), Datagram::add_uint32(), Namable::get_name(), TextureProperties::write_datagram(), TypedWritable::write_datagram(), and writer().

void PalettePage::write_image_info ostream &  out,
int  indent_level = 0
const
 

Definition at line 173 of file palettePage.cxx.

References _images, image, and indent().

Referenced by PaletteGroup::write_image_info().


Member Data Documentation

Assigned PalettePage::_assigned [private]
 

Definition at line 67 of file palettePage.h.

Referenced by assign(), and place_all().

PaletteGroup* PalettePage::_group [private]
 

Definition at line 63 of file palettePage.h.

Referenced by complete_pointers(), get_group(), PalettePage(), and write_datagram().

Images PalettePage::_images [private]
 

Definition at line 70 of file palettePage.h.

Referenced by complete_pointers(), optimal_resize(), place(), place_all(), reset_images(), setup_shadow_images(), update_images(), write_datagram(), and write_image_info().

int PalettePage::_num_images [private]
 

Definition at line 86 of file palettePage.h.

Referenced by complete_pointers(), and fillin().

TextureProperties PalettePage::_properties [private]
 

Definition at line 64 of file palettePage.h.

Referenced by complete_pointers(), fillin(), get_properties(), and write_datagram().

TypeHandle PalettePage::_type_handle [static, private]
 

Reimplemented from Namable.

Definition at line 33 of file palettePage.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:01:20 2003 for Panda-Tool by doxygen1.3