Panda3D
Classes | Public Member Functions | Static Public Member Functions | Friends

BulletDebugNode Class Reference

Inheritance diagram for BulletDebugNode:
GeomNode PandaNode TypedWritable Namable LinkedListNode ReferenceCount TypedObject MemoryBase MemoryBase MemoryBase

List of all members.

Classes

class  DebugDraw
struct  Line
struct  Triangle

Public Member Functions

 BulletDebugNode (const char *name="debug")
virtual void draw_mask_changed ()
 Called after the node's DrawMask has been changed for any reason, this just provides a hook so derived classes can do something special in this case.
virtual TypeHandle force_init_type ()
virtual TypeHandle get_type () const
virtual bool safe_to_combine () const
 Returns true if it is generally safe to combine this particular kind of PandaNode with other kinds of PandaNodes of compatible type, adding children or whatever.
virtual bool safe_to_combine_children () const
 Returns true if it is generally safe to combine the children of this PandaNode with each other.
virtual bool safe_to_flatten () const
 Returns true if it is generally safe to flatten out this particular kind of Node by duplicating instances, false otherwise (for instance, a Camera cannot be safely flattened, because the Camera pointer itself is meaningful).
virtual bool safe_to_flatten_below () const
 Returns true if a flatten operation may safely continue past this node, or false if nodes below this node may not be molested.
virtual bool safe_to_modify_transform () const
 Returns true if it is safe to automatically adjust the transform on this kind of node.
virtual bool safe_to_transform () const
 Returns true if it is generally safe to transform this particular kind of Node by calling the xform() method, false otherwise.
void show_bounding_boxes (bool show)
void show_constraints (bool show)
void show_normals (bool show)
void show_wireframe (bool show)

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()

Friends

class BulletWorld

Detailed Description

Definition at line 28 of file bulletDebugNode.h.


Member Function Documentation

void BulletDebugNode::draw_mask_changed ( ) [virtual]

Called after the node's DrawMask has been changed for any reason, this just provides a hook so derived classes can do something special in this case.

Reimplemented from PandaNode.

Definition at line 176 of file bulletDebugNode.cxx.

bool BulletDebugNode::safe_to_combine ( ) const [virtual]

Returns true if it is generally safe to combine this particular kind of PandaNode with other kinds of PandaNodes of compatible type, adding children or whatever.

For instance, an LODNode should not be combined with any other PandaNode, because its set of children is meaningful.

Reimplemented from GeomNode.

Definition at line 137 of file bulletDebugNode.cxx.

bool BulletDebugNode::safe_to_combine_children ( ) const [virtual]

Returns true if it is generally safe to combine the children of this PandaNode with each other.

For instance, an LODNode's children should not be combined with each other, because the set of children is meaningful.

Reimplemented from PandaNode.

Definition at line 152 of file bulletDebugNode.cxx.

bool BulletDebugNode::safe_to_flatten ( ) const [virtual]

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

Reimplemented from GeomNode.

Definition at line 89 of file bulletDebugNode.cxx.

bool BulletDebugNode::safe_to_flatten_below ( ) const [virtual]

Returns true if a flatten operation may safely continue past this node, or false if nodes below this node may not be molested.

Reimplemented from PandaNode.

Definition at line 165 of file bulletDebugNode.cxx.

bool BulletDebugNode::safe_to_modify_transform ( ) const [virtual]

Returns true if it is safe to automatically adjust the transform on this kind of node.

Usually, this is only a bad idea if the user expects to find a particular transform on the node.

ModelNodes with the preserve_transform flag set are presently the only kinds of nodes that should not have their transform even adjusted.

Reimplemented from PandaNode.

Definition at line 121 of file bulletDebugNode.cxx.

bool BulletDebugNode::safe_to_transform ( ) const [virtual]

Returns true if it is generally safe to transform this particular kind of Node by calling the xform() method, false otherwise.

For instance, it's usually a bad idea to attempt to xform a Character.

Reimplemented from PandaNode.

Definition at line 103 of file bulletDebugNode.cxx.


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