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

AnimChannelScalarTable Class Reference

#include <animChannelScalarTable.h>

Inheritance diagram for AnimChannelScalarTable:

AnimChannel< ACScalarSwitchType > AnimChannelBase AnimGroup TypedWritableReferenceCount Namable TypedWritable ReferenceCount TypedObject List of all members.

Public Member Functions

 AnimChannelScalarTable (AnimGroup *parent, const string &name)
virtual bool has_changed (int last_frame, int this_frame)
virtual void get_value (int frame, float &value)
void set_table (const CPTA_float &table)
INLINE bool has_table () const
INLINE void clear_table ()
virtual void write (ostream &out, int indent_level) const
virtual void write_datagram (BamWriter *manager, Datagram &me)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

void register_with_read_factory (void)
TypedWritablemake_AnimChannelScalarTable (const FactoryParams &params)
TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

 AnimChannelScalarTable (void)
void fillin (DatagramIterator &scan, BamReader *manager)

Protected Attributes

CPTA_float _table

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

AnimChannelScalarTable::AnimChannelScalarTable AnimGroup parent,
const string &  name
 

Definition at line 39 of file animChannelScalarTable.cxx.

AnimChannelScalarTable::AnimChannelScalarTable void   )  [protected]
 

Definition at line 49 of file animChannelScalarTable.cxx.


Member Function Documentation

INLINE void AnimChannelScalarTable::clear_table  ) 
 

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

Reimplemented from AnimChannelBase.

Definition at line 244 of file animChannelScalarTable.cxx.

References _table, PointerToArray< float >::empty_array(), AnimChannelBase::fillin(), DatagramIterator::get_bool(), DatagramIterator::get_float32(), DatagramIterator::get_uint16(), DatagramIterator::get_uint8(), index, PointerToArray< float >::push_back(), FFTCompressor::read_header(), FFTCompressor::read_reals(), and PointerToArray< float >::v().

Referenced by make_AnimChannelScalarTable().

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

Reimplemented from AnimChannel< ACScalarSwitchType >.

Definition at line 65 of file animChannelScalarTable.h.

References AnimChannel< ACScalarSwitchType >::get_class_type(), and AnimChannel< ACScalarSwitchType >::init_type().

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

Reimplemented from AnimChannel< ACScalarSwitchType >.

Definition at line 66 of file animChannelScalarTable.h.

Referenced by register_with_read_factory().

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

Reimplemented from AnimChannel< ACScalarSwitchType >.

Definition at line 62 of file animChannelScalarTable.h.

References AnimChannel< ACScalarSwitchType >::get_class_type().

Referenced by write().

void AnimChannelScalarTable::get_value int  frame,
float &  value
[virtual]
 

Definition at line 78 of file animChannelScalarTable.cxx.

References _table, ConstPointerToArray< float >::empty(), and ConstPointerToArray< float >::size().

bool AnimChannelScalarTable::has_changed int  last_frame,
int  this_frame
[virtual]
 

Reimplemented from AnimChannelBase.

Definition at line 61 of file animChannelScalarTable.cxx.

References _table, and ConstPointerToArray< float >::size().

INLINE bool AnimChannelScalarTable::has_table  )  const
 

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

Reimplemented from AnimChannel< ACScalarSwitchType >.

Definition at line 69 of file animChannelScalarTable.h.

References AnimChannel< ACScalarSwitchType >::init_type(), and register_type().

Referenced by ConfigureFn().

TypedWritable * AnimChannelScalarTable::make_AnimChannelScalarTable const FactoryParams params  )  [static]
 

Definition at line 315 of file animChannelScalarTable.cxx.

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

Referenced by register_with_read_factory().

void AnimChannelScalarTable::register_with_read_factory void   )  [static]
 

Reimplemented from AnimGroup.

Definition at line 332 of file animChannelScalarTable.cxx.

References get_class_type(), BamReader::get_factory(), make_AnimChannelScalarTable(), and Factory< TypedWritable >::register_factory().

Referenced by ConfigureFn().

void AnimChannelScalarTable::set_table const CPTA_float table  ) 
 

Definition at line 93 of file animChannelScalarTable.cxx.

References AnimGroup::_root, _table, AnimBundle::get_num_frames(), num_frames, and table.

void AnimChannelScalarTable::write ostream &  out,
int  indent_level
const [virtual]
 

Reimplemented from AnimGroup.

Definition at line 112 of file animChannelScalarTable.cxx.

References AnimGroup::_children, _table, Namable::get_name(), get_type(), indent(), ConstPointerToArray< float >::size(), and AnimGroup::write_descendants().

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

Reimplemented from AnimChannelBase.

Definition at line 132 of file animChannelScalarTable.cxx.

References _table, Datagram::add_bool(), Datagram::add_float32(), Datagram::add_uint16(), Datagram::add_uint8(), cfloor(), compress_chan_quality, compress_channels, index, FFTCompressor::is_compression_available(), scale, FFTCompressor::set_quality(), ConstPointerToArray< float >::size(), AnimChannelBase::write_datagram(), FFTCompressor::write_header(), and FFTCompressor::write_reals().


Member Data Documentation

CPTA_float AnimChannelScalarTable::_table [protected]
 

Definition at line 50 of file animChannelScalarTable.h.

Referenced by fillin(), get_value(), has_changed(), set_table(), write(), and write_datagram().

TypeHandle AnimChannelScalarTable::_type_handle [static, private]
 

Reimplemented from AnimChannel< ACScalarSwitchType >.

Definition at line 31 of file animChannelScalarTable.cxx.


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