Package com.comsol.model
Interface GeomObjectGroupSelection
-
- All Superinterfaces:
AbstractSelection,GeomObjectSelection,ModelEntity,PrimitiveModelEntity
public interface GeomObjectGroupSelection extends GeomObjectSelection
Geometry object group selection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description GeomObjectGroupSelectionadd(java.lang.String... oname)Adds the given objects to the selection.GeomObjectGroupSelectionadd(java.lang.String oname, int[] entities)Adds the entities to the selection on named object.GeomObjectGroupSelectionadd(java.lang.String oname, int entity, int... entities)Adds the entities to the selection on named object.GeomObjectGroupSelectionaddGroup(int... details)Adds the specified groups to the selection.GeomObjectGroupSelectionall(java.lang.String oname)Sets the selection to be all the entities of an object.GeomObjectGroupSelectionclear(java.lang.String oname)Clears all entities of the given object from the selection.int[]group()Returns the group numbers for the selected groups.int[]groupEntities(int detail)Returns the entity numbers of the specified detail group.java.lang.String[]groupNames()Returns a list of names of the groups found.java.lang.StringgroupObject(int detail)Returns the name of the geometry object that contains the specified detail group.GeomObjectGroupSelectioninit()Sets the selection to be a selection of whole geometry objects.GeomObjectGroupSelectioninit(int dim)Sets the selection to be a selection of geometric entities in a specified dimension.GeomObjectGroupSelectionobject(java.lang.String arg0)Deprecated.Useinit()instead.GeomObjectGroupSelectionobject(java.lang.String arg0, int arg1)Deprecated.Useinit(int)instead.GeomObjectGroupSelectionremove(java.lang.String... oname)Removes the given objects from the selection.GeomObjectGroupSelectionremove(java.lang.String oname, int[] entities)Removes the entities from the selection on named object.GeomObjectGroupSelectionremove(java.lang.String oname, int entity, int... entities)Removes the entities from the selection on named object.GeomObjectGroupSelectionremoveGroup(int... details)Removes the specified groups from the selection.GeomObjectGroupSelectionset(java.lang.String... oname)Sets the selection to be the given objects.GeomObjectGroupSelectionset(java.lang.String oname, int entity)Sets the selection on named object to be an entity.GeomObjectGroupSelectionset(java.lang.String oname, int[] entities)Sets the selection on named object to be an entity.GeomObjectGroupSelectionset(java.lang.String oname, int entity, int... entities)Sets the selection on named object to be an entity.GeomObjectGroupSelectionsetGroup(int... details)Sets the selection groups.intsize()Returns the number of detail groups found.-
Methods inherited from interface com.comsol.model.AbstractSelection
dim, dimension, geom
-
Methods inherited from interface com.comsol.model.GeomObjectSelection
add, all, all, clear, clear, dom, entities, entities, named, named, object, objects, remove, set
-
Methods inherited from interface com.comsol.model.ModelEntity
active, author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
-
Methods inherited from interface com.comsol.model.PrimitiveModelEntity
getContainer, getDisplayString, resolveModelPath
-
-
-
-
Method Detail
-
add
GeomObjectGroupSelection add(java.lang.String... oname)
Adds the given objects to the selection.- Specified by:
addin interfaceGeomObjectSelection- Parameters:
oname- Object names.- Returns:
- Geometry object group selection.
-
add
GeomObjectGroupSelection add(java.lang.String oname, int[] entities)
Adds the entities to the selection on named object.- Specified by:
addin interfaceGeomObjectSelection- Parameters:
oname- Object name.entities- Entity indices.- Returns:
- Geometry object group selection.
-
add
GeomObjectGroupSelection add(java.lang.String oname, int entity, int... entities)
Adds the entities to the selection on named object.- Specified by:
addin interfaceGeomObjectSelection- Parameters:
oname- Object name.entity- Entity index.entities- Entity indices.- Returns:
- Geometry object group selection.
-
addGroup
GeomObjectGroupSelection addGroup(int... details)
Adds the specified groups to the selection.- Parameters:
details- Specified groups.- Returns:
- Geometry object group selection.
-
all
GeomObjectGroupSelection all(java.lang.String oname)
Sets the selection to be all the entities of an object.- Specified by:
allin interfaceGeomObjectSelection- Parameters:
oname- Object name.- Returns:
- Geometry object group selection.
-
clear
GeomObjectGroupSelection clear(java.lang.String oname)
Clears all entities of the given object from the selection. Does not affect the selection on other objects.- Specified by:
clearin interfaceGeomObjectSelection- Parameters:
oname- Object name.- Returns:
- Geometry object group selection.
-
group
int[] group()
Returns the group numbers for the selected groups.- Returns:
- List of group numbers.
-
groupEntities
int[] groupEntities(int detail)
Returns the entity numbers of the specified detail group.- Parameters:
detail- Specified group.- Returns:
- List of entity numbers.
-
groupNames
java.lang.String[] groupNames()
Returns a list of names of the groups found.- Returns:
- List of names of groups.
-
groupObject
java.lang.String groupObject(int detail)
Returns the name of the geometry object that contains the specified detail group.- Parameters:
detail- Specified group.- Returns:
- Geometry object name.
-
init
GeomObjectGroupSelection init()
Sets the selection to be a selection of whole geometry objects.- Specified by:
initin interfaceGeomObjectSelection- Returns:
- Geometry object group selection.
-
init
GeomObjectGroupSelection init(int dim)
Sets the selection to be a selection of geometric entities in a specified dimension.- Specified by:
initin interfaceGeomObjectSelection- Parameters:
dim- Dimension.- Returns:
- Geometry object group selection.
-
object
@Deprecated GeomObjectGroupSelection object(java.lang.String arg0)
Deprecated.Useinit()instead.- Specified by:
objectin interfaceGeomObjectSelection
-
object
@Deprecated GeomObjectGroupSelection object(java.lang.String arg0, int arg1)
Deprecated.Useinit(int)instead.- Specified by:
objectin interfaceGeomObjectSelection
-
remove
GeomObjectGroupSelection remove(java.lang.String... oname)
Removes the given objects from the selection.- Specified by:
removein interfaceGeomObjectSelection- Parameters:
oname- Object names.- Returns:
- Geometry object group selection.
-
remove
GeomObjectGroupSelection remove(java.lang.String oname, int[] entities)
Removes the entities from the selection on named object.- Specified by:
removein interfaceGeomObjectSelection- Parameters:
oname- Object name.entities- Entity indices.- Returns:
- Geometry object group selection.
-
remove
GeomObjectGroupSelection remove(java.lang.String oname, int entity, int... entities)
Removes the entities from the selection on named object.- Specified by:
removein interfaceGeomObjectSelection- Parameters:
oname- Object name.entity- Entity index.entities- Entity indices.- Returns:
- Geometry object group selection.
-
removeGroup
GeomObjectGroupSelection removeGroup(int... details)
Removes the specified groups from the selection.- Parameters:
details- Specified groups.- Returns:
- Geometry object group selection.
-
set
GeomObjectGroupSelection set(java.lang.String... oname)
Sets the selection to be the given objects.- Specified by:
setin interfaceGeomObjectSelection- Parameters:
oname- Object names.- Returns:
- Geometry object group selection.
-
set
GeomObjectGroupSelection set(java.lang.String oname, int entity)
Sets the selection on named object to be an entity.- Specified by:
setin interfaceGeomObjectSelection- Parameters:
oname- Object name.entity- Entity index.- Returns:
- Geometry object group selection.
-
set
GeomObjectGroupSelection set(java.lang.String oname, int[] entities)
Sets the selection on named object to be an entity.- Specified by:
setin interfaceGeomObjectSelection- Parameters:
oname- Object name.entities- Entity indices.- Returns:
- Geometry object group selection.
-
set
GeomObjectGroupSelection set(java.lang.String oname, int entity, int... entities)
Sets the selection on named object to be an entity.- Specified by:
setin interfaceGeomObjectSelection- Parameters:
oname- Object names.entity- Entity index.entities- Additional entity indices.- Returns:
- Geometry object group selection.
-
setGroup
GeomObjectGroupSelection setGroup(int... details)
Sets the selection groups.- Parameters:
details- Specified groups.- Returns:
- Geometry object group selection.
-
size
int size()
Returns the number of detail groups found.- Returns:
- Number of detail groups.
-
-