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

FltTransformScale Class Reference

#include <fltTransformScale.h>

Inheritance diagram for FltTransformScale:

FltTransformRecord FltRecord TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Member Functions

 FltTransformScale (FltHeader *header)
void set (const LPoint3d &center, const LVecBase3f &scale)
bool has_center () const
const LPoint3d & get_center () const
const LVecBase3f & get_scale () const
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

virtual bool extract_record (FltRecordReader &reader)
virtual bool build_record (FltRecordWriter &writer) const

Private Member Functions

void recompute_matrix ()

Private Attributes

LPoint3d _center
LVecBase3f _scale

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

FltTransformScale::FltTransformScale FltHeader header  ) 
 

Definition at line 31 of file fltTransformScale.cxx.

References _center, and _scale.


Member Function Documentation

bool FltTransformScale::build_record FltRecordWriter writer  )  const [protected, virtual]
 

Reimplemented from FltRecord.

Definition at line 147 of file fltTransformScale.cxx.

References _center, _scale, Datagram::add_be_float32(), Datagram::add_be_float64(), FltRecord::build_record(), FO_scale, Datagram::pad_bytes(), and writer().

bool FltTransformScale::extract_record FltRecordReader reader  )  [protected, virtual]
 

Reimplemented from FltRecord.

Definition at line 113 of file fltTransformScale.cxx.

References _center, _scale, FltRecord::check_remaining_size(), FltRecord::extract_record(), FO_scale, DatagramIterator::get_be_float32(), DatagramIterator::get_be_float64(), nassertr, reader(), recompute_matrix(), and DatagramIterator::skip_bytes().

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

Reimplemented from FltTransformRecord.

Definition at line 55 of file fltTransformScale.h.

References get_class_type(), and init_type().

const LPoint3d & FltTransformScale::get_center  )  const
 

Definition at line 72 of file fltTransformScale.cxx.

References _center.

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

Reimplemented from FltTransformRecord.

Definition at line 56 of file fltTransformScale.h.

References _type_handle.

Referenced by force_init_type(), get_type(), and FltToEggLevelState::set_transform().

const LVecBase3f & FltTransformScale::get_scale  )  const
 

Definition at line 82 of file fltTransformScale.cxx.

References _scale.

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

Reimplemented from FltTransformRecord.

Definition at line 52 of file fltTransformScale.h.

References get_class_type().

bool FltTransformScale::has_center  )  const
 

Definition at line 59 of file fltTransformScale.cxx.

References _center.

Referenced by recompute_matrix().

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

Reimplemented from FltTransformRecord.

Definition at line 59 of file fltTransformScale.h.

References _type_handle, FltTransformRecord::get_class_type(), FltTransformRecord::init_type(), and register_type().

Referenced by force_init_type(), and init_libflt().

void FltTransformScale::recompute_matrix  )  [private]
 

Definition at line 92 of file fltTransformScale.cxx.

References _center, FltTransformRecord::_matrix, _scale, has_center(), and LCAST.

Referenced by extract_record(), and set().

void FltTransformScale::set const LPoint3d &  center,
const LVecBase3f &  scale
 

Definition at line 42 of file fltTransformScale.cxx.

References _center, _scale, recompute_matrix(), and scale.


Member Data Documentation

LPoint3d FltTransformScale::_center [private]
 

Definition at line 44 of file fltTransformScale.h.

Referenced by build_record(), extract_record(), FltTransformScale(), get_center(), has_center(), recompute_matrix(), and set().

LVecBase3f FltTransformScale::_scale [private]
 

Definition at line 45 of file fltTransformScale.h.

Referenced by build_record(), extract_record(), FltTransformScale(), get_scale(), recompute_matrix(), and set().

TypeHandle FltTransformScale::_type_handle [static, private]
 

Reimplemented from FltTransformRecord.

Definition at line 23 of file fltTransformScale.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:05 2003 for Panda-Tool by doxygen1.3