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

FltTransformRotateAboutPoint Class Reference

#include <fltTransformRotateAboutPoint.h>

Inheritance diagram for FltTransformRotateAboutPoint:

FltTransformRecord FltRecord TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Member Functions

 FltTransformRotateAboutPoint (FltHeader *header)
void set (const LPoint3d &center, const LVector3f &axis, float angle)
const LPoint3d & get_center () const
const LVector3f & get_axis () const
float get_angle () 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
LVector3f _axis
float _angle

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

FltTransformRotateAboutPoint::FltTransformRotateAboutPoint FltHeader header  ) 
 

Definition at line 31 of file fltTransformRotateAboutPoint.cxx.

References _angle, _axis, and _center.


Member Function Documentation

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

Reimplemented from FltRecord.

Definition at line 145 of file fltTransformRotateAboutPoint.cxx.

References _angle, _axis, _center, Datagram::add_be_float32(), Datagram::add_be_float64(), FltRecord::build_record(), FO_rotate_about_point, Datagram::pad_bytes(), and writer().

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

Reimplemented from FltRecord.

Definition at line 112 of file fltTransformRotateAboutPoint.cxx.

References _angle, _axis, _center, FltRecord::check_remaining_size(), FltRecord::extract_record(), FO_rotate_about_point, DatagramIterator::get_be_float32(), DatagramIterator::get_be_float64(), nassertr, reader(), recompute_matrix(), and DatagramIterator::skip_bytes().

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

Reimplemented from FltTransformRecord.

Definition at line 56 of file fltTransformRotateAboutPoint.h.

References get_class_type(), and init_type().

float FltTransformRotateAboutPoint::get_angle  )  const
 

Definition at line 79 of file fltTransformRotateAboutPoint.cxx.

References _angle.

Referenced by FltToEggLevelState::set_transform().

const LVector3f & FltTransformRotateAboutPoint::get_axis  )  const
 

Definition at line 68 of file fltTransformRotateAboutPoint.cxx.

References _axis.

Referenced by FltToEggLevelState::set_transform().

const LPoint3d & FltTransformRotateAboutPoint::get_center  )  const
 

Definition at line 58 of file fltTransformRotateAboutPoint.cxx.

References _center.

Referenced by FltToEggLevelState::set_transform().

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

Reimplemented from FltTransformRecord.

Definition at line 57 of file fltTransformRotateAboutPoint.h.

References _type_handle.

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

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

Reimplemented from FltTransformRecord.

Definition at line 53 of file fltTransformRotateAboutPoint.h.

References get_class_type().

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

Reimplemented from FltTransformRecord.

Definition at line 60 of file fltTransformRotateAboutPoint.h.

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

Referenced by force_init_type(), and init_libflt().

void FltTransformRotateAboutPoint::recompute_matrix  )  [private]
 

Definition at line 89 of file fltTransformRotateAboutPoint.cxx.

References _angle, _axis, _center, FltTransformRecord::_matrix, CS_zup_right, LCAST, and zero.

Referenced by extract_record(), and set().

void FltTransformRotateAboutPoint::set const LPoint3d &  center,
const LVector3f &  axis,
float  angle
 

Definition at line 44 of file fltTransformRotateAboutPoint.cxx.

References _angle, _axis, _center, and recompute_matrix().


Member Data Documentation

float FltTransformRotateAboutPoint::_angle [private]
 

Definition at line 46 of file fltTransformRotateAboutPoint.h.

Referenced by build_record(), extract_record(), FltTransformRotateAboutPoint(), get_angle(), recompute_matrix(), and set().

LVector3f FltTransformRotateAboutPoint::_axis [private]
 

Definition at line 45 of file fltTransformRotateAboutPoint.h.

Referenced by build_record(), extract_record(), FltTransformRotateAboutPoint(), get_axis(), recompute_matrix(), and set().

LPoint3d FltTransformRotateAboutPoint::_center [private]
 

Definition at line 44 of file fltTransformRotateAboutPoint.h.

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

TypeHandle FltTransformRotateAboutPoint::_type_handle [static, private]
 

Reimplemented from FltTransformRecord.

Definition at line 23 of file fltTransformRotateAboutPoint.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