Interface for groups creation. More...
import <GEOM_Gen.idl;
Public Member Functions | |
| GEOM_Object | CreateGroup (in GEOM_Object theMainShape, in long theShapeType) |
| Creates a new group which will store sub-shapes of theMainShape. | |
| void | AddObject (in GEOM_Object theGroup, in long theSubShapeId) |
| Adds a sub-object with ID theSubShapeId to the group. | |
| void | RemoveObject (in GEOM_Object theGroup, in long theSubShapeId) |
| Removes a sub-object with ID theSubShapeId from the group. | |
| void | UnionList (in GEOM_Object theGroup, in ListOfGO theSubShapes) |
| Adds to the group all the given shapes. No errors, if some shapes are already included. | |
| void | DifferenceList (in GEOM_Object theGroup, in ListOfGO theSubShapes) |
| Removes from the group all the given shapes. No errors, if some shapes are not included. | |
| void | UnionIDs (in GEOM_Object theGroup, in ListOfLong theSubShapes) |
| Adds to the group all the given shapes. No errors, if some shapes are already included. | |
| void | DifferenceIDs (in GEOM_Object theGroup, in ListOfLong theSubShapes) |
| Removes from the group all the given shapes. No errors, if some shapes are not included. | |
| GEOM_Object | UnionGroups (in GEOM_Object theGroup1, in GEOM_Object theGroup2) |
| Union of two groups. New group is created. It will contain all entities which are present in groups theGroup1 and theGroup2. | |
| GEOM_Object | IntersectGroups (in GEOM_Object theGroup1, in GEOM_Object theGroup2) |
| Intersection of two groups. New group is created. It will contain only those entities which are present in both groups theGroup1 and theGroup2. | |
| GEOM_Object | CutGroups (in GEOM_Object theGroup1, in GEOM_Object theGroup2) |
| Cut of two groups. New group is created. It will contain entities which are present in group theGroup1 but are not present in group theGroup2. | |
| GEOM_Object | UnionListOfGroups (in ListOfGO theGList) |
| Union of list of groups. New group is created. It will contain all entities that are present in groups listed in theGList. | |
| GEOM_Object | IntersectListOfGroups (in ListOfGO theGList) |
| Intersection of list of groups. New group is created. It will contain only entities which are simultaneously present in the groups listed in theGList. | |
| GEOM_Object | CutListOfGroups (in ListOfGO theGList1, in ListOfGO theGList2) |
| Cut of lists of groups. New group is created. It will contain only entities which are present in groups listed in theGList1 but are not present in groups from theGList2. | |
| long | GetType (in GEOM_Object theGroup) |
| Returns a type of sub-objects stored in the group. | |
| GEOM_Object | GetMainShape (in GEOM_Object theGroup) |
| Returns a main shape associated with the group. | |
| ListOfLong | GetObjects (in GEOM_Object theGroup) |
| Returns a list of sub-objects ID stored in the group. | |
| boolean | IsDone () |
| To know, if the operation was successfully performed. | |
| void | SetErrorCode (in string theErrorID) |
| Set the operation error code. | |
| string | GetErrorCode () |
| Get the operation error code. | |
| void | StartOperation () |
| Opens a new transaction. | |
| void | FinishOperation () |
| Closes the previously opened transaction. | |
| void | AbortOperation () |
| Aborts the previously opened transaction. | |
Interface for groups creation.
| GEOM_Object CreateGroup | ( | in GEOM_Object | theMainShape, |
| in long | theShapeType | ||
| ) |
Creates a new group which will store sub-shapes of theMainShape.
| theMainShape | is a GEOM_Object on which the group is selected |
| theShapeType | defines a shape type of the group |
| void AddObject | ( | in GEOM_Object | theGroup, |
| in long | theSubShapeId | ||
| ) |
Adds a sub-object with ID theSubShapeId to the group.
| theGroup | is a GEOM group to which the new sub-shape is added |
| theSubShapeId | is a sub-shape ID in the main object. |
| void RemoveObject | ( | in GEOM_Object | theGroup, |
| in long | theSubShapeId | ||
| ) |
Removes a sub-object with ID theSubShapeId from the group.
| theGroup | is a GEOM group from which the sub-shape is removed. |
| theSubShapeId | is a sub-shape ID in the main object. |
| void UnionList | ( | in GEOM_Object | theGroup, |
| in ListOfGO | theSubShapes | ||
| ) |
Adds to the group all the given shapes. No errors, if some shapes are already included.
| theGroup | is a GEOM group to which the new sub-shapes are added. |
| theSubShapes | is a list of sub-shapes to be added. |
| void DifferenceList | ( | in GEOM_Object | theGroup, |
| in ListOfGO | theSubShapes | ||
| ) |
Removes from the group all the given shapes. No errors, if some shapes are not included.
| theGroup | is a GEOM group from which the sub-shapes are removed. |
| theSubShapes | is a list of sub-shapes to be removed. |
| void UnionIDs | ( | in GEOM_Object | theGroup, |
| in ListOfLong | theSubShapes | ||
| ) |
Adds to the group all the given shapes. No errors, if some shapes are already included.
| theGroup | is a GEOM group to which the new sub-shapes are added. |
| theSubShapes | is a list of IDs of sub-shapes to be added. |
| void DifferenceIDs | ( | in GEOM_Object | theGroup, |
| in ListOfLong | theSubShapes | ||
| ) |
Removes from the group all the given shapes. No errors, if some shapes are not included.
| theGroup | is a GEOM group from which the sub-shapes are removed. |
| theSubShapes | is a list of IDs of sub-shapes to be removed. |
| GEOM_Object UnionGroups | ( | in GEOM_Object | theGroup1, |
| in GEOM_Object | theGroup2 | ||
| ) |
| GEOM_Object IntersectGroups | ( | in GEOM_Object | theGroup1, |
| in GEOM_Object | theGroup2 | ||
| ) |
| GEOM_Object CutGroups | ( | in GEOM_Object | theGroup1, |
| in GEOM_Object | theGroup2 | ||
| ) |
| GEOM_Object UnionListOfGroups | ( | in ListOfGO | theGList | ) |
| GEOM_Object IntersectListOfGroups | ( | in ListOfGO | theGList | ) |
| GEOM_Object CutListOfGroups | ( | in ListOfGO | theGList1, |
| in ListOfGO | theGList2 | ||
| ) |
Cut of lists of groups. New group is created. It will contain only entities which are present in groups listed in theGList1 but are not present in groups from theGList2.
| theGList1 | is a list of GEOM groups to include elements of. |
| theGList2 | is a list of GEOM groups to exclude elements of. |
| long GetType | ( | in GEOM_Object | theGroup | ) |
Returns a type of sub-objects stored in the group.
| theGroup | is a GEOM group which type is returned. |
| GEOM_Object GetMainShape | ( | in GEOM_Object | theGroup | ) |
Returns a main shape associated with the group.
| theGroup | is a GEOM group for which a main shape object is requested |
| ListOfLong GetObjects | ( | in GEOM_Object | theGroup | ) |
Returns a list of sub-objects ID stored in the group.
| theGroup | is a GEOM group for which a list of IDs is requested |
|
inherited |
To know, if the operation was successfully performed.
|
inherited |
Set the operation error code.
| theErrorID | is a string describing the error occurred |
|
inherited |
Get the operation error code.
|
inherited |
Opens a new transaction.
|
inherited |
Closes the previously opened transaction.
|
inherited |
Aborts the previously opened transaction.