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

ComputedVertices Class Reference

#include <computedVertices.h>

Inheritance diagram for ComputedVertices:

TypedWritableReferenceCount TypedWritable ReferenceCount TypedObject List of all members.

Public Member Functions

INLINE ComputedVertices ()
void update (Character *character)
void make_orig (Character *character)
void write (ostream &out, Character *character) 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_ComputedVertices (const FactoryParams &params)
TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

void fillin (DatagramIterator &scan, BamReader *manager)

Private Types

typedef vector_ushort Vertices
typedef pvector< VertexTransformVertexTransforms
typedef pvector< ComputedVerticesMorphVertexVertexMorphs
typedef pvector< ComputedVerticesMorphNormalNormalMorphs
typedef pvector< ComputedVerticesMorphTexCoordTexCoordMorphs
typedef pvector< ComputedVerticesMorphColorColorMorphs

Private Attributes

VertexTransforms _transforms
VertexMorphs _vertex_morphs
NormalMorphs _normal_morphs
TexCoordMorphs _texcoord_morphs
ColorMorphs _color_morphs
PTA_Vertexf _orig_coords
PTA_Normalf _orig_norms
PTA_Colorf _orig_colors
PTA_TexCoordf _orig_texcoords

Static Private Attributes

TypeHandle _type_handle

Friends

class ComputedVerticesMaker

Member Typedef Documentation

typedef pvector<ComputedVerticesMorphColor> ComputedVertices::ColorMorphs [private]
 

Definition at line 74 of file computedVertices.h.

typedef pvector<ComputedVerticesMorphNormal> ComputedVertices::NormalMorphs [private]
 

Definition at line 72 of file computedVertices.h.

typedef pvector<ComputedVerticesMorphTexCoord> ComputedVertices::TexCoordMorphs [private]
 

Definition at line 73 of file computedVertices.h.

typedef pvector<ComputedVerticesMorphVertex> ComputedVertices::VertexMorphs [private]
 

Definition at line 71 of file computedVertices.h.

typedef pvector<VertexTransform> ComputedVertices::VertexTransforms [private]
 

Definition at line 67 of file computedVertices.h.

typedef vector_ushort ComputedVertices::Vertices [private]
 

Definition at line 50 of file computedVertices.h.


Constructor & Destructor Documentation

INLINE ComputedVertices::ComputedVertices  ) 
 


Member Function Documentation

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

Reimplemented from TypedWritable.

Definition at line 370 of file computedVertices.cxx.

References _color_morphs, _normal_morphs, _orig_colors, _orig_coords, _orig_norms, _orig_texcoords, _texcoord_morphs, _transforms, _vertex_morphs, cm, DatagramIterator::get_uint16(), ComputedVerticesMorph< ValueType, MorphValueType >::read_datagram(), ComputedVertices::VertexTransform::read_datagram(), and READ_PTA.

Referenced by make_ComputedVertices().

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

Reimplemented from TypedWritableReferenceCount.

Definition at line 98 of file computedVertices.h.

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

Reimplemented from ReferenceCount.

Definition at line 99 of file computedVertices.h.

Referenced by register_with_read_factory().

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

Reimplemented from TypedWritableReferenceCount.

Definition at line 95 of file computedVertices.h.

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

Reimplemented from TypedWritableReferenceCount.

Definition at line 102 of file computedVertices.h.

References ReferenceCount::get_class_type(), TypedWritableReferenceCount::init_type(), and register_type().

Referenced by init_libchar().

TypedWritable * ComputedVertices::make_ComputedVertices const FactoryParams params  )  [static]
 

Definition at line 422 of file computedVertices.cxx.

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

Referenced by register_with_read_factory().

void ComputedVertices::make_orig Character character  ) 
 

Definition at line 241 of file computedVertices.cxx.

References DynamicVertices::_colors, DynamicVertices::_coords, Character::_cv, DynamicVertices::_norms, _orig_colors, _orig_coords, _orig_norms, _orig_texcoords, DynamicVertices::_texcoords, PointerToArray< TexCoordf >::clear(), PointerToArray< Colorf >::clear(), PointerToArray< Normalf >::clear(), PointerToArray< Vertexf >::clear(), PointerToArray< TexCoordf >::empty(), PointerToArray< Colorf >::empty(), PointerToArray< Normalf >::empty(), PointerToArray< Vertexf >::empty(), PointerToArray< TexCoordf >::empty_array(), PointerToArray< Colorf >::empty_array(), PointerToArray< Normalf >::empty_array(), PointerToArray< Vertexf >::empty_array(), NULL, PointerToArray< TexCoordf >::v(), PointerToArray< Colorf >::v(), PointerToArray< Normalf >::v(), and PointerToArray< Vertexf >::v().

Referenced by ComputedVerticesMaker::make_computed_vertices().

void ComputedVertices::register_with_read_factory void   )  [static]
 

Definition at line 439 of file computedVertices.cxx.

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

Referenced by init_libchar().

void ComputedVertices::update Character character  ) 
 

Definition at line 139 of file computedVertices.cxx.

References _color_morphs, DynamicVertices::_colors, DynamicVertices::_coords, Character::_cv, ComputedVertices::VertexTransform::_effect, CharacterJoint::_initial_net_transform_inverse, ComputedVertices::VertexTransform::_joint_index, CharacterJoint::_net_transform, ComputedVertices::VertexTransform::_nindex, _normal_morphs, DynamicVertices::_norms, _orig_colors, _orig_coords, _orig_norms, _orig_texcoords, _texcoord_morphs, DynamicVertices::_texcoords, _transforms, _vertex_morphs, ComputedVertices::VertexTransform::_vindex, compute_morphs(), DCAST_INTO_V, Character::get_part(), Normalf, NULL, PointerToArray< Colorf >::p(), PointerToArray< TexCoordf >::p(), and Vertexf.

void ComputedVertices::write ostream &  out,
Character character
const
 

Definition at line 279 of file computedVertices.cxx.

References _color_morphs, ComputedVertices::VertexTransform::_effect, ComputedVertices::VertexTransform::_joint_index, ComputedVertices::VertexTransform::_nindex, _normal_morphs, _texcoord_morphs, _transforms, _vertex_morphs, ComputedVertices::VertexTransform::_vindex, and Character::get_part().

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

Implements TypedWritableReferenceCount.

Definition at line 325 of file computedVertices.cxx.

References _color_morphs, _normal_morphs, _orig_colors, _orig_coords, _orig_norms, _orig_texcoords, _texcoord_morphs, _transforms, _vertex_morphs, Datagram::add_uint16(), and WRITE_PTA.


Friends And Related Function Documentation

friend class ComputedVerticesMaker [friend]
 

Definition at line 110 of file computedVertices.h.


Member Data Documentation

ColorMorphs ComputedVertices::_color_morphs [private]
 

Definition at line 78 of file computedVertices.h.

Referenced by fillin(), ComputedVerticesMaker::make_computed_vertices(), update(), write(), and write_datagram().

NormalMorphs ComputedVertices::_normal_morphs [private]
 

Definition at line 76 of file computedVertices.h.

Referenced by fillin(), ComputedVerticesMaker::make_computed_vertices(), update(), write(), and write_datagram().

PTA_Colorf ComputedVertices::_orig_colors [private]
 

Definition at line 82 of file computedVertices.h.

Referenced by fillin(), make_orig(), update(), and write_datagram().

PTA_Vertexf ComputedVertices::_orig_coords [private]
 

Definition at line 80 of file computedVertices.h.

Referenced by fillin(), make_orig(), update(), and write_datagram().

PTA_Normalf ComputedVertices::_orig_norms [private]
 

Definition at line 81 of file computedVertices.h.

Referenced by fillin(), make_orig(), update(), and write_datagram().

PTA_TexCoordf ComputedVertices::_orig_texcoords [private]
 

Definition at line 83 of file computedVertices.h.

Referenced by fillin(), make_orig(), update(), and write_datagram().

TexCoordMorphs ComputedVertices::_texcoord_morphs [private]
 

Definition at line 77 of file computedVertices.h.

Referenced by fillin(), ComputedVerticesMaker::make_computed_vertices(), update(), write(), and write_datagram().

VertexTransforms ComputedVertices::_transforms [private]
 

Definition at line 69 of file computedVertices.h.

Referenced by fillin(), ComputedVerticesMaker::make_computed_vertices(), update(), write(), and write_datagram().

TypeHandle ComputedVertices::_type_handle [static, private]
 

Reimplemented from TypedWritableReferenceCount.

Definition at line 33 of file computedVertices.cxx.

VertexMorphs ComputedVertices::_vertex_morphs [private]
 

Definition at line 75 of file computedVertices.h.

Referenced by fillin(), ComputedVerticesMaker::make_computed_vertices(), update(), write(), and write_datagram().


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