QueryVisualizer
Class in @bimworks/viewercommon.
API catalogue · @bimworks/viewercommon · Class
TypeScript#
class QueryVisualizerShows the results of a query in the viewers: visibility, selection and colours as the query asks
Members#
| Member | Kind | Description |
|---|---|---|
| constructor | Method | |
| visualizeQuery | Method | Runs a stored query (a favourite) and visualizes its results; options.ui: the part of the UI a person asked this from, sent as the request's ui |
| visualizeQueryAst | Method | Runs a parsed query and visualizes its results; options.ui as for QueryVisualizer.visualizeQuery |
constructor#
TypeScript#
constructor(objectStateManager: ObjectStateManager, viewer3d?: unknown)Parameters#
| Name | Type | Description |
|---|---|---|
objectStateManager |
ObjectStateManager | |
viewer3d |
unknown |
The 3D viewer (Viewer3D's Viewer3d) that draws the results' virtual shapes (BOX, CYLINDER) as overlays, replacing the previous query's; without it only visibility and colours are shown |
visualizeQuery#
TypeScript#
visualizeQuery(query: unknown, options?: { ui?: string }): Promise<unknown>Runs a stored query (a favourite) and visualizes its results; options.ui: the part of the UI a person asked this from, sent as the request's ui
Parameters#
| Name | Type | Description |
|---|---|---|
query |
unknown |
|
options |
{ ui?: string } |
visualizeQueryAst#
TypeScript#
visualizeQueryAst(queryAst: unknown, options?: { ui?: string }): Promise<unknown>Runs a parsed query and visualizes its results; options.ui as for QueryVisualizer.visualizeQuery
Parameters#
| Name | Type | Description |
|---|---|---|
queryAst |
unknown |
|
options |
{ ui?: string } |