@itwin/core-backend
Version:
iTwin.js backend components
22 lines • 1.04 kB
TypeScript
import { CustomViewState3dCreatorOptions, CustomViewState3dProps } from "@itwin/core-common";
import { IModelDb } from "./IModelDb";
/**
* Class which helps to generate a custom ViewState3d.
* @internal
*/
export declare class CustomViewState3dCreator {
private _imodel;
constructor(iModel: IModelDb);
/** Gets default view state data such as category Ids and modelextents. If no model ids are passed in, all 3D models in the iModel are used.
* @param [modelIds] Ids of models to display in the view.
* @throws [IModelError]($common) If no 3d models are found in the iModel.
*/
getCustomViewState3dData(options: CustomViewState3dCreatorOptions): Promise<CustomViewState3dProps>;
private _getAllCategories;
/** Compute the union of the extents of all the specified models. */
private _getModelExtents;
/** Get the Ids of all spatially-located, non-template 3d models in the iModel. */
private _getAllModels;
private _executeQuery;
}
//# sourceMappingURL=CustomViewState3dCreator.d.ts.map