PyANGKernel.GKGroupingType¶
- class GKGroupingType¶
GKGroupingTypecorresponds to a Grouping Category: a set of Groupings (GKGroup) of objects of the same type.Synopsis¶
Methods¶
def
__init__()def
addGroup()def
contains()def
getFilterType()def
getGroups()def
refreshStats()def
removeGroup()def
setFilterType()
Static functions¶
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- class GroupingType¶
Objects in groups are acquired as a manual list or as the contents of a polygon.
- __init__()¶
Add a new group to this grouping
Is the object in any group inside this grouping category?
- static createGroupingType(iModel, iFilter)¶
- Parameters:
- Return type:
- static findGroupingType(iModel, iFilter)¶
- Parameters:
- Return type:
Type of objects that we can group
- getGroupingType()¶
- Return type:
Objects in groups are acquired as a manual list or as the contents of a polygon.
- getGroups()¶
- Return type:
Dictionary with keys of type .uint and values of type GKObject.
Returns all the groups of this grouping.
Returns the list of
GKGroupthat contain the specifiedGKObject(can be an empty list).- getGroupsObjects()¶
- Return type:
.QSetGKObject
Returns all the objects in the groups of this grouping.
Gets the internal grouping type name
If true, a
GKObjectcannot be contained in more than oneGKGroupof thisGKGroupingType.- refreshStats(originator[, createColumns=true])¶
- Parameters:
originator –
GKObjectcreateColumns – bool
Refresh grouping category statistics. Called during the simulation
- refreshStats(originator, cols[, createColumns=true[, task=None]])
Refresh grouping category statistics
Removes a group from this grouping. The group is not deleted.
- setExclusiveObjects(exclusive)¶
- Parameters:
exclusive – bool
If true, a
GKObjectcannot be contained in more than oneGKGroupof thisGKGroupingType.See also
Type of objects that we can group
- setGroupingType(groupingType)¶
- Parameters:
groupingType –
GroupingType
Objects in groups are acquired as a manual list or as the contents of a polygon.
- setInternalName(iname)¶
- Parameters:
iname – str
Sets the internal (and unique) grouping type name.