#include <transformState.h>
Inheritance diagram for TransformState:
Public Member Functions | |
virtual | ~TransformState () |
bool | operator< (const TransformState &other) const |
INLINE bool | is_identity () const |
INLINE bool | is_invalid () const |
INLINE bool | is_singular () const |
INLINE bool | has_components () const |
INLINE bool | components_given () const |
INLINE bool | hpr_given () const |
INLINE bool | quat_given () const |
INLINE bool | has_pos () const |
INLINE bool | has_hpr () const |
INLINE bool | has_quat () const |
INLINE bool | has_scale () const |
INLINE bool | has_uniform_scale () const |
INLINE bool | has_mat () const |
INLINE const LVecBase3f & | get_pos () const |
INLINE const LVecBase3f & | get_hpr () const |
INLINE const LQuaternionf & | get_quat () const |
INLINE const LVecBase3f & | get_scale () const |
INLINE float | get_uniform_scale () const |
INLINE const LMatrix4f & | get_mat () const |
CPT (TransformState) set_pos(const LVecBase3f &pos) const | |
CPT (TransformState) set_hpr(const LVecBase3f &hpr) const | |
CPT (TransformState) set_quat(const LQuaternionf &quat) const | |
CPT (TransformState) set_scale(const LVecBase3f &scale) const | |
CPT (TransformState) compose(const TransformState *other) const | |
CPT (TransformState) invert_compose(const TransformState *other) const | |
void | output (ostream &out) const |
void | write (ostream &out, int indent_level) const |
virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
virtual void | finalize () |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
CPT (TransformState) make_invalid() | |
INLINE | CPT (TransformState) make_pos(const LVecBase3f &pos) |
INLINE | CPT (TransformState) make_hpr(const LVecBase3f &hpr) |
INLINE | CPT (TransformState) make_quat(const LQuaternionf &quat) |
INLINE | CPT (TransformState) make_pos_hpr(const LVecBase3f &pos |
INLINE | CPT (TransformState) make_scale(float scale) |
INLINE | CPT (TransformState) make_scale(const LVecBase3f &scale) |
CPT (TransformState) make_pos_hpr_scale(const LVecBase3f &pos | |
CPT (TransformState) make_pos_quat_scale(const LVecBase3f &pos | |
CPT (TransformState) make_mat(const LMatrix4f &mat) | |
int | get_num_states () |
int | get_num_unused_states () |
int | clear_cache () |
void | register_with_read_factory () |
TypedWritable * | change_this (TypedWritable *old_ptr, BamReader *manager) |
TypeHandle | get_class_type () |
void | init_type () |
Public Attributes | |
PUBLISHED | __pad0__: static CPT(TransformState) make_identity() |
INLINE const LVecBase3f & | hpr |
const LVecBase3f & | hpr |
const LVecBase3f const LVecBase3f & | scale |
const LQuaternionf & | quat |
const LQuaternionf const LVecBase3f & | scale |
Protected Member Functions | |
TransformState () | |
void | fillin (DatagramIterator &scan, BamReader *manager) |
Static Protected Member Functions | |
TypedWritable * | make_from_bam (const FactoryParams ¶ms) |
Private Types | |
typedef pset< const TransformState *, IndirectLess< TransformState > > | States |
typedef pmap< const TransformState *, Composition > | CompositionCache |
enum | Flags { F_is_identity = 0x0001, F_is_singular = 0x0002, F_singular_known = 0x0004, F_components_given = 0x0008, F_components_known = 0x0010, F_has_components = 0x0020, F_mat_known = 0x0040, F_is_invalid = 0x0080, F_quat_given = 0x0100, F_quat_known = 0x0200, F_hpr_given = 0x0400, F_hpr_known = 0x0800, F_uniform_scale = 0x1000, F_is_destructing = 0x8000 } |
Private Member Functions | |
TransformState (const TransformState ©) | |
void | operator= (const TransformState ©) |
CPT (TransformState) do_compose(const TransformState *other) const | |
CPT (TransformState) do_invert_compose(const TransformState *other) const | |
INLINE void | check_singular () const |
INLINE void | check_components () const |
INLINE void | check_hpr () const |
INLINE void | check_quat () const |
INLINE void | check_mat () const |
void | calc_singular () |
void | calc_components () |
void | calc_hpr () |
void | calc_quat () |
void | calc_mat () |
INLINE void | check_uniform_scale () |
INLINE void | set_destructing () |
INLINE bool | is_destructing () const |
Static Private Member Functions | |
CPT (TransformState) return_new(TransformState *state) | |
CPT (TransformState) _identity_state | |
Private Attributes | |
States::iterator | _saved_entry |
CompositionCache | _composition_cache |
CompositionCache | _invert_composition_cache |
const TransformState * | _self_compose |
LVecBase3f | _pos |
LVecBase3f | _hpr |
LVecBase3f | _scale |
LQuaternionf | _quat |
LMatrix4f | _mat |
LMatrix4f * | _inv_mat |
unsigned short | _flags |
Static Private Attributes | |
States * | _states = NULL |
TypeHandle | _type_handle |
|
Definition at line 150 of file transformState.h. |
|
Definition at line 128 of file transformState.h. Referenced by clear_cache(), get_num_states(), get_num_unused_states(), and TransformState(). |
|
Definition at line 177 of file transformState.h. |
|
Definition at line 40 of file transformState.cxx. References _flags, _inv_mat, _saved_entry, _self_compose, _states, F_is_identity, F_singular_known, NULL, and States. |
|
Definition at line 61 of file transformState.cxx. |
|
Definition at line 82 of file transformState.cxx. References _composition_cache, _inv_mat, _invert_composition_cache, _saved_entry, _self_compose, _states, is_destructing(), NULL, set_destructing(), and unref_delete(). |
|
Definition at line 1038 of file transformState.cxx. References _flags, _hpr, _pos, _quat, _scale, check_uniform_scale(), decompose_matrix(), F_components_known, F_has_components, F_hpr_known, F_is_identity, F_is_invalid, F_mat_known, F_quat_known, F_uniform_scale, and get_mat(). |
|
Definition at line 1078 of file transformState.cxx. References _flags, _hpr, _quat, check_components(), F_hpr_known, F_is_invalid, and F_quat_known. |
|
Definition at line 1114 of file transformState.cxx. References _flags, _mat, _pos, _scale, compose_matrix(), F_components_known, F_is_identity, F_is_invalid, F_mat_known, and get_hpr(). |
|
Definition at line 1096 of file transformState.cxx. References _flags, _hpr, _quat, check_components(), F_hpr_known, F_is_invalid, and F_quat_known. |
|
Definition at line 1011 of file transformState.cxx. References _flags, _inv_mat, F_is_invalid, F_is_singular, F_singular_known, get_mat(), and NULL. |
|
Definition at line 1199 of file transformState.cxx. References CPT(), DCAST, pointer, and BamReader::register_finalize(). Referenced by make_from_bam(). |
|
Referenced by calc_hpr(), and calc_quat(). |
|
|
|
|
|
|
|
|
|
Referenced by calc_components(), and fillin(). |
|
Definition at line 787 of file transformState.cxx. References _composition_cache, _invert_composition_cache, _self_compose, _states, NULL, States, and unref_delete(). |
|
Referenced by output(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by change_this(). |
|
Reimplemented from TypedWritable. Definition at line 1268 of file transformState.cxx. References _flags, _hpr, _mat, _pos, _quat, _scale, check_uniform_scale(), F_components_given, F_hpr_given, F_hpr_known, F_mat_known, F_quat_given, TypedWritable::fillin(), DatagramIterator::get_uint16(), and has_components(). Referenced by make_from_bam(). |
|
Reimplemented from TypedWritable. Definition at line 1227 of file transformState.cxx. References ReferenceCount::unref(). |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 222 of file transformState.h. References ReferenceCount::get_class_type(), and TypedWritableReferenceCount::init_type(). |
|
Reimplemented from ReferenceCount. Definition at line 211 of file transformState.h. Referenced by register_with_read_factory(). |
|
Referenced by calc_mat(), output(), NodePath::set_hpr(), NodePath::set_pos_hpr(), and write_datagram(). |
|
Referenced by Fog::adjust_to_camera(), calc_components(), calc_singular(), GraphicsEngine::do_cull(), and output(). |
|
Definition at line 668 of file transformState.cxx. |
|
Definition at line 683 of file transformState.cxx. References _composition_cache, _invert_composition_cache, _self_compose, _states, count, NULL, and States. |
|
Referenced by CPT(), NodePath::get_pos(), output(), and NodePath::set_pos_hpr(). |
|
Referenced by CPT(), and NodePath::set_quat(). |
|
Referenced by CPT(), output(), and NodePath::set_scale(). |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 219 of file transformState.h. References ReferenceCount::get_class_type(). |
|
Referenced by output(). |
|
Referenced by CPT(), fillin(), output(), NodePath::set_hpr(), NodePath::set_pos_hpr(), NodePath::set_quat(), and NodePath::set_scale(). |
|
|
|
|
|
|
|
|
|
|
|
Referenced by output(). |
|
|
|
Reimplemented from TypedWritableReferenceCount. Definition at line 214 of file transformState.h. References ReferenceCount::get_class_type(), TypedWritableReferenceCount::init_type(), and register_type(). Referenced by init_libpgraph(). |
|
Referenced by ~TransformState(). |
|
Referenced by CollisionLevelState::apply_transform(), CullTraverserData::apply_transform_and_state(), SceneGraphAnalyzer::collect_statistics(), and output(). |
|
Referenced by output(). |
|
Referenced by CullTraverserData::apply_transform_and_state(). |
|
Definition at line 1248 of file transformState.cxx. References change_this(), fillin(), params, parse_params(), and BamReader::register_change_this(). Referenced by register_with_read_factory(). |
|
Definition at line 208 of file transformState.cxx. References _flags, _hpr, _pos, _quat, _scale, c, F_components_given, F_hpr_given, F_is_identity, F_is_invalid, and F_quat_given. |
|
Definition at line 71 of file transformState.cxx. |
|
Definition at line 595 of file transformState.cxx. References components_given(), get_hpr(), get_mat(), get_pos(), get_scale(), get_uniform_scale(), has_components(), has_uniform_scale(), is_identity(), is_invalid(), and quat_given(). Referenced by operator<<(). |
|
Referenced by output(). |
|
Definition at line 1135 of file transformState.cxx. References get_class_type(), BamReader::get_factory(), make_from_bam(), and Factory< TypedWritable >::register_factory(). Referenced by init_libpgraph(). |
|
Referenced by ~TransformState(). |
|
Definition at line 656 of file transformState.cxx. References indent(). Referenced by SceneGraphReducer::r_apply_attribs(). |
|
Implements TypedWritableReferenceCount. Definition at line 1146 of file transformState.cxx. References _flags, _mat, _pos, _quat, _scale, Datagram::add_uint16(), F_components_given, F_components_known, F_has_components, F_hpr_given, F_hpr_known, F_is_identity, F_is_invalid, F_is_singular, F_mat_known, F_quat_given, F_quat_known, F_singular_known, get_hpr(), and TypedWritable::write_datagram(). |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 70 of file transformState.h. |
|
Definition at line 151 of file transformState.h. Referenced by clear_cache(), get_num_unused_states(), and ~TransformState(). |
|
Definition at line 198 of file transformState.h. Referenced by calc_components(), calc_hpr(), calc_mat(), calc_quat(), calc_singular(), fillin(), operator<(), TransformState(), and write_datagram(). |
|
Definition at line 193 of file transformState.h. Referenced by calc_components(), calc_hpr(), calc_quat(), fillin(), and operator<(). |
|
Definition at line 196 of file transformState.h. Referenced by calc_singular(), TransformState(), and ~TransformState(). |
|
Definition at line 152 of file transformState.h. Referenced by clear_cache(), get_num_unused_states(), and ~TransformState(). |
|
Definition at line 195 of file transformState.h. Referenced by calc_mat(), fillin(), and write_datagram(). |
|
Definition at line 193 of file transformState.h. Referenced by calc_components(), calc_mat(), fillin(), operator<(), and write_datagram(). |
|
Definition at line 194 of file transformState.h. Referenced by calc_components(), calc_hpr(), calc_quat(), fillin(), operator<(), and write_datagram(). |
|
Definition at line 135 of file transformState.h. Referenced by TransformState(), and ~TransformState(). |
|
Definition at line 193 of file transformState.h. Referenced by calc_components(), calc_mat(), fillin(), operator<(), and write_datagram(). |
|
Definition at line 157 of file transformState.h. Referenced by clear_cache(), get_num_unused_states(), TransformState(), and ~TransformState(). |
|
Definition at line 27 of file transformState.cxx. Referenced by clear_cache(), get_num_states(), get_num_unused_states(), TransformState(), and ~TransformState(). |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 225 of file transformState.h. |
|
Definition at line 80 of file transformState.h. |
|
Definition at line 76 of file transformState.h. |
|
Definition at line 83 of file transformState.h. |
|
Definition at line 83 of file transformState.h. |
|
Definition at line 80 of file transformState.h. |