@itwin/editor-backend 4.0.0-dev.51 → 4.0.0-dev.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,79 +1,79 @@
1
- /** @packageDocumentation
2
- * @module Editing
3
- */
4
- import { CompressedId64Set, Id64String, IModelStatus } from "@itwin/core-bentley";
5
- import { Matrix3dProps, Range3dProps, TransformProps, XYZProps } from "@itwin/core-geometry";
6
- import { IModelDb } from "@itwin/core-backend";
7
- import { EcefLocationProps, ElementGeometryBuilderParams, ElementGeometryBuilderParamsForPart, ElementGeometryInfo, GeometricElementProps, GeometryPartProps } from "@itwin/core-common";
8
- import { BasicManipulationCommandIpc, BlendEdgesProps, BooleanOperationProps, BRepEntityType, ChamferEdgesProps, ConnectedSubEntityProps, CutProps, DeleteSubEntityProps, EdgeParameterRangeProps, ElementGeometryCacheFilter, ElementGeometryResultOptions, ElementGeometryResultProps, EmbossProps, EvaluatedEdgeProps, EvaluatedFaceProps, EvaluatedVertexProps, FaceParameterRangeProps, FlatBufferGeometryFilter, HollowFacesProps, ImprintProps, LocateSubEntityProps, LoftProps, OffsetEdgesProps, OffsetFacesProps, PointInsideResultProps, SewSheetProps, SolidModelingCommandIpc, SpinFacesProps, SubEntityGeometryProps, SubEntityLocationProps, SubEntityProps, SubEntityType, SweepFacesProps, SweepPathProps, ThickenSheetProps, TransformSubEntityProps } from "@itwin/editor-common";
9
- import { EditCommand } from "./EditCommand";
10
- /** @alpha */
11
- export declare class BasicManipulationCommand extends EditCommand implements BasicManipulationCommandIpc {
12
- protected _str: string;
13
- static commandId: string;
14
- constructor(iModel: IModelDb, _str: string);
15
- onStart(): Promise<string>;
16
- deleteElements(ids: CompressedId64Set): Promise<IModelStatus>;
17
- transformPlacement(ids: CompressedId64Set, transProps: TransformProps): Promise<IModelStatus>;
18
- rotatePlacement(ids: CompressedId64Set, matrixProps: Matrix3dProps, aboutCenter: boolean): Promise<IModelStatus>;
19
- insertGeometricElement(props: GeometricElementProps, data?: ElementGeometryBuilderParams): Promise<Id64String>;
20
- insertGeometryPart(props: GeometryPartProps, data?: ElementGeometryBuilderParamsForPart): Promise<Id64String>;
21
- updateGeometricElement(propsOrId: GeometricElementProps | Id64String, data?: ElementGeometryBuilderParams): Promise<void>;
22
- requestElementGeometry(elementId: Id64String, filter?: FlatBufferGeometryFilter): Promise<ElementGeometryInfo | undefined>;
23
- updateProjectExtents(extents: Range3dProps): Promise<void>;
24
- updateEcefLocation(ecefLocation: EcefLocationProps): Promise<void>;
25
- }
26
- /** @alpha */
27
- export declare class SolidModelingCommand extends BasicManipulationCommand implements SolidModelingCommandIpc {
28
- static commandId: string;
29
- onStart(): Promise<string>;
30
- private updateElementGeometryCache;
31
- createElementGeometryCache(id: Id64String, filter?: ElementGeometryCacheFilter): Promise<boolean>;
32
- clearElementGeometryCache(): Promise<void>;
33
- summarizeElementGeometryCache(id: Id64String): Promise<BRepEntityType[] | undefined>;
34
- private requestSubEntityGeometry;
35
- getSubEntityGeometry(id: Id64String, subEntity: SubEntityProps, opts: Omit<ElementGeometryResultOptions, "writeChanges" | "insertProps">): Promise<SubEntityGeometryProps | undefined>;
36
- getSubEntityParameterRange(id: Id64String, subEntity: SubEntityProps): Promise<FaceParameterRangeProps | EdgeParameterRangeProps | undefined>;
37
- evaluateSubEntity(id: Id64String, subEntity: SubEntityProps, uParam?: number, vParam?: number): Promise<EvaluatedFaceProps | EvaluatedEdgeProps | EvaluatedVertexProps | undefined>;
38
- private subEntityQuery;
39
- isPlanarFace(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
40
- isSmoothEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
41
- isLaminarEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
42
- isLinearEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
43
- isRedundantEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
44
- isSmoothVertex(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
45
- private bodyQuery;
46
- isDisjointBody(id: Id64String, index: number): Promise<boolean>;
47
- isPlanarBody(id: Id64String, index: number): Promise<boolean>;
48
- isSingleFacePlanarSheet(id: Id64String, index: number): Promise<boolean>;
49
- hasOnlyPlanarFaces(id: Id64String, index: number): Promise<boolean>;
50
- hasCurvedFaceOrEdge(id: Id64String, index: number): Promise<boolean>;
51
- getBodySubEntities(id: Id64String, type: SubEntityType, firstOnly?: true): Promise<SubEntityProps[] | undefined>;
52
- getConnectedSubEntities(id: Id64String, subEntity: SubEntityProps, type: SubEntityType, options?: ConnectedSubEntityProps): Promise<SubEntityProps[] | undefined>;
53
- locateSubEntities(id: Id64String, point: XYZProps, direction: XYZProps, options: LocateSubEntityProps): Promise<SubEntityLocationProps[] | undefined>;
54
- locateFace(id: Id64String, subEntity: SubEntityProps, point: XYZProps, direction: XYZProps): Promise<SubEntityLocationProps[] | undefined>;
55
- getClosestSubEntity(id: Id64String, point: XYZProps): Promise<SubEntityLocationProps | undefined>;
56
- getClosestFace(id: Id64String, point: XYZProps, direction?: XYZProps): Promise<SubEntityLocationProps | undefined>;
57
- getClosestPoint(id: Id64String, subEntity: SubEntityProps, point: XYZProps): Promise<SubEntityLocationProps | undefined>;
58
- isPointInside(id: Id64String, point: XYZProps): Promise<PointInsideResultProps[] | undefined>;
59
- private getElementGeometryResults;
60
- private doElementGeometryOperation;
61
- booleanOperation(id: Id64String, params: BooleanOperationProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
62
- sewSheets(id: Id64String, params: SewSheetProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
63
- thickenSheets(id: Id64String, params: ThickenSheetProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
64
- cutSolid(id: Id64String, params: CutProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
65
- embossBody(id: Id64String, params: EmbossProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
66
- imprintBody(id: Id64String, params: ImprintProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
67
- sweepAlongPath(id: Id64String, params: SweepPathProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
68
- loftProfiles(id: Id64String, params: LoftProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
69
- offsetFaces(id: Id64String, params: OffsetFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
70
- offsetEdges(id: Id64String, params: OffsetEdgesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
71
- hollowFaces(id: Id64String, params: HollowFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
72
- sweepFaces(id: Id64String, params: SweepFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
73
- spinFaces(id: Id64String, params: SpinFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
74
- deleteSubEntities(id: Id64String, params: DeleteSubEntityProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
75
- transformSubEntities(id: Id64String, params: TransformSubEntityProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
76
- blendEdges(id: Id64String, params: BlendEdgesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
77
- chamferEdges(id: Id64String, params: ChamferEdgesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
78
- }
1
+ /** @packageDocumentation
2
+ * @module Editing
3
+ */
4
+ import { CompressedId64Set, Id64String, IModelStatus } from "@itwin/core-bentley";
5
+ import { Matrix3dProps, Range3dProps, TransformProps, XYZProps } from "@itwin/core-geometry";
6
+ import { IModelDb } from "@itwin/core-backend";
7
+ import { EcefLocationProps, ElementGeometryBuilderParams, ElementGeometryBuilderParamsForPart, ElementGeometryInfo, GeometricElementProps, GeometryPartProps } from "@itwin/core-common";
8
+ import { BasicManipulationCommandIpc, BlendEdgesProps, BooleanOperationProps, BRepEntityType, ChamferEdgesProps, ConnectedSubEntityProps, CutProps, DeleteSubEntityProps, EdgeParameterRangeProps, ElementGeometryCacheFilter, ElementGeometryResultOptions, ElementGeometryResultProps, EmbossProps, EvaluatedEdgeProps, EvaluatedFaceProps, EvaluatedVertexProps, FaceParameterRangeProps, FlatBufferGeometryFilter, HollowFacesProps, ImprintProps, LocateSubEntityProps, LoftProps, OffsetEdgesProps, OffsetFacesProps, PointInsideResultProps, SewSheetProps, SolidModelingCommandIpc, SpinFacesProps, SubEntityGeometryProps, SubEntityLocationProps, SubEntityProps, SubEntityType, SweepFacesProps, SweepPathProps, ThickenSheetProps, TransformSubEntityProps } from "@itwin/editor-common";
9
+ import { EditCommand } from "./EditCommand";
10
+ /** @alpha */
11
+ export declare class BasicManipulationCommand extends EditCommand implements BasicManipulationCommandIpc {
12
+ protected _str: string;
13
+ static commandId: string;
14
+ constructor(iModel: IModelDb, _str: string);
15
+ onStart(): Promise<string>;
16
+ deleteElements(ids: CompressedId64Set): Promise<IModelStatus>;
17
+ transformPlacement(ids: CompressedId64Set, transProps: TransformProps): Promise<IModelStatus>;
18
+ rotatePlacement(ids: CompressedId64Set, matrixProps: Matrix3dProps, aboutCenter: boolean): Promise<IModelStatus>;
19
+ insertGeometricElement(props: GeometricElementProps, data?: ElementGeometryBuilderParams): Promise<Id64String>;
20
+ insertGeometryPart(props: GeometryPartProps, data?: ElementGeometryBuilderParamsForPart): Promise<Id64String>;
21
+ updateGeometricElement(propsOrId: GeometricElementProps | Id64String, data?: ElementGeometryBuilderParams): Promise<void>;
22
+ requestElementGeometry(elementId: Id64String, filter?: FlatBufferGeometryFilter): Promise<ElementGeometryInfo | undefined>;
23
+ updateProjectExtents(extents: Range3dProps): Promise<void>;
24
+ updateEcefLocation(ecefLocation: EcefLocationProps): Promise<void>;
25
+ }
26
+ /** @alpha */
27
+ export declare class SolidModelingCommand extends BasicManipulationCommand implements SolidModelingCommandIpc {
28
+ static commandId: string;
29
+ onStart(): Promise<string>;
30
+ private updateElementGeometryCache;
31
+ createElementGeometryCache(id: Id64String, filter?: ElementGeometryCacheFilter): Promise<boolean>;
32
+ clearElementGeometryCache(): Promise<void>;
33
+ summarizeElementGeometryCache(id: Id64String): Promise<BRepEntityType[] | undefined>;
34
+ private requestSubEntityGeometry;
35
+ getSubEntityGeometry(id: Id64String, subEntity: SubEntityProps, opts: Omit<ElementGeometryResultOptions, "writeChanges" | "insertProps">): Promise<SubEntityGeometryProps | undefined>;
36
+ getSubEntityParameterRange(id: Id64String, subEntity: SubEntityProps): Promise<FaceParameterRangeProps | EdgeParameterRangeProps | undefined>;
37
+ evaluateSubEntity(id: Id64String, subEntity: SubEntityProps, uParam?: number, vParam?: number): Promise<EvaluatedFaceProps | EvaluatedEdgeProps | EvaluatedVertexProps | undefined>;
38
+ private subEntityQuery;
39
+ isPlanarFace(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
40
+ isSmoothEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
41
+ isLaminarEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
42
+ isLinearEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
43
+ isRedundantEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
44
+ isSmoothVertex(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
45
+ private bodyQuery;
46
+ isDisjointBody(id: Id64String, index: number): Promise<boolean>;
47
+ isPlanarBody(id: Id64String, index: number): Promise<boolean>;
48
+ isSingleFacePlanarSheet(id: Id64String, index: number): Promise<boolean>;
49
+ hasOnlyPlanarFaces(id: Id64String, index: number): Promise<boolean>;
50
+ hasCurvedFaceOrEdge(id: Id64String, index: number): Promise<boolean>;
51
+ getBodySubEntities(id: Id64String, type: SubEntityType, firstOnly?: true): Promise<SubEntityProps[] | undefined>;
52
+ getConnectedSubEntities(id: Id64String, subEntity: SubEntityProps, type: SubEntityType, options?: ConnectedSubEntityProps): Promise<SubEntityProps[] | undefined>;
53
+ locateSubEntities(id: Id64String, point: XYZProps, direction: XYZProps, options: LocateSubEntityProps): Promise<SubEntityLocationProps[] | undefined>;
54
+ locateFace(id: Id64String, subEntity: SubEntityProps, point: XYZProps, direction: XYZProps): Promise<SubEntityLocationProps[] | undefined>;
55
+ getClosestSubEntity(id: Id64String, point: XYZProps): Promise<SubEntityLocationProps | undefined>;
56
+ getClosestFace(id: Id64String, point: XYZProps, direction?: XYZProps): Promise<SubEntityLocationProps | undefined>;
57
+ getClosestPoint(id: Id64String, subEntity: SubEntityProps, point: XYZProps): Promise<SubEntityLocationProps | undefined>;
58
+ isPointInside(id: Id64String, point: XYZProps): Promise<PointInsideResultProps[] | undefined>;
59
+ private getElementGeometryResults;
60
+ private doElementGeometryOperation;
61
+ booleanOperation(id: Id64String, params: BooleanOperationProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
62
+ sewSheets(id: Id64String, params: SewSheetProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
63
+ thickenSheets(id: Id64String, params: ThickenSheetProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
64
+ cutSolid(id: Id64String, params: CutProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
65
+ embossBody(id: Id64String, params: EmbossProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
66
+ imprintBody(id: Id64String, params: ImprintProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
67
+ sweepAlongPath(id: Id64String, params: SweepPathProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
68
+ loftProfiles(id: Id64String, params: LoftProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
69
+ offsetFaces(id: Id64String, params: OffsetFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
70
+ offsetEdges(id: Id64String, params: OffsetEdgesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
71
+ hollowFaces(id: Id64String, params: HollowFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
72
+ sweepFaces(id: Id64String, params: SweepFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
73
+ spinFaces(id: Id64String, params: SpinFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
74
+ deleteSubEntities(id: Id64String, params: DeleteSubEntityProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
75
+ transformSubEntities(id: Id64String, params: TransformSubEntityProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
76
+ blendEdges(id: Id64String, params: BlendEdgesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
77
+ chamferEdges(id: Id64String, params: ChamferEdgesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
78
+ }
79
79
  //# sourceMappingURL=EditBuiltInCommand.d.ts.map