Version: 9.12.0
GEOM::GEOM_IGroupOperations Interface Reference

Interface for groups creation.

import"GEOM_Gen.idl";

Inheritance diagram for GEOM::GEOM_IGroupOperations:
Inheritance graph

Public Member Functions

GEOM_Object CreateGroup (in GEOM_Object theMainShape, in long theShapeType)
 Creates a new group which will store sub-shapes of theMainShape. More...
 
void AddObject (in GEOM_Object theGroup, in long theSubShapeId)
 Adds a sub-object with ID theSubShapeId to the group. More...
 
void RemoveObject (in GEOM_Object theGroup, in long theSubShapeId)
 Removes a sub-object with ID theSubShapeId from the group. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
long GetType (in GEOM_Object theGroup)
 Returns a type of sub-objects stored in the group. More...
 
GEOM_Object GetMainShape (in GEOM_Object theGroup)
 Returns a main shape associated with the group. More...
 
ListOfLong GetObjects (in GEOM_Object theGroup)
 Returns a list of sub-objects ID stored in the group. More...
 
- Public Member Functions inherited from GEOM::GEOM_IOperations
boolean IsDone ()
 To know, if the operation was successfully performed. More...
 
void SetErrorCode (in string theErrorID)
 Set the operation error code. More...
 
string GetErrorCode ()
 Get the operation error code. More...
 
void StartOperation ()
 Opens a new transaction. More...
 
void FinishOperation ()
 Closes the previously opened transaction. More...
 
void AbortOperation ()
 Aborts the previously opened transaction. More...
 

Member Function Documentation

◆ AddObject()

void GEOM::GEOM_IGroupOperations::AddObject ( in GEOM_Object  theGroup,
in long  theSubShapeId 
)
Parameters
theGroupis a GEOM group to which the new sub-shape is added
theSubShapeIdis a sub-shape ID in the main object.
Note
Use method GEOM_IShapesOperations.GetSubShapeIndex() to get an ID by the sub-shape

◆ CreateGroup()

GEOM_Object GEOM::GEOM_IGroupOperations::CreateGroup ( in GEOM_Object  theMainShape,
in long  theShapeType 
)
Parameters
theMainShapeis a GEOM_Object on which the group is selected
theShapeTypedefines a shape type of the group
Returns
a newly created GEOM group

◆ CutGroups()

GEOM_Object GEOM::GEOM_IGroupOperations::CutGroups ( in GEOM_Object  theGroup1,
in GEOM_Object  theGroup2 
)
Parameters
theGroup1is a GEOM group to include elements of.
theGroup2is a GEOM group to exclude elements of.
Returns
a newly created GEOM group.

◆ CutListOfGroups()

GEOM_Object GEOM::GEOM_IGroupOperations::CutListOfGroups ( in ListOfGO  theGList1,
in ListOfGO  theGList2 
)
Parameters
theGList1is a list of GEOM groups to include elements of.
theGList2is a list of GEOM groups to exclude elements of.
Returns
a newly created GEOM group.

◆ DifferenceIDs()

void GEOM::GEOM_IGroupOperations::DifferenceIDs ( in GEOM_Object  theGroup,
in ListOfLong  theSubShapes 
)
Parameters
theGroupis a GEOM group from which the sub-shapes are removed.
theSubShapesis a list of IDs of sub-shapes to be removed.

◆ DifferenceList()

void GEOM::GEOM_IGroupOperations::DifferenceList ( in GEOM_Object  theGroup,
in ListOfGO  theSubShapes 
)
Parameters
theGroupis a GEOM group from which the sub-shapes are removed.
theSubShapesis a list of sub-shapes to be removed.

◆ GetMainShape()

GEOM_Object GEOM::GEOM_IGroupOperations::GetMainShape ( in GEOM_Object  theGroup)
Parameters
theGroupis a GEOM group for which a main shape object is requested
Returns
a GEOM_Object which is a main shape for theGroup

◆ GetObjects()

ListOfLong GEOM::GEOM_IGroupOperations::GetObjects ( in GEOM_Object  theGroup)
Parameters
theGroupis a GEOM group for which a list of IDs is requested

◆ GetType()

long GEOM::GEOM_IGroupOperations::GetType ( in GEOM_Object  theGroup)
Parameters
theGroupis a GEOM group which type is returned.

◆ IntersectGroups()

GEOM_Object GEOM::GEOM_IGroupOperations::IntersectGroups ( in GEOM_Object  theGroup1,
in GEOM_Object  theGroup2 
)
Parameters
theGroup1,theGroup2are the initial GEOM groups to get common part of.
Returns
a newly created GEOM group.

◆ IntersectListOfGroups()

GEOM_Object GEOM::GEOM_IGroupOperations::IntersectListOfGroups ( in ListOfGO  theGList)
Parameters
theGListis a list of GEOM groups to get common part of.
Returns
a newly created GEOM group.

◆ RemoveObject()

void GEOM::GEOM_IGroupOperations::RemoveObject ( in GEOM_Object  theGroup,
in long  theSubShapeId 
)
Parameters
theGroupis a GEOM group from which the sub-shape is removed.
theSubShapeIdis a sub-shape ID in the main object.
Note
Use method GEOM_IShapesOperations.GetSubShapeIndex() to get an ID by the sub-shape

◆ UnionGroups()

GEOM_Object GEOM::GEOM_IGroupOperations::UnionGroups ( in GEOM_Object  theGroup1,
in GEOM_Object  theGroup2 
)
Parameters
theGroup1,theGroup2are the initial GEOM groups to create the united group from.
Returns
a newly created GEOM group.

◆ UnionIDs()

void GEOM::GEOM_IGroupOperations::UnionIDs ( in GEOM_Object  theGroup,
in ListOfLong  theSubShapes 
)
Parameters
theGroupis a GEOM group to which the new sub-shapes are added.
theSubShapesis a list of IDs of sub-shapes to be added.

◆ UnionList()

void GEOM::GEOM_IGroupOperations::UnionList ( in GEOM_Object  theGroup,
in ListOfGO  theSubShapes 
)
Parameters
theGroupis a GEOM group to which the new sub-shapes are added.
theSubShapesis a list of sub-shapes to be added.

◆ UnionListOfGroups()

GEOM_Object GEOM::GEOM_IGroupOperations::UnionListOfGroups ( in ListOfGO  theGList)
Parameters
theGListis a list of GEOM groups to create the united group from.
Returns
a newly created GEOM group.

The documentation for this interface was generated from the following file: