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

ForceNode Class Reference

#include <forceNode.h>

Inheritance diagram for ForceNode:

PandaNode TypedWritable Namable BoundedObject ReferenceCount TypedObject List of all members.

Public Member Functions

virtual ~ForceNode (void)
virtual bool safe_to_flatten (void) const
virtual PandaNodemake_copy (void) const
INLINE BaseForceget_force (int index) const
INLINE int get_num_forces (void) const
INLINE void add_force (BaseForce *force)
void add_forces_from (const ForceNode &other)
void remove_force (BaseForce *f)
void remove_force (int index)
virtual TypeHandle get_type (void) const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type (void)
void init_type (void)

Public Attributes

PUBLISHED __pad1__: INLINE void clear(void)

Protected Member Functions

 ForceNode (const ForceNode &copy)

Private Attributes

pvector< PT(BaseForce_forces )
PUBLISHED __pad0__: ForceNode(const string &name)

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

ForceNode::ForceNode const ForceNode &  copy  )  [protected]
 

Definition at line 41 of file forceNode.cxx.

Referenced by make_copy().

ForceNode::~ForceNode void   )  [virtual]
 

Definition at line 51 of file forceNode.cxx.


Member Function Documentation

INLINE void ForceNode::add_force BaseForce force  ) 
 

void ForceNode::add_forces_from const ForceNode &  other  ) 
 

Definition at line 70 of file forceNode.cxx.

References _forces.

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

Reimplemented from PandaNode.

Definition at line 71 of file forceNode.h.

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

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

Reimplemented from PandaNode.

Definition at line 60 of file forceNode.h.

INLINE BaseForce* ForceNode::get_force int  index  )  const
 

INLINE int ForceNode::get_num_forces void   )  const
 

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

Reimplemented from PandaNode.

Definition at line 68 of file forceNode.h.

References PandaNode::get_class_type().

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

Reimplemented from PandaNode.

Definition at line 63 of file forceNode.h.

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

Referenced by init_libphysics().

PandaNode * ForceNode::make_copy void   )  const [virtual]
 

Reimplemented from PandaNode.

Definition at line 60 of file forceNode.cxx.

References ForceNode().

void ForceNode::remove_force int  index  ) 
 

Definition at line 101 of file forceNode.cxx.

References _forces, index, and NULL.

void ForceNode::remove_force BaseForce f  ) 
 

Definition at line 86 of file forceNode.cxx.

References _forces, and PandaNode::PT().

virtual bool ForceNode::safe_to_flatten void   )  const [inline, virtual]
 

Reimplemented from PandaNode.

Definition at line 46 of file forceNode.h.


Member Data Documentation

PUBLISHED ForceNode::__pad0__ [private]
 

Reimplemented from PandaNode.

Definition at line 39 of file forceNode.h.

PUBLISHED ForceNode::__pad1__
 

Reimplemented from PandaNode.

Definition at line 50 of file forceNode.h.

pvector< PT(BaseForce) ForceNode::_forces) [private]
 

Definition at line 36 of file forceNode.h.

Referenced by add_forces_from(), and remove_force().

TypeHandle ForceNode::_type_handle [static, private]
 

Reimplemented from PandaNode.

Definition at line 22 of file forceNode.cxx.


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