BodyInstance
-
class
BodyInstance()
Constructors
Methods
_hasBits()_setVisibility()addAttribute()getAttributes()getAuthoredId()getAuthoredLayerId()getBodyRef()getExchangeId()getGenericId()getGenericTypeId()getInstanceInc()getInstanceKey()getLocalTransform()getName()getParent()getRuntimeId()getUserData()getUserDataIndices()hasAuthoredId()hasLocalTransformOverride()hasModifiers()ignoreParentRotation()ignoreParentScale()isImplicitBody()isInitiallyShown()isLoaded()isOutOfHierarchy()isRequested()isVisible()markLoaded()overrideLocalTransform()preventFromResetting()removeLocalTransformOverride()setLocalTransformAsInitial()setRequested()setVisibility()createDynamic()parseBinary()parseXml()reify()
Constructors
-
BodyInstance.constructor(assemblyTree, masterModelKey, parent, info) Arguments: - assemblyTree (
IAssemblyTree()) – None - masterModelKey (
MasterModelKey()) – None - parent (BodyInstanceParent) – None
- info (
AnyBodyInfo()) – None
Return type: - assemblyTree (
Properties
-
BodyInstance.__BodyInstance Type: PhantomMember
-
BodyInstance.__BodyMixin Type: PhantomMember
-
BodyInstance.__NodeMixin Type: PhantomMember
-
BodyInstance._bits Type: NodeBits | AnyBodyBits
-
BodyInstance._instanceKey Type: InstanceKey
-
BodyInstance._modifiers Type: AnyBodyModifierBits
-
BodyInstance._nodeId Type: AuthoredNodeId | DynamicNodeId
-
BodyInstance.override Type: any
Methods
_hasBits
-
BodyInstance._hasBits(bits) Arguments: - bits (NodeBits | AnyBodyBits) – None
Return type: boolean
_setVisibility
-
BodyInstance._setVisibility(visible) Arguments: - visible (
boolean()) – None
Return type: void
- visible (
addAttribute
-
BodyInstance.addAttribute(attr) Arguments: - attr (
Attribute()) – None
Return type: void
- attr (
getAttributes
-
BodyInstance.getAttributes() Return type: Promise <[ Attribute()]>
getAuthoredId
-
BodyInstance.getAuthoredId() Return type: AuthoredNodeId
getAuthoredLayerId
-
BodyInstance.getAuthoredLayerId() Return type: AuthoredLayerId | null
getExchangeId
-
BodyInstance.getExchangeId() Return type: ExchangeId | null
getGenericTypeId
-
BodyInstance.getGenericTypeId() Return type: GenericTypeId | null
getParent
-
BodyInstance.getParent() Return type: BodyInstanceParent
getRuntimeId
-
BodyInstance.getRuntimeId() Return type: RuntimeNodeId
getUserData
-
BodyInstance.getUserData(index) Arguments: - index (UserDataIndex) – None
Return type: Uint8Array
getUserDataIndices
-
BodyInstance.getUserDataIndices() Return type: [UserDataIndex]
overrideLocalTransform
-
BodyInstance.overrideLocalTransform(matrix) Arguments: - matrix (
Matrix16()) – None
Return type: void
- matrix (
setLocalTransformAsInitial
-
BodyInstance.setLocalTransformAsInitial(matrix) Arguments: - matrix (
Matrix16()) – None
Return type: void
- matrix (
setVisibility
-
BodyInstance.setVisibility(visible) Arguments: - visible (
boolean()) – None
Return type: void
- visible (
static createDynamic
-
BodyInstance.createDynamic(assemblyTree, inclusionKey, instanceKey, authoredId, name, parent, nodeBits, bodyBits) Arguments: - assemblyTree (
IAssemblyTree()) – None - inclusionKey (
InclusionKey()) – None - instanceKey (
InstanceKey()) – None - authoredId (AuthoredNodeId | null) – None
- name (
string | null()) – None - parent (
ProductOccurrence()) – None - nodeBits (NodeBits) – None
- bodyBits (AnyBodyBits) – None
Return type: - assemblyTree (
static parseBinary
-
BodyInstance.parseBinary(assemblyTree, inclusionContext, parser, config) Arguments: - assemblyTree (
IAssemblyTree()) – None - inclusionContext (
InclusionContext()) – None - parser (
AssemblyDataParser()) – None - config (
LoadSubtreeConfig()) – None
Return type: - assemblyTree (
static parseXml
-
BodyInstance.parseXml(assemblyTree, elem, inclusionKey, config) Arguments: - assemblyTree (
IAssemblyTree()) – None - elem (
Element()) – None - inclusionKey (
InclusionKey()) – None - config (
LoadSubtreeConfig()) – None
Return type: - assemblyTree (
static reify
-
BodyInstance.reify(assemblyTree, masterModelKey, parent, info) Arguments: - assemblyTree (
IAssemblyTree()) – None - masterModelKey (
MasterModelKey()) – None - parent (BodyInstanceParent) – None
- info (BodyInstanceInfo) – None
Return type: - assemblyTree (