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

ActorNode Class Reference

#include <actorNode.h>

Inheritance diagram for ActorNode:

PhysicalNode PandaNode TypedWritable Namable BoundedObject ReferenceCount TypedObject List of all members.

Public Member Functions

 ActorNode (const string &name="")
 ActorNode (const ActorNode &copy)
virtual ~ActorNode (void)
void update_transform (void)
virtual TypeHandle get_type (void) const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type (void)
void init_type (void)

Private Member Functions

virtual void transform_changed ()

Private Attributes

PhysicsObject_mass_center
bool _ok_to_callback

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

ActorNode::ActorNode const string &  name = ""  ) 
 

Definition at line 33 of file actorNode.cxx.

References _mass_center, _ok_to_callback, PhysicalNode::add_physical(), Physical::get_phys_body(), PhysicalNode::get_physical(), and PhysicsObject::set_active().

ActorNode::ActorNode const ActorNode &  copy  ) 
 

Definition at line 47 of file actorNode.cxx.

References _mass_center, _ok_to_callback, Physical::get_phys_body(), and PhysicalNode::get_physical().

ActorNode::~ActorNode void   )  [virtual]
 

Definition at line 59 of file actorNode.cxx.


Member Function Documentation

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

Reimplemented from PhysicalNode.

Definition at line 63 of file actorNode.h.

References PhysicalNode::get_class_type(), and PhysicalNode::init_type().

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

Reimplemented from PhysicalNode.

Definition at line 52 of file actorNode.h.

Referenced by PhysicsManager::do_physics().

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

Reimplemented from PhysicalNode.

Definition at line 60 of file actorNode.h.

References PhysicalNode::get_class_type().

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

Reimplemented from PhysicalNode.

Definition at line 55 of file actorNode.h.

References PhysicalNode::get_class_type(), PhysicalNode::init_type(), and register_type().

Referenced by init_libphysics().

void ActorNode::transform_changed  )  [private, virtual]
 

Reimplemented from PandaNode.

Definition at line 86 of file actorNode.cxx.

References _mass_center, _ok_to_callback, PandaNode::CPT(), PhysicsObject::get_oriented(), PandaNode::get_transform(), PhysicsObject::set_orientation(), PhysicsObject::set_position(), and transform.

void ActorNode::update_transform void   ) 
 

Definition at line 69 of file actorNode.cxx.

References _mass_center, _ok_to_callback, PhysicsObject::get_lcs(), and PandaNode::set_transform().

Referenced by PhysicsManager::do_physics().


Member Data Documentation

PhysicsObject* ActorNode::_mass_center [private]
 

Definition at line 39 of file actorNode.h.

Referenced by ActorNode(), transform_changed(), and update_transform().

bool ActorNode::_ok_to_callback [private]
 

Definition at line 41 of file actorNode.h.

Referenced by ActorNode(), transform_changed(), and update_transform().

TypeHandle ActorNode::_type_handle [static, private]
 

Reimplemented from PhysicalNode.

Definition at line 25 of file actorNode.cxx.


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