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 alredy 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 alredy 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. | |
| 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. | |
| long | GetStudyID () |
| Get ID of study, where the operation is defined. | |
| void | StartOperation () |
| Opens a new transaction. | |
| void | FinishOperation () |
| Closes the previously opened trasaction. | |
| void | AbortOperation () |
| Aborts the previously opened transaction. | |
Interface for groups creation.
| GEOM_Object GEOM::GEOM_IGroupOperations::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 GEOM::GEOM_IGroupOperations::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 GEOM::GEOM_IGroupOperations::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 GEOM::GEOM_IGroupOperations::UnionList | ( | in GEOM_Object | theGroup, |
| in ListOfGO | theSubShapes | ||
| ) |
Adds to the group all the given shapes. No errors, if some shapes are alredy 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 GEOM::GEOM_IGroupOperations::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 GEOM::GEOM_IGroupOperations::UnionIDs | ( | in GEOM_Object | theGroup, |
| in ListOfLong | theSubShapes | ||
| ) |
Adds to the group all the given shapes. No errors, if some shapes are alredy 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 GEOM::GEOM_IGroupOperations::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. |
| long GEOM::GEOM_IGroupOperations::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 GEOM::GEOM_IGroupOperations::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 GEOM::GEOM_IGroupOperations::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 occured |
|
inherited |
Get the operation error code.
|
inherited |
Get ID of study, where the operation is defined.
|
inherited |
Opens a new transaction.
|
inherited |
Closes the previously opened trasaction.
|
inherited |
Aborts the previously opened transaction.