Interface IGeometryStoreInitialiser
Inherited Members
System.IDisposable.Dispose()
Namespace: Xbim.Common.Geometry
Assembly: Xbim.Common.dll
Syntax
public interface IGeometryStoreInitialiser : IDisposable
Methods
| Improve this Doc View SourceAddRegions(XbimRegionCollection)
Adds a collection of geometric regions to the store, this groups geometries into major spatial collection areas
Declaration
int AddRegions(XbimRegionCollection regions)
Parameters
Type | Name | Description |
---|---|---|
XbimRegionCollection | regions |
Returns
Type | Description |
---|---|
System.Int32 | the unique Id of the region collection |
AddShapeGeometry(XbimShapeGeometry)
Adds a shape geometry to the store under transaction
Declaration
int AddShapeGeometry(XbimShapeGeometry shapeGeometry)
Parameters
Type | Name | Description |
---|---|---|
XbimShapeGeometry | shapeGeometry |
Returns
Type | Description |
---|---|
System.Int32 | Returns the ID of the shape geometry |
AddShapeInstance(XbimShapeInstance, Int32)
Adds a shape instance to the store under transaction
Declaration
int AddShapeInstance(XbimShapeInstance shapeInstance, int geometryId)
Parameters
Type | Name | Description |
---|---|---|
XbimShapeInstance | shapeInstance | The shape instance data |
System.Int32 | geometryId | the Id of the geometry shape, must be obtained from AddShapeGeometry |
Returns
Type | Description |
---|---|
System.Int32 | return the Id of the shape instance |
Commit()
Finalises an initialisation and flushes all operations to the store, the transaction must have been obtained from BeginInit
Declaration
void Commit()