-
-
获取/设置关系名称。
Example
let source = new THING.Object3D();
let target = new THING.Object3D();
let rel = new THING.Relationship({
type: 'control',
name: 'myRelationship',
source: source,
target: target
});
// @expect(rel.name == 'myRelationship')
-
-
获取/设置关系查询方向。
Example
let source = new THING.Object3D();
let target = new THING.Object3D();
let rel = new THING.Relationship({
type: 'control',
name: 'myRelationship',
source: source,
target: target
});
// @expect(rel.queryDirection == THING.RelationshipDirection.OUT)
-
-
获取/设置关系源对象。
Example
let source = new THING.Object3D();
let target = new THING.Object3D();
let rel = new THING.Relationship({
type: 'control',
name: 'myRelationship',
source: source,
target: target
});
// @expect(rel.source == source)
-
-
获取/设置关系目标对象。
Example
let source = new THING.Object3D();
let target = new THING.Object3D();
let rel = new THING.Relationship({
type: 'control',
name: 'myRelationship',
source: source,
target: target
});
// @expect(rel.target == target)
-
-
获取/设置关系类型。
Example
let source = new THING.Object3D();
let target = new THING.Object3D();
let rel = new THING.Relationship({
type: 'control',
source: source,
target: target
});
// @expect(rel.type == 'control')