BCFViewpoint
-
class
Bcf.BCFViewpoint() Index
Constructors
Methods
activateexportgetCameragetClippingPlanesgetColorsgetColorsToNodesgetFilenamegetLinesgetSelectiongetSelectionNodesgetViewpointGuidgetVisibilityExceptionNodesgetVisibilityExceptionssetCamerasetClippingPlanessetColorNodessetColorssetDefaultVisibilitysetLinessetSelectionsetSelectionNodessetVisibilityExceptionNodessetVisibilityExceptionscreateViewpoint
Constructors
-
Bcf.BCFViewpoint.constructor() - BCFViewpoint(filename: string, document: (None | Document), version:
BCFVersion, modelBounding:Box, modelUnits: number, viewer:IWebViewer):BCFViewpointParameters
filename: string
document: (None | Document)
version:
BCFVersionmodelBounding:
BoxmodelUnits: number
viewer:
IWebViewerReturns:
BCFViewpoint
Methods
-
Bcf.BCFViewpoint.activate() - activate(): Promise
Activates viewpoint. Sets the camera, visibility, cutting planes, colors, and markup.
Returns: Promise
-
Bcf.BCFViewpoint.export() - export(): XMLDocument
Returns: XMLDocument
XML document containing the viewpoint data.
-
Bcf.BCFViewpoint.getCamera() - getCamera(): (None |
Camera)Gets the viewpoint camera, or null if none is set.
Returns: (None |
Camera)
-
Bcf.BCFViewpoint.getClippingPlanes() -
Gets the clipping planes.
Array containing position and direction pairs.
-
Bcf.BCFViewpoint.getColors() - getColors(): Map
Returns: Map
Map correlating color to components.
-
Bcf.BCFViewpoint.getColorsToNodes() - getColorsToNodes(): Map
Returns: Map
Map correlating color to nodes.
-
Bcf.BCFViewpoint.getFilename() - getFilename(): string
Gets the viewpoint filename.
Returns: string
-
Bcf.BCFViewpoint.getLines() -
Gets markup lines.
Array containing start point and end point line pairs.
-
Bcf.BCFViewpoint.getSelection() - getSelection(): string[]
Gets a list of generic IDs that are in the selection set.
Returns: string[]
-
Bcf.BCFViewpoint.getSelectionNodes() - getSelectionNodes(): number[]
Gets a list of node IDs that are in the selection set.
Returns: number[]
-
Bcf.BCFViewpoint.getViewpointGuid() - getViewpointGuid(): (None | string)
Gets the GUID associated with the viewpoint.
Returns: (None | string)
-
Bcf.BCFViewpoint.getVisibilityExceptionNodes() - getVisibilityExceptionNodes(): number[]
Gets the visibility exception node ids.
Returns: number[]
Array of NodeIds corresponding to components.
-
Bcf.BCFViewpoint.getVisibilityExceptions() - getVisibilityExceptions(): string[]
Gets the visibility exception generic ids.
Returns: string[]
Array of GenericIds corresponding to components.
-
Bcf.BCFViewpoint.setCamera() - setCamera(camera:
Camera): voidSets the viewpoint camera.
Parameters
camera:CameraReturns: void
-
Bcf.BCFViewpoint.setClippingPlanes() -
Sets the clipping planes.
Parameters
Returns: void
-
Bcf.BCFViewpoint.setColorNodes() - setColorNodes(colorNodeMap: Map): void
Sets the colors.
Parameters
colorNodeMap: Map
Map correlating color to BfcNodes.Returns: void
-
Bcf.BCFViewpoint.setColors() - setColors(colorGenericIdMap: Map): void
Sets the colors.
Parameters
colorGenericIdMap: Map
Map correlating color to GenericIds.Returns: void
-
Bcf.BCFViewpoint.setDefaultVisibility() - setDefaultVisibility(defaultVisibility: boolean): void
Sets the default visibility. If true, visibility exceptions are hidden. If false, visibility exceptions are shown.
Parameters
defaultVisibility: booleanReturns: void
-
Bcf.BCFViewpoint.setLines() -
Sets the markup lines.
Parameters
Returns: void
-
Bcf.BCFViewpoint.setSelection() - setSelection(selection: string[]): void
Sets a list of items to be added to the selection set.
Parameters
selection: string[]Returns: void
-
Bcf.BCFViewpoint.setSelectionNodes() - setSelectionNodes(selection:
BcfNode[]): voidSets a list of items to be added to the selection set.
Parameters
selection:BcfNode[]Returns: void
-
Bcf.BCFViewpoint.setVisibilityExceptionNodes() - setVisibilityExceptionNodes(visibilityExceptions:
BcfNode[]): voidSets the visibility exceptions. These nodes will be shown or hidden based on the default visibility setting.
Parameters
visibilityExceptions:
BcfNode[]Array of BcfNodes corresponding to components.Returns: void
-
Bcf.BCFViewpoint.setVisibilityExceptions() - setVisibilityExceptions(visibilityExceptions: string[]): void
Sets the visibility exceptions. These nodes will be shown or hidden based on the default visibility setting.
Parameters
visibilityExceptions: string[]
Array of GenericIds corresponding to components.Returns: void
-
static Bcf.BCFViewpoint.createViewpoint() static
createViewpoint(viewer:IWebViewer, viewpointFilename: string, markupView: (None |MarkupView)?): PromiseParameters
Returns: Promise