Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions

PhysicalNode Class Reference

Graph node that encapsulated a series of physical objects. More...

#include "physicalNode.h"

Inheritance diagram for PhysicalNode:
PandaNode TypedWritable Namable LinkedListNode ReferenceCount TypedObject MemoryBase MemoryBase MemoryBase ActorNode

List of all members.

Public Member Functions

 PhysicalNode (const string &name)
 default constructor
virtual ~PhysicalNode ()
 destructor
void add_physical (Physical *physical)
void add_physicals_from (const PhysicalNode &other)
 append operation
void clear ()
virtual TypeHandle force_init_type ()
int get_num_physicals () const
Physicalget_physical (int index) const
virtual TypeHandle get_type () const
virtual PandaNodemake_copy () const
 dynamic child copy
 MAKE_SEQ (get_physicals, get_num_physicals, get_physical)
void remove_physical (Physical *physical)
 remove operation
void remove_physical (int index)
 remove operation
virtual bool safe_to_flatten () const
 Returns true if it is generally safe to flatten out this particular kind of PandaNode by duplicating instances (by calling dupe_for_flatten()), false otherwise (for instance, a Camera cannot be safely flattened, because the Camera pointer itself is meaningful).
virtual void write (ostream &out, unsigned int indent=0) const
 Write a string representation of this instance to <out>.

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()

Protected Member Functions

 PhysicalNode (const PhysicalNode &copy)
 copy constructor

Detailed Description

Graph node that encapsulated a series of physical objects.

Definition at line 31 of file physicalNode.h.


Constructor & Destructor Documentation

PhysicalNode::PhysicalNode ( const string &  name)

default constructor

Definition at line 26 of file physicalNode.cxx.

Referenced by make_copy().

PhysicalNode::~PhysicalNode ( ) [virtual]

destructor

Definition at line 47 of file physicalNode.cxx.

PhysicalNode::PhysicalNode ( const PhysicalNode copy) [protected]

copy constructor

Definition at line 37 of file physicalNode.cxx.


Member Function Documentation

void PhysicalNode::add_physicals_from ( const PhysicalNode other)

append operation

Definition at line 66 of file physicalNode.cxx.

PandaNode * PhysicalNode::make_copy ( ) const [virtual]

dynamic child copy

Reimplemented from PandaNode.

Definition at line 56 of file physicalNode.cxx.

References PhysicalNode().

void PhysicalNode::remove_physical ( Physical physical)

remove operation

Definition at line 85 of file physicalNode.cxx.

void PhysicalNode::remove_physical ( int  index)

remove operation

Definition at line 100 of file physicalNode.cxx.

virtual bool PhysicalNode::safe_to_flatten ( ) const [inline, virtual]

Returns true if it is generally safe to flatten out this particular kind of PandaNode by duplicating instances (by calling dupe_for_flatten()), false otherwise (for instance, a Camera cannot be safely flattened, because the Camera pointer itself is meaningful).

Reimplemented from PandaNode.

Definition at line 48 of file physicalNode.h.

void PhysicalNode::write ( ostream &  out,
unsigned int  indent = 0 
) const [virtual]

Write a string representation of this instance to <out>.

Reimplemented in ActorNode.

Definition at line 118 of file physicalNode.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations