Panda3D
Public Member Functions | List of all members
PartSubset Class Reference

This class is used to define a subset of part names to apply to the PartBundle::bind_anim() operation. More...

Public Member Functions

 __init__ ()
 
 __init__ (const PartSubset copy)
 
 addExcludeJoint (const GlobPattern name)
 Adds the named joint to the list of joints that will be explicitly exlcluded from the subset. More...
 
 addIncludeJoint (const GlobPattern name)
 Adds the named joint to the list of joints that will be explicitly included in the subset. More...
 
 append (const PartSubset other)
 Appends the include and exclude list from the other object onto this object's lists. More...
 
bool isIncludeEmpty ()
 Returns true if the include list is completely empty, false otherwise. More...
 
bool matchesExclude (str joint_name)
 Returns true if the indicated name matches a name on the exclude list, false otherwise. More...
 
bool matchesInclude (str joint_name)
 Returns true if the indicated name matches a name on the include list, false otherwise. More...
 
PartSubset operator= (const PartSubset copy)
 
 output (Ostream out)
 

Detailed Description

This class is used to define a subset of part names to apply to the PartBundle::bind_anim() operation.

Only those part names within the subset will be included in the bind.

Member Function Documentation

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( const PartSubset  copy)

◆ addExcludeJoint()

addExcludeJoint ( const GlobPattern  name)

Adds the named joint to the list of joints that will be explicitly exlcluded from the subset.

Any joint at or below a named node will not be included in the subset (unless a lower node is also listed in the include list).

Since the name is a GlobPattern, it may of course include filename globbing characters like * and ?.

◆ addIncludeJoint()

addIncludeJoint ( const GlobPattern  name)

Adds the named joint to the list of joints that will be explicitly included in the subset.

Any joint at or below a named node will be included in the subset (unless a lower node is also listed in the exclude list).

Since the name is a GlobPattern, it may of course include filename globbing characters like * and ?.

◆ append()

append ( const PartSubset  other)

Appends the include and exclude list from the other object onto this object's lists.

◆ isIncludeEmpty()

bool isIncludeEmpty ( )

Returns true if the include list is completely empty, false otherwise.

If it is empty, it is the same thing as including all joints.

◆ matchesExclude()

bool matchesExclude ( str  joint_name)

Returns true if the indicated name matches a name on the exclude list, false otherwise.

◆ matchesInclude()

bool matchesInclude ( str  joint_name)

Returns true if the indicated name matches a name on the include list, false otherwise.

◆ operator=()

PartSubset operator= ( const PartSubset  copy)

◆ output()

output ( Ostream  out)