Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Friends

CharacterVertexSlider Class Reference

This is a specialization on VertexSlider that returns the slider value associated with a particular CharacterSlider object. More...

#include "characterVertexSlider.h"

Inheritance diagram for CharacterVertexSlider:
VertexSlider TypedWritableReferenceCount TypedWritable ReferenceCount TypedObject MemoryBase MemoryBase

List of all members.

Public Member Functions

 CharacterVertexSlider (CharacterSlider *char_slider)
 Constructs a new object that converts vertices from the indicated joint's coordinate space, into the other indicated joint's space.
virtual int complete_pointers (TypedWritable **plist, BamReader *manager)
 Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
virtual TypeHandle force_init_type ()
const CharacterSliderget_char_slider () const
 Returns the CharacterSlider object for which this object returns the slider value.
virtual PN_stdfloat get_slider () const
 Returns the current slider value.
virtual TypeHandle get_type () const
virtual void write_datagram (BamWriter *manager, Datagram &dg)
 Writes the contents of this object to the datagram for shipping out to a Bam file.

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()
static void register_with_read_factory ()
 Tells the BamReader how to create objects of type CharacterVertexSlider.

Protected Member Functions

void fillin (DatagramIterator &scan, BamReader *manager)
 This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new CharacterVertexSlider.

Static Protected Member Functions

static TypedWritablemake_from_bam (const FactoryParams &params)
 This function is called by the BamReader's factory when a new object of type CharacterVertexSlider is encountered in the Bam file.

Friends

class CharacterSlider

Detailed Description

This is a specialization on VertexSlider that returns the slider value associated with a particular CharacterSlider object.

Definition at line 29 of file characterVertexSlider.h.


Constructor & Destructor Documentation

CharacterVertexSlider::CharacterVertexSlider ( CharacterSlider char_slider)

Constructs a new object that converts vertices from the indicated joint's coordinate space, into the other indicated joint's space.

Definition at line 43 of file characterVertexSlider.cxx.


Member Function Documentation

int CharacterVertexSlider::complete_pointers ( TypedWritable **  p_list,
BamReader manager 
) [virtual]

Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().

Returns the number of pointers processed.

Reimplemented from TypedWritable.

Definition at line 104 of file characterVertexSlider.cxx.

void CharacterVertexSlider::fillin ( DatagramIterator scan,
BamReader manager 
) [protected, virtual]

This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new CharacterVertexSlider.

Reimplemented from VertexSlider.

Definition at line 142 of file characterVertexSlider.cxx.

References BamReader::read_pointer().

const CharacterSlider * CharacterVertexSlider::get_char_slider ( ) const [inline]

Returns the CharacterSlider object for which this object returns the slider value.

Definition at line 23 of file characterVertexSlider.I.

PN_stdfloat CharacterVertexSlider::get_slider ( ) const [virtual]

Returns the current slider value.

Implements VertexSlider.

Definition at line 68 of file characterVertexSlider.cxx.

TypedWritable * CharacterVertexSlider::make_from_bam ( const FactoryParams params) [static, protected]

This function is called by the BamReader's factory when a new object of type CharacterVertexSlider is encountered in the Bam file.

It should create the CharacterVertexSlider and extract its information from the file.

Definition at line 123 of file characterVertexSlider.cxx.

Referenced by register_with_read_factory().

void CharacterVertexSlider::register_with_read_factory ( ) [static]

Tells the BamReader how to create objects of type CharacterVertexSlider.

Definition at line 79 of file characterVertexSlider.cxx.

References BamReader::get_factory(), make_from_bam(), and Factory< Type >::register_factory().

void CharacterVertexSlider::write_datagram ( BamWriter manager,
Datagram dg 
) [virtual]

Writes the contents of this object to the datagram for shipping out to a Bam file.

Reimplemented from VertexSlider.

Definition at line 90 of file characterVertexSlider.cxx.

References BamWriter::write_pointer().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations