CadView
-
class
CadView()
Constructors
Properties
Methods
IsCombineState()_hasBits()_setVisibility()activate()addAttribute()deactivate()getAttributes()getAuthoredId()getAuthoredLayerId()getBranchVisibility()getExchangeId()getFilters()getGenericId()getGenericTypeId()getLocalTransform()getName()getParent()getRuntimeId()getUserData()getUserDataIndices()getViewFrame()hasAuthoredId()hasLocalTransformOverride()hasPmi()isAnnotationView()isCombineStateView()isDefaultView()isInitiallyShown()isLoaded()isPmiFilteringSet()isVisible()markLoaded()overrideLocalTransform()removeLocalTransformOverride()setLocalTransformAsInitial()setViewFrame()setVisibility()createDynamic()parseBinary()parseXml()reify()
Constructors
-
CadView.constructor(assemblyTree, masterModelKey, info) Arguments: - assemblyTree (
IAssemblyTree()) – None - masterModelKey (
MasterModelKey()) – None - info (
NodeInfo()) – None
Return type: - assemblyTree (
Properties
-
CadView.__CadView Type: PhantomMember
-
CadView.__NodeMixin Type: PhantomMember
-
CadView._bits Type: NodeBits | CadViewBits
-
CadView._nodeId Type: AuthoredNodeId | DynamicNodeId
Methods
_hasBits
-
CadView._hasBits(bits) Arguments: - bits (NodeBits | CadViewBits) – None
Return type: boolean
_setVisibility
-
CadView._setVisibility(visible) Arguments: - visible (
boolean()) – None
Return type: void
- visible (
activate
-
CadView.activate(assemblyTree, engine, callbackManager, cuttingManager, view, duration, massageCamera, configurationNode) Arguments: - assemblyTree (
IAssemblyTree()) – None - engine (
IScEngine()) – None - callbackManager (
ICallbackManager()) – None - cuttingManager (
AbstractCuttingManager()) – None - view (
IView()) – None - duration (
number()) – None - massageCamera (
boolean()) – None - configurationNode (
ProductOccurrence()| null) – None
Return type: Promise <void>
- assemblyTree (
addAttribute
-
CadView.addAttribute(attr) Arguments: - attr (
Attribute()) – None
Return type: void
- attr (
deactivate
-
CadView.deactivate(cuttingManager) Arguments: - cuttingManager (
AbstractCuttingManager()) – None
Return type: Promise <void>
- cuttingManager (
getAttributes
-
CadView.getAttributes() Return type: Promise <[ Attribute()]>
getAuthoredId
-
CadView.getAuthoredId() Return type: AuthoredNodeId
getAuthoredLayerId
-
CadView.getAuthoredLayerId() Return type: AuthoredLayerId | null
getBranchVisibility
-
CadView.getBranchVisibility() Return type: BranchVisibility
getExchangeId
-
CadView.getExchangeId() Return type: ExchangeId | null
getGenericTypeId
-
CadView.getGenericTypeId() Return type: GenericTypeId | null
getParent
-
CadView.getParent() Return type: CadViewParent
getRuntimeId
-
CadView.getRuntimeId() Return type: RuntimeNodeId
getUserData
-
CadView.getUserData(index) Arguments: - index (UserDataIndex) – None
Return type: Uint8Array
getUserDataIndices
-
CadView.getUserDataIndices() Return type: [UserDataIndex]
getViewFrame
-
CadView.getViewFrame() Return type: ViewFrame()| null
overrideLocalTransform
-
CadView.overrideLocalTransform(matrix) Arguments: - matrix (
Matrix16()) – None
Return type: void
- matrix (
setLocalTransformAsInitial
-
CadView.setLocalTransformAsInitial(matrix) Arguments: - matrix (
Matrix16()) – None
Return type: void
- matrix (
setViewFrame
-
CadView.setViewFrame(viewFrame) Arguments: - viewFrame (
ViewFrame()) – None
Return type: void
- viewFrame (
setVisibility
-
CadView.setVisibility(visible) Arguments: - visible (
boolean()) – None
Return type: void
- visible (
static createDynamic
-
CadView.createDynamic(assemblyTree, parent, name, camera, pmis, productOccurrencesToShow, productOccurrencesToHide, transformMap, cuttingPlane) Arguments: - assemblyTree (
IAssemblyTree()) – None - parent (CadViewParent) – None
- name (
string()) – None - camera (
Camera()) – None - pmis ([
Pmi()] | null) – None - productOccurrencesToShow ([RuntimeNodeId]) – None
- productOccurrencesToHide ([RuntimeNodeId]) – None
- transformMap (Map <RuntimeNodeId, Matrix16>) – None
- cuttingPlane (Plane | null) – None
Return type: - assemblyTree (
static parseBinary
-
CadView.parseBinary(assemblyTree, inclusionContext, parser, config) Arguments: - assemblyTree (
IAssemblyTree()) – None - inclusionContext (
InclusionContext()) – None - parser (
AssemblyDataParser()) – None - config (
LoadSubtreeConfig()) – None
Return type: - assemblyTree (
static parseXml
-
CadView.parseXml(assemblyTree, elem, inclusionContext, config) Arguments: - assemblyTree (
IAssemblyTree()) – None - elem (
Element()) – None - inclusionContext (
InclusionContext()) – None - config (
LoadSubtreeConfig()) – None
Return type: - assemblyTree (
static reify
-
CadView.reify(assemblyTree, inclusionContext, info, parent) Arguments: - assemblyTree (
IAssemblyTree()) – None - inclusionContext (
InclusionContext()) – None - info (
CadViewInfo()<AuthoredNodeId>) – None - parent (CadViewParent) – None
Return type: - assemblyTree (