public class CSGeometry extends GeometryDefinition
ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
CSGeometry() |
CSGeometry(CSGeometry csg) |
CSGeometry(int level,
int version) |
CSGeometry(String id,
int level,
int version) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCSGObject(CSGObject csgo)
Adds a new
CSGObject to the listOfCSGObjects. |
CSGeometry |
clone() |
CSGObject |
createCSGObject()
Creates a new CSGObject element and adds it to the ListOfCSGObjects list
|
CSGObject |
createCSGObject(String id)
Creates a new
CSGObject element and adds it to the ListOfCSGObjects list |
boolean |
equals(Object obj) |
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
int |
getCSGObjectCount()
Returns the number of
CSGObjects in this
CSGeometry. |
String |
getElementName() |
ListOf<CSGObject> |
getListOfCSGObjects()
Returns the listOfCSGObjects.
|
int |
getNumCSGObjects()
Returns the number of
CSGObjects in this
CSGeometry. |
int |
hashCode() |
boolean |
isSetListOfCSGObjects()
Returns
true, if listOfCSGObjects contains at least one element. |
boolean |
removeCSGObject(CSGObject csgo)
Removes an element from the listOfCSGObjects.
|
void |
removeCSGObject(int i)
Removes an element from the listOfCSGObjects at the given index.
|
void |
setListOfCSGObjects(ListOf<CSGObject> listOfCSGObjects)
Sets the given
ListOf<CSGObject>. |
boolean |
unsetListOfCSGObjects()
Returns
true, if listOfCSGObjects contain at least one element,
otherwise false |
getIsActive, isActive, isSetIsActive, readAttribute, setIsActive, unsetIsActive, writeXMLAttributesgetSpatialId, initDefaults, isSetSpatialId, setSpatialId, unsetSpatialIdaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getExtension, getExtensionCount, getExtensionPackages, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getExtension, getExtensionCount, getExtensionPackages, getHistory, getId, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetpublic CSGeometry()
public CSGeometry(CSGeometry csg)
csg - public CSGeometry(int level,
int version)
level - version - public CSGeometry(String id, int level, int version)
id - level - version - public CSGeometry clone()
clone in interface SBaseclone in class AbstractSpatialNamedSBasepublic boolean equals(Object obj)
equals in interface SBaseequals in class GeometryDefinitionpublic boolean isSetListOfCSGObjects()
true, if listOfCSGObjects contains at least one element.true, if listOfCSGObjects contains at least one element,
otherwise falsepublic ListOf<CSGObject> getListOfCSGObjects()
public void setListOfCSGObjects(ListOf<CSGObject> listOfCSGObjects)
ListOf<CSGObject>. If listOfCSGObjects
was defined before and contains some elements, they are all unset.listOfCSGObjects - public boolean unsetListOfCSGObjects()
true, if listOfCSGObjects contain at least one element,
otherwise falsetrue, if listOfCSGObjects contain at least one element,
otherwise falsepublic boolean addCSGObject(CSGObject csgo)
CSGObject to the listOfCSGObjects.
The listOfCSGObjects is initialized if necessary.
csgo - the element to add to the listCollection#add)public boolean removeCSGObject(CSGObject csgo)
csgo - the element to be removed from the listList#remove(Object)public void removeCSGObject(int i)
i - the index where to remove the CSGObjectIndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).public CSGObject createCSGObject()
public CSGObject createCSGObject(String id)
CSGObject element and adds it to the ListOfCSGObjects listid - CSGObject elementpublic int hashCode()
hashCode in interface SBasehashCode in class GeometryDefinitionpublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodegetAllowsChildren in class AbstractSpatialNamedSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class AbstractSpatialNamedSBasepublic TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class AbstractSpatialNamedSBasepublic int getCSGObjectCount()
CSGObjects in this
CSGeometry.CSGObjects in this
CSGeometry.public int getNumCSGObjects()
CSGObjects in this
CSGeometry.CSGObjects in this
CSGeometry.getCSGObjectCount()public String getElementName()
getElementName in interface SBasegetElementName in class AbstractSBaseCopyright © 2009–2016. All rights reserved.