BCFViewpoint
- class Communicator.BCFViewpoint()
Constructors
Methods
Constructors
- BCFViewpoint.constructor(filename, document, version, modelBounding, modelUnits, viewer)
- Arguments
filename (
string()
) –document (
Document | null()
) –version (BCFVersion) –
modelBounding (
Box()
) –modelUnits (
number()
) –viewer (
WebViewer()
) –
- Return type
Methods
activate
- BCFViewpoint.activate()
Activates viewpoint. Sets the camera, visibility, cutting planes, colors, and markup.
- Return type
Promise <void>
export
- BCFViewpoint.export()
- Return type
XMLDocument
- Returns
XML document containing the viewpoint data.
getCamera
getClippingPlanes
getColors
getColorsToNodes
getFilename
- BCFViewpoint.getFilename()
Gets the viewpoint filename.
- Return type
string
getLines
getSelection
getSelectionNodes
getViewpointGuid
- BCFViewpoint.getViewpointGuid()
Gets the GUID associated with the viewpoint.
- Return type
string | null
getVisibilityExceptionNodes
getVisibilityExceptions
setCamera
setClippingPlanes
setColorNodes
setColors
setDefaultVisibility
- BCFViewpoint.setDefaultVisibility(defaultVisibility)
Sets the default visibility. If true, visibility exceptions are hidden. If false, visibility exceptions are shown.
- Arguments
defaultVisibility (
boolean()
) –
- Return type
void
setLines
setSelection
setSelectionNodes
setVisibilityExceptionNodes
setVisibilityExceptions
static createViewpoint
- BCFViewpoint.createViewpoint(viewer, viewpointFilename[, markupView])
- Arguments
viewer (
WebViewer()
) –viewpointFilename (
string()
) –markupView (
MarkupView()
| null) – optional
- Return type
Promise <
BCFViewpoint()
>