Reference·Java · nl.bimbase.bimworks.client.apisJava

Geometry2dApi

CLASS in nl.bimbase.bimworks.client.apis.

API catalogue · nl.bimbase.bimworks.client.apis · CLASS

Java#
public class 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...)).

Inheritance and interfaces#

Members#

Member Kind Description
Geometry2dApi(BimWorksClient) CONSTRUCTOR
downloadGeometry2D(UUID, String, LongConsumer) METHOD 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 c…
exportSvg(UUID) METHOD Floor plan of the first building storey as SVG. The caller closes the stream.

Geometry2dApi(BimWorksClient)#

Parameters#

Name Type Description
bimWorksClient BimWorksClient

downloadGeometry2D(UUID, String, LongConsumer)#

Java#
public long downloadGeometry2D(java.util.UUID versionUuid, java.lang.String query, java.util.function.LongConsumer chunkListener) throws nl.bimbase.bimworks.client.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#

Name Type Description
versionUuid java.util.UUID
query java.lang.String the BQL selecting the products to draw
chunkListener java.util.function.LongConsumer receives each chunk's size, may be null

Returns#

the number of bytes received

exportSvg(UUID)#

Java#
public java.io.InputStream exportSvg(java.util.UUID versionUuid) throws nl.bimbase.bimworks.client.BimWorksException

Floor plan of the first building storey as SVG. The caller closes the stream.

Parameters#

Name Type Description
versionUuid java.util.UUID

Inherited members#

  • java.lang.Object#equals(java.lang.Object)
  • java.lang.Object#toString()
  • java.lang.Object#wait(long)
  • java.lang.Object#wait(long,int)
  • java.lang.Object#wait()
  • java.lang.Object#finalize()
  • java.lang.Object#getClass()
  • java.lang.Object#hashCode()
  • java.lang.Object#clone()
  • java.lang.Object#notify()
  • java.lang.Object#notifyAll()
  • getBimWorksClient()