Objects Containing class.
This class is an interface to manipulate object's containing in the scene.
Public Member Functions | |
__init__ (str pSingleLevelNamespace, FBNamespace pParentNSObj) | |
Constructor. | |
int | GetContentCount () |
Get the namespace content objects count (Not Recursive). | |
FBComponent | GetContent (int pIndex) |
Get the namespace content object count (Not Recursive). | |
GetContentList (tuple pContentList, FBPlugModificationFlag pModificationFlags=kFBPlugAllContent, bool pRecursive=True, int pTypeInfo=FBPlug::TypeInfo, bool pExactTypeMatch=False) | |
Get List of the namespace content. | |
Public Attributes | |
FBPropertyListNamespace | ChildrenNamespaces |
List: Direct Children Namespace Objects. | |
Protected Member Functions | |
__init__ (str pMultiLevelNamespace, object pObject) | |
Constructor. |
Constructor.
For Internal use only.
pMultiLevelNamespace | FBNamespace name. This name will be used as namespace itself. it should follow such pattern "NS1[:NS2[:NS3]]]", where content inside [] is optional. |
pObject | For internal use only. |
__init__ | ( | str | pSingleLevelNamespace, |
FBNamespace | pParentNSObj | ||
) |
Constructor.
Create a new direct children namespace object
pSingleLevelNamespace | FBNamespace name. This name will be used as namespace itself. this name string shouldn't contain namespace string separator ":". |
pParentNSObj | the parent namespace object. if NULl means to create top level namespace. |
int GetContentCount | ( | ) |
Get the namespace content objects count (Not Recursive).
return content objects count inside this namespace (not recursive)
FBComponent GetContent | ( | int | pIndex | ) |
Get the namespace content object count (Not Recursive).
pIndex | content object index to query. return content object inside this namespace (not recursive) |
GetContentList | ( | tuple | pContentList, |
FBPlugModificationFlag | pModificationFlags = kFBPlugAllContent , |
||
bool | pRecursive = True , |
||
int | pTypeInfo = FBPlug::TypeInfo , |
||
bool | pExactTypeMatch = False |
||
) |
Get List of the namespace content.
pContentList | the list of content to return. |
pModificationFlags | bitwise combination of kFBConnectionSrcObjectModified, kFBConnectionDstObjectModified, kFBConnectionSrcPropertyModified, kFBConnectionDstPropertyModified flags. kFBAllContent means all the content. |
pRecursive | True only work on the direct children level namespace, otherwise will work on the whole children namespace hierarchy recursively. |
pTypeInfo | the typeInfo of the type of interested object, 0 for all the objects. |
pExactTypeMatch | if True, the derived typeInfo won't be considered (For example, FBCamera won't be considered when passing FBModel.TypeInfo). |
List: Direct Children Namespace Objects.