Class Geometry2dApi
java.lang.Object
nl.bimbase.bimworks.client.apis.SubApi
nl.bimbase.bimworks.client.apis.Geometry2dApi
2D geometry: what the 2D viewer downloads, and floor plan SVG export. A model's footprint is a BQL query
(
GET PROJECTION().wkt("EPSG:4326") through BimApi.query(String, java.util.UUID...)).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongdownloadGeometry2D(UUID versionUuid, String query, LongConsumer chunkListener) Download the 2D viewer geometry of a model, as the 2D viewer does: the payload arrives as binary pushes (settings, base translation, bounding box, geometry chunks).Floor plan of the first building storey as SVG.Methods inherited from class SubApi
getBimWorksClient
-
Constructor Details
-
Geometry2dApi
-
-
Method Details
-
downloadGeometry2D
public long downloadGeometry2D(UUID versionUuid, String query, LongConsumer chunkListener) throws BimWorksException Download the 2D viewer geometry of a model, as the 2D viewer does: the payload arrives as binary pushes (settings, base translation, bounding box, geometry chunks).- Parameters:
query- the BQL selecting the products to drawchunkListener- receives each chunk's size, may be null- Returns:
- the number of bytes received
- Throws:
BimWorksException
-
exportSvg
Floor plan of the first building storey as SVG. The caller closes the stream.- Throws:
BimWorksException
-