/
LinearReferencingRelationships.ts
87 lines (78 loc) · 3.88 KB
/
LinearReferencingRelationships.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module LinearReferencing
*/
import { Id64String } from "@itwin/core-bentley";
import { ElementRefersToElements } from "@itwin/core-backend";
import { RelatedElement } from "@itwin/core-common";
/** Relationship indicating the Linear-Element along which concrete instances mixing-in ILinearlyLocated are located.
* @beta
*/
export class ILinearlyLocatedAlongILinearElement extends ElementRefersToElements {
/** @internal */
public static override get className(): string { return "ILinearlyLocatedAlongILinearElement"; }
}
/** Relationship indicating bis:Element being linearly-located by a concrete instance mixing-in ILinearLocationElement.
* @beta
*/
export class ILinearLocationLocatesElement extends ElementRefersToElements {
/** @internal */
public static override get className(): string { return "ILinearLocationLocatesElement"; }
}
/** Relationship associating Linear-Elements with the elements they came from.
* @beta
*/
export class ILinearElementProvidedBySource extends RelatedElement {
public static classFullName = "LinearReferencing:ILinearElementProvidedBySource";
public constructor(sourceId: Id64String, relClassName: string = ILinearElementProvidedBySource.classFullName) {
super({ id: sourceId, relClassName });
}
}
/** Relationship indicating the bis:Element being attributed by a concrete instance mixing-in ILinearlyLocatedAttribution.
* @beta
*/
export class ILinearlyLocatedAttributesElement extends RelatedElement {
public static classFullName = "LinearReferencing:ILinearlyLocatedAttributesElement";
public constructor(attributedElementId: Id64String, relClassName: string = ILinearlyLocatedAttributesElement.classFullName) {
super({ id: attributedElementId, relClassName });
}
}
/** Relationship indicating the bis:SpatialElement being used as Referent for Linear Referencing purposes.
* @beta
*/
export class IReferentReferencesElement extends RelatedElement {
public static classFullName = "LinearReferencing:IReferentReferencesElement";
public constructor(referencedElementId: Id64String, relClassName: string = IReferentReferencesElement.classFullName) {
super({ id: referencedElementId, relClassName });
}
}
/** Relationship indicating the referent used by a particular linearly-referenced At position.
* @beta
*/
export class LinearlyReferencedAtPositionRefersToReferent extends RelatedElement {
public static classFullName = "LinearReferencing:LinearlyReferencedAtPositionRefersToReferent";
public constructor(referentId: Id64String, relClassName: string = IReferentReferencesElement.classFullName) {
super({ id: referentId, relClassName });
}
}
/** Relationship indicating the referent used by a particular linearly-referenced From position.
* @beta
*/
export class LinearlyReferencedFromPositionRefersToReferent extends RelatedElement {
public static classFullName = "LinearReferencing:LinearlyReferencedFromPositionRefersToReferent";
public constructor(referentId: Id64String, relClassName: string = LinearlyReferencedFromPositionRefersToReferent.classFullName) {
super({ id: referentId, relClassName });
}
}
/** Relationship indicating the referent used by a particular linearly-referenced To position.
* @beta
*/
export class LinearlyReferencedToPositionRefersToReferent extends RelatedElement {
public static classFullName = "LinearReferencing:LinearlyReferencedToPositionRefersToReferent";
public constructor(referentId: Id64String, relClassName: string = LinearlyReferencedToPositionRefersToReferent.classFullName) {
super({ id: referentId, relClassName });
}
}