BCFTopic
-
class
Bcf.BCFTopic() This class contains data corresponding to a BCF file topic.
Constructors
-
Bcf.BCFTopic.constructor() - BCFTopic(bcfDataId: number, bcfFilename: string, topicId: string, viewer:
IWebViewer):BCFTopicParameters
Returns:
BCFTopic
Methods
-
Bcf.BCFTopic.addMarkup() - addMarkup(filename: string, document: (None | Document)):
BCFMarkupAdds a BCF markup.
Parameters
filename: string
document: (None | Document)
Returns:
BCFMarkup
-
Bcf.BCFTopic.addSnapshot() - addSnapshot(filename: string, png: Uint8Array): void
Creates and adds a Snapshot.
Parameters
filename: string
png: Uint8Array
Image data.Returns: void
-
Bcf.BCFTopic.addViewpoint() - addViewpoint(filename: string, document: (None | Document), version:
BCFVersion, modelBounding:Box, modelUnits: number):BCFViewpointCreates and adds BCF viewpoint.
Parameters
filename: string
document: (None | Document)
version:
BCFVersionmodelBounding:
BoxmodelUnits: number
Returns:
BCFViewpoint
-
Bcf.BCFTopic.getSnapshot() - getSnapshot(filename: string): (None |
BCFSnapshot)Gets snapshot data.
Parameters
filename: string
snapshot or corresponding viewpoint filenameReturns: (None |
BCFSnapshot)
-
Bcf.BCFTopic.getSnapshotMap() - getSnapshotMap(): Map
Returns: Map
A map associating snapshot filenames with snapshot data.
-
Bcf.BCFTopic.getTopicId() - getTopicId(): string
Gets the topic id corresponding to the BCF topic folder.
Returns: string
-
Bcf.BCFTopic.getViewpoint() - getViewpoint(filename: string): (None |
BCFViewpoint)Gets viewpoint data.
Parameters
filename: string
viewpoint filename.Returns: (None |
BCFViewpoint)
-
Bcf.BCFTopic.getViewpointMap() - getViewpointMap(): Map
Returns: Map
A map associating viewpoint filenames with viewpoint data.
-
Bcf.BCFTopic.setSnapshot() - setSnapshot(filename: string, snapshot:
BCFSnapshot): voidAdds a BCF Snapshot. If there is already a snapshot with the smae filename, it will be replaced.
Parameters
filename: string
snapshot:
BCFSnapshotReturns: void
-
Bcf.BCFTopic.setViewpoint() - setViewpoint(filename: string, viewpoint:
BCFViewpoint): voidAdds a BCF Viewpoint. If there is a already a viewpoint with the same filename, it will be replaced.
Parameters
filename: string
viewpoint:
BCFViewpointReturns: void
-
static Bcf.BCFTopic.createTopic() static
createTopic(viewer:IWebViewer, bcfDataId: number, bcfFilename: string, topicTitle: string, markupView: (None |MarkupView)?): PromiseTakes a MarkupView and creates a BCF Topic from it.
Parameters
viewer:
IWebViewerbcfDataId: number
bcfFilename: string
topicTitle: string
markupView: (None |
MarkupView) = nullReturns: Promise