csc.model.ClusterEditor

class csc.model.ClusterEditor

ClusterEditor class

This class lets edit scene data clusters.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

add_cluster(self, inserted_ids, name)

insertedIds : csc.model.DataId[] | name : string ("") | -> ClusterId

add_data_to_cluster(self, cluster_index, ...)

cluster_index : ClusterId | insertedIds : csc.model.DataId[]

bind_clusters(self, cluster_id_first, ...)

cluster_id_first : ClusterId | cluster_id_second : ClusterId

cluster_by_data(self, data_id)

data_id : csc.model.DataId | -> ClusterId

remove_cluster(self, cluster_id)

cluster_id : ClusterId

remove_data_from_cluster(self, data_id)

data_id : csc.model.DataId

set_cluster_name(self, cluster_id, name)

cluster_id : ClusterId | name : string

unbind_cluster(self, cluster_id)

cluster_id : ClusterId

unbind_clusters(self, cluster_id_first, ...)

cluster_id_first : ClusterId | cluster_id_second : ClusterId

__init__(*args, **kwargs)
__module__ = 'csc.model'
add_cluster(self: csc.model.ClusterEditor, inserted_ids: List[csc.model.DataId], name: str) int

insertedIds : csc.model.DataId[] | name : string (“”) | -> ClusterId

add_data_to_cluster(self: csc.model.ClusterEditor, cluster_index: int, inserted_ids: List[csc.model.DataId]) None

cluster_index : ClusterId | insertedIds : csc.model.DataId[]

bind_clusters(self: csc.model.ClusterEditor, cluster_id_first: int, cluster_id_second: int) None

cluster_id_first : ClusterId | cluster_id_second : ClusterId

cluster_by_data(self: csc.model.ClusterEditor, data_id: csc.model.DataId) int

data_id : csc.model.DataId | -> ClusterId

remove_cluster(self: csc.model.ClusterEditor, cluster_id: int) None

cluster_id : ClusterId

remove_data_from_cluster(self: csc.model.ClusterEditor, data_id: csc.model.DataId) None

data_id : csc.model.DataId

set_cluster_name(self: csc.model.ClusterEditor, cluster_id: int, name: str) None

cluster_id : ClusterId | name : string

unbind_cluster(self: csc.model.ClusterEditor, cluster_id: int) None

cluster_id : ClusterId

unbind_clusters(self: csc.model.ClusterEditor, cluster_id_first: int, cluster_id_second: int) None

cluster_id_first : ClusterId | cluster_id_second : ClusterId