Panda3D
Public Member Functions | Public Attributes | List of all members
PartBundleHandle Class Reference

This is a trivial class returned by PartBundleNode::get_bundle(). More...

Inheritance diagram for PartBundleHandle:
ReferenceCount

Public Member Functions

 __init__ (PartBundle bundle)
 
 __init__ (const PartBundleHandle)
 
PartBundle getBundle ()
 Returns the actual PartBundle embedded within the handle. More...
 
 setBundle (PartBundle bundle)
 Changes the actual PartBundle embedded within the handle. More...
 
- Public Member Functions inherited from ReferenceCount
int getRefCount ()
 Returns the current reference count. More...
 
 ref ()
 Explicitly increments the reference count. More...
 
bool testRefCountIntegrity ()
 Does some easy checks to make sure that the reference count isn't completely bogus. More...
 
bool testRefCountNonzero ()
 Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More...
 
bool unref ()
 Explicitly decrements the reference count. More...
 

Public Attributes

PartBundle bundle
 Returns the actual PartBundle embedded within the handle. More...
 
- Public Attributes inherited from ReferenceCount
int ref_count
 The current reference count. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ReferenceCount
static TypeHandle getClassType ()
 

Detailed Description

This is a trivial class returned by PartBundleNode::get_bundle().

Its purpose is to hold the actual PartBundle pointer contained within the PartBundleNode, so that scene graph flatten operations can safely combine or duplicate PartBundles as necessary without affecting high-level bundle operations.

The high-level Actor class defined in direct/src/actor, for instance, will store a list of PartBundleHandles instead of on actual PartBundles, so that it will be immune to changes from these flatten operations.

Member Function Documentation

◆ __init__() [1/2]

__init__ ( PartBundle  bundle)

◆ __init__() [2/2]

__init__ ( const  PartBundleHandle)

◆ getBundle()

PartBundle getBundle ( )

Returns the actual PartBundle embedded within the handle.

◆ setBundle()

setBundle ( PartBundle  bundle)

Changes the actual PartBundle embedded within the handle.

Member Data Documentation

◆ bundle

PartBundle bundle

Returns the actual PartBundle embedded within the handle.