gs-cae-design 1.1.55 → 1.1.57
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.
- package/README.md +17 -0
- package/docs/classes/CommandInterfaceManager.md +125 -0
- package/docs/classes/Viewer.md +1 -3
- package/lib/.gz +0 -0
- package/lib/CAEDesign.common-report.html +2 -2
- package/lib/CAEDesign.common.js +404 -85
- package/lib/CAEDesign.umd-report.html +2 -2
- package/lib/CAEDesign.umd.js +404 -85
- package/lib/CAEDesign.umd.min-report.html +2 -2
- package/lib/CAEDesign.umd.min.js +404 -85
- package/package.json +1 -1
- package/src/caeCardEditor/caeCardObjects/ftginp/cardEXTRACTHEAD.ts +34 -0
- package/src/caeCardEditor/caeCardObjects/ftginp/cardFTCASE.ts +49 -0
- package/src/caeCardEditor/caeCardObjects/ftginp/cardFTCOMB.ts +129 -0
- package/src/caeCardEditor/caeCardObjects/ftginp/cardFTOPT.ts +217 -0
- package/src/caeCardEditor/caeCardObjects/ftginp/cardFTOPT2.ts +201 -0
- package/src/caeCardEditor/caeCardObjects/ftginp/cardFTOPT3.ts +57 -0
- package/src/caeCardEditor/caeCardObjects/ftginp/cardJSLC.ts +161 -0
- package/src/caeCardEditor/caeCardObjects/ftginp/cardSCFLM.ts +33 -0
- package/src/caeCardEditor/caeCardObjects/sacinp/cardCENTER.ts +12 -1
- package/src/caeCardEditor/caeCardObjects/sacinp/cardSURFDR.ts +138 -0
- package/src/caeCardEditor/caeCardObjects/sacinp/cardSURFID.ts +1 -1
- package/src/caeCardEditor/caeCardObjects/sacinp/cardWGTMEMCONC.ts +11 -2
- package/src/caeCardEditor/caeCardObjects/sacinp/cardWGTMEMUNIF.ts +30 -0
- package/src/caeCardEditor/caeCardObjects/seainp/cardLCOMB.ts +22 -0
- package/src/caeCardEditor/caeCardObjects/seainp/cardLDOPT.ts +0 -8
- package/src/gsDevFx/managers/datReaderManager.ts +206 -106
- package/src/gsDevFx/managers/datWriterManager.ts +101 -16
- package/src/gsDevFx/managers/interfaceManagers/commandInterfaceManager.ts +129 -4
- package/src/gsDevFx/managers/persistenceManager.ts +16 -2
- package/src/gsDevFx/objects/caeObjects/jointObject.ts +3 -3
- package/src/gsDevFx/objects/caeObjects/memberObject.ts +12 -31
- package/src/gsDevFx/objects/caeObjects/optionObjects/{modelCenter.ts → modelSurfDR.ts} +56 -56
- package/src/gsDevFx/objects/caeObjects/pretreatment/boundaryJointsObject.ts +206 -0
- package/src/gsDevFx/objects/caeObjects/pretreatment/centerRenderObject.ts +88 -0
- package/src/gsDevFx/objects/caeObjects/pretreatment/surfaceDefinitionObject.ts +128 -0
- package/src/gsDevFx/objects/caeObjects/pretreatment/surfaceWeightObject.ts +143 -0
- package/src/gsDevFx/objects/caeObjects/sectionObject.ts +4 -0
- package/src/gsDevFx/objects/caeObjects/sections/angSectionObject.ts +20 -0
- package/src/gsDevFx/objects/caeObjects/sections/blbSectionObject.ts +18 -0
- package/src/gsDevFx/objects/caeObjects/sections/boxSectionObject.ts +18 -0
- package/src/gsDevFx/objects/caeObjects/sections/chlSectionObject.ts +23 -0
- package/src/gsDevFx/objects/caeObjects/sections/conSectionObject.ts +14 -0
- package/src/gsDevFx/objects/caeObjects/sections/dtbSectionObject.ts +21 -0
- package/src/gsDevFx/objects/caeObjects/sections/priSectionObject.ts +18 -0
- package/src/gsDevFx/objects/caeObjects/sections/rtbSectionObject.ts +20 -0
- package/src/gsDevFx/objects/caeObjects/sections/teeSectionObject.ts +23 -0
- package/src/gsDevFx/objects/caeObjects/sections/tubSectionObject.ts +18 -0
- package/src/gsDevFx/objects/caeObjects/sections/wFSectionObject.ts +23 -0
- package/src/gsDevFx/objects/loadCombinationObjects/loadCombinationGroupObject.ts +100 -0
- package/src/gsDevFx/objects/loadCombinationObjects/loadCombinationObject.ts +134 -0
- package/src/gsDevFx/objects/weightObjects/instanceMemberWeightConcentratedObject.ts +82 -0
- package/src/gsDevFx/objects/weightObjects/instanceMemberWeightDistributedObject.ts +147 -0
- package/src/gsDevFx/objects/weightObjects/jointWeightObject.ts +6 -8
- package/src/gsDevFx/objects/weightObjects/memberWeightBaseObject.ts +108 -0
- package/src/gsDevFx/objects/weightObjects/memberWeightConcentratedObject.ts +138 -0
- package/src/gsDevFx/objects/weightObjects/memberWeightDistributedObject.ts +156 -0
- package/src/gsDevFx/objects/weightObjects/weightBaseObject.ts +87 -0
- package/src/gsDevFx/objects/weightObjects/weightGroupObject.ts +14 -2
- package/src/gsDevFx/objects/weightObjects/weightIdObject.ts +3 -4
- package/src/gsDevFx/viewer.ts +27 -14
- package/src/index.ts +1 -1
- package/src/viewerWrapper/commands/aftertreatment/addLoadCombination/addLoadCombinationConfig.ts +77 -0
- package/src/viewerWrapper/commands/aftertreatment/addLoadCombination/commandAddLoadCombination.ts +200 -0
- package/src/viewerWrapper/commands/aftertreatment/editLoadCombination/commandEditLoadCombination.ts +248 -0
- package/src/viewerWrapper/commands/aftertreatment/editLoadCombination/editLoadCombinationConfig.ts +104 -0
- package/src/viewerWrapper/commands/aftertreatment/setAndShowSeastateLoadOptions/commandSetAndShowSeastateLoadOptions.ts +201 -0
- package/src/viewerWrapper/commands/aftertreatment/setAndShowSeastateLoadOptions/setAndShowSeastateLoadOptionsConfig.ts +253 -0
- package/src/viewerWrapper/commands/createSection/commandCreateSection.ts +36 -15
- package/src/viewerWrapper/commands/editMemberOffsetUnified/commandEditMemberOffsetUnified.ts +3 -0
- package/src/viewerWrapper/commands/editSection/commandEditSection.ts +23 -3
- package/src/viewerWrapper/commands/moveJointByMirror/commandMoveJointByMirror.ts +1 -1
- package/src/viewerWrapper/commands/pretreatment/addJointWeight/commandAddJointWeight.ts +9 -9
- package/src/viewerWrapper/commands/pretreatment/addMemberWeight/addMemberWeightConfig.ts +111 -0
- package/src/viewerWrapper/commands/pretreatment/addMemberWeight/commandAddMemberWeight.ts +405 -0
- package/src/viewerWrapper/commands/pretreatment/centerOfRoll/centerOfRollConfig.ts +54 -0
- package/src/viewerWrapper/commands/pretreatment/centerOfRoll/commandCenterOfRoll.ts +110 -0
- package/src/viewerWrapper/commands/pretreatment/editJointWeight/commandEditJointWeight.ts +9 -0
- package/src/viewerWrapper/commands/pretreatment/editMemberWeight/commandEditMemberWeight.ts +497 -0
- package/src/viewerWrapper/commands/pretreatment/editMemberWeight/editMemberWeightConfig.ts +107 -0
- package/src/viewerWrapper/commands/pretreatment/surfaceDefinition/commandSurfaceDefinition.ts +278 -0
- package/src/viewerWrapper/commands/pretreatment/surfaceDefinition/surfaceDefinitionConfig.ts +57 -0
- package/src/viewerWrapper/commands/pretreatment/surfaceDefinitionEdit/commandSurfaceDefinitionEdit.ts +280 -0
- package/src/viewerWrapper/commands/pretreatment/surfaceDefinitionEdit/surfaceDefinitionEditConfig.ts +49 -0
- package/src/viewerWrapper/commands/pretreatment/surfaceWeightAdd/commandSurfaceWeightAdd.ts +250 -0
- package/src/viewerWrapper/commands/pretreatment/surfaceWeightAdd/surfaceWeightAddConfig.ts +53 -0
- package/src/viewerWrapper/commands/pretreatment/viewWeightProperty/commandViewWeightProperty.ts +257 -44
- package/src/viewerWrapper/commands/splitMember/commandSplitMember.ts +1 -1
- package/src/viewerWrapper/viewerWrapper.ts +2 -1
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardEXTRACTHEAD.d.ts +29 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardEXTRACTHEAD.d.ts.map +1 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardFTCASE.d.ts +45 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardFTCASE.d.ts.map +1 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardFTCOMB.d.ts +125 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardFTCOMB.d.ts.map +1 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardFTOPT.d.ts +213 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardFTOPT.d.ts.map +1 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardFTOPT2.d.ts +197 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardFTOPT2.d.ts.map +1 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardFTOPT3.d.ts +53 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardFTOPT3.d.ts.map +1 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardJSLC.d.ts +157 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardJSLC.d.ts.map +1 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardSCFLM.d.ts +29 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/ftginp/cardSCFLM.d.ts.map +1 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/sacinp/cardCENTER.d.ts +2 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/sacinp/cardCENTER.d.ts.map +1 -1
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/sacinp/cardSURFDR.d.ts +133 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/sacinp/cardSURFDR.d.ts.map +1 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/sacinp/cardWGTMEMCONC.d.ts +2 -1
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/sacinp/cardWGTMEMCONC.d.ts.map +1 -1
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/sacinp/cardWGTMEMUNIF.d.ts +2 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/sacinp/cardWGTMEMUNIF.d.ts.map +1 -1
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/seainp/cardLCOMB.d.ts +2 -0
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/seainp/cardLCOMB.d.ts.map +1 -1
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/seainp/cardLDOPT.d.ts +0 -8
- package/types/caeDesign/src/caeCardEditor/caeCardObjects/seainp/cardLDOPT.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/managers/datReaderManager.d.ts +4 -1
- package/types/caeDesign/src/gsDevFx/managers/datReaderManager.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/managers/datWriterManager.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/managers/interfaceManagers/commandInterfaceManager.d.ts +18 -0
- package/types/caeDesign/src/gsDevFx/managers/interfaceManagers/commandInterfaceManager.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/managers/persistenceManager.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/memberObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/optionObjects/modelSurfDR.d.ts +15 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/optionObjects/modelSurfDR.d.ts.map +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/pretreatment/boundaryJointsObject.d.ts +30 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/pretreatment/boundaryJointsObject.d.ts.map +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/pretreatment/centerRenderObject.d.ts +20 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/pretreatment/centerRenderObject.d.ts.map +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/pretreatment/surfaceDefinitionObject.d.ts +25 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/pretreatment/surfaceDefinitionObject.d.ts.map +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/pretreatment/surfaceWeightObject.d.ts +28 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/pretreatment/surfaceWeightObject.d.ts.map +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sectionObject.d.ts +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sectionObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/angSectionObject.d.ts +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/angSectionObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/blbSectionObject.d.ts +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/blbSectionObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/boxSectionObject.d.ts +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/boxSectionObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/chlSectionObject.d.ts +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/chlSectionObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/conSectionObject.d.ts +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/conSectionObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/dtbSectionObject.d.ts +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/dtbSectionObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/priSectionObject.d.ts +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/priSectionObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/rtbSectionObject.d.ts +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/rtbSectionObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/teeSectionObject.d.ts +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/teeSectionObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/tubSectionObject.d.ts +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/tubSectionObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/wFSectionObject.d.ts +1 -0
- package/types/caeDesign/src/gsDevFx/objects/caeObjects/sections/wFSectionObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/loadCombinationObjects/loadCombinationGroupObject.d.ts +13 -0
- package/types/caeDesign/src/gsDevFx/objects/loadCombinationObjects/loadCombinationGroupObject.d.ts.map +1 -0
- package/types/caeDesign/src/gsDevFx/objects/loadCombinationObjects/loadCombinationObject.d.ts +23 -0
- package/types/caeDesign/src/gsDevFx/objects/loadCombinationObjects/loadCombinationObject.d.ts.map +1 -0
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/instanceMemberWeightConcentratedObject.d.ts +10 -0
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/instanceMemberWeightConcentratedObject.d.ts.map +1 -0
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/instanceMemberWeightDistributedObject.d.ts +10 -0
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/instanceMemberWeightDistributedObject.d.ts.map +1 -0
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/jointWeightObject.d.ts +2 -4
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/jointWeightObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/memberWeightBaseObject.d.ts +20 -0
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/memberWeightBaseObject.d.ts.map +1 -0
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/memberWeightConcentratedObject.d.ts +20 -0
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/memberWeightConcentratedObject.d.ts.map +1 -0
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/memberWeightDistributedObject.d.ts +22 -0
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/memberWeightDistributedObject.d.ts.map +1 -0
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/weightBaseObject.d.ts +21 -0
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/weightBaseObject.d.ts.map +1 -0
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/weightGroupObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/objects/weightObjects/weightIdObject.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/operators/cAEObjectPreSelector.d.ts.map +1 -1
- package/types/caeDesign/src/gsDevFx/viewer.d.ts +1 -0
- package/types/caeDesign/src/gsDevFx/viewer.d.ts.map +1 -1
- package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addLoadCombination/addLoadCombinationConfig.d.ts +7 -0
- package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addLoadCombination/addLoadCombinationConfig.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addLoadCombination/commandAddLoadCombination.d.ts +19 -0
- package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/addLoadCombination/commandAddLoadCombination.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editLoadCombination/commandEditLoadCombination.d.ts +23 -0
- package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editLoadCombination/commandEditLoadCombination.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editLoadCombination/editLoadCombinationConfig.d.ts +9 -0
- package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/editLoadCombination/editLoadCombinationConfig.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/setAndShowSeastateLoadOptions/commandSetAndShowSeastateLoadOptions.d.ts +22 -0
- package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/setAndShowSeastateLoadOptions/commandSetAndShowSeastateLoadOptions.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/setAndShowSeastateLoadOptions/setAndShowSeastateLoadOptionsConfig.d.ts +6 -0
- package/types/caeDesign/src/viewerWrapper/commands/aftertreatment/setAndShowSeastateLoadOptions/setAndShowSeastateLoadOptionsConfig.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/createSection/commandCreateSection.d.ts.map +1 -1
- package/types/caeDesign/src/viewerWrapper/commands/editMemberOffsetUnified/commandEditMemberOffsetUnified.d.ts.map +1 -1
- package/types/caeDesign/src/viewerWrapper/commands/editSection/commandEditSection.d.ts.map +1 -1
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/addMemberWeight/addMemberWeightConfig.d.ts +6 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/addMemberWeight/addMemberWeightConfig.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/addMemberWeight/commandAddMemberWeight.d.ts +31 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/addMemberWeight/commandAddMemberWeight.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/centerOfRoll/centerOfRollConfig.d.ts +8 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/centerOfRoll/centerOfRollConfig.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/centerOfRoll/commandCenterOfRoll.d.ts +11 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/centerOfRoll/commandCenterOfRoll.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/editJointWeight/commandEditJointWeight.d.ts.map +1 -1
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/editMemberWeight/commandEditMemberWeight.d.ts +37 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/editMemberWeight/commandEditMemberWeight.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/editMemberWeight/editMemberWeightConfig.d.ts +5 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/editMemberWeight/editMemberWeightConfig.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceDefinition/commandSurfaceDefinition.d.ts +33 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceDefinition/commandSurfaceDefinition.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceDefinition/surfaceDefinitionConfig.d.ts +5 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceDefinition/surfaceDefinitionConfig.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceDefinitionEdit/commandSurfaceDefinitionEdit.d.ts +32 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceDefinitionEdit/commandSurfaceDefinitionEdit.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceDefinitionEdit/surfaceDefinitionEditConfig.d.ts +12 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceDefinitionEdit/surfaceDefinitionEditConfig.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceWeightAdd/commandSurfaceWeightAdd.d.ts +20 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceWeightAdd/commandSurfaceWeightAdd.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceWeightAdd/surfaceWeightAddConfig.d.ts +10 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/surfaceWeightAdd/surfaceWeightAddConfig.d.ts.map +1 -0
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/viewWeightProperty/commandViewWeightProperty.d.ts +4 -1
- package/types/caeDesign/src/viewerWrapper/commands/pretreatment/viewWeightProperty/commandViewWeightProperty.d.ts.map +1 -1
- package/types/caeDesign/src/viewerWrapper/viewerWrapper.d.ts.map +1 -1
- package/types/ceecDesign/src/gsDevFx/objects/designBaseObject.d.ts +0 -53
- package/types/ceecDesign/src/gsDevFx/objects/designBaseObject.d.ts.map +0 -1
- package/types/ceecDesign/src/gsDevFx/viewer.d.ts.map +0 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { BusinessState, DesignBaseObject } from "gs-ceec-design";
|
|
2
|
+
import { Longan } from "gs-bim-air";
|
|
3
|
+
import { InstanceRenderObject } from "../instancesObjects/instanceRenderObject";
|
|
4
|
+
import { CardLCOMB } from "../../../caeCardEditor/caeCardObjects/seainp/cardLCOMB";
|
|
5
|
+
import { LoadCombinationObject } from "./loadCombinationObject";
|
|
6
|
+
|
|
7
|
+
export class LoadCombinationGroupObject extends DesignBaseObject {
|
|
8
|
+
public typeName = "LoadCombinationGroupObject";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 组合名.
|
|
12
|
+
*/
|
|
13
|
+
combinationName: string = ""
|
|
14
|
+
|
|
15
|
+
public constructor(combinationName: string) {
|
|
16
|
+
super();
|
|
17
|
+
this.name = combinationName;
|
|
18
|
+
this.combinationName = combinationName;
|
|
19
|
+
this.instanceTypes.add("main", InstanceRenderObject.prototype);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
serialize() {
|
|
23
|
+
let obj = super.serialize();
|
|
24
|
+
|
|
25
|
+
if (this.combinationName) {
|
|
26
|
+
obj.combinationName = this.combinationName;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return obj;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
deserialize(obj: any, pm?: Longan.PersistenceManager): void {
|
|
33
|
+
super.deserialize(obj, pm);
|
|
34
|
+
|
|
35
|
+
if (obj.combinationName) {
|
|
36
|
+
this.combinationName = obj.combinationName;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static checkNamelegal(name: string): boolean {
|
|
41
|
+
let reg = /^[A-Z0-9]*$/;
|
|
42
|
+
if (!reg.test(name) || name.trimEnd().length > 4) {
|
|
43
|
+
console.log("荷载组合名称不符合规范");
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
serializeToCardSeaInp() {
|
|
50
|
+
let card = new CardLCOMB();
|
|
51
|
+
card.lineLabel.value = "LCOMB";
|
|
52
|
+
card.combinationName.value = this.name;
|
|
53
|
+
|
|
54
|
+
let text = "";
|
|
55
|
+
|
|
56
|
+
for (let i = 0; i < this.childObjects.length; i++) {
|
|
57
|
+
let child = this.childObjects[i];
|
|
58
|
+
if (child instanceof LoadCombinationObject) {
|
|
59
|
+
if (
|
|
60
|
+
child.businessState === BusinessState.Deleting ||
|
|
61
|
+
child.businessState === BusinessState.Dead
|
|
62
|
+
) {
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
let result = child.serializeToCard();
|
|
66
|
+
if(result !== null) {
|
|
67
|
+
text += result + "\n";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return text;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
serializeToCardSacInp() {
|
|
76
|
+
let card = new CardLCOMB();
|
|
77
|
+
card.lineLabel.value = "LCOMB";
|
|
78
|
+
card.combinationName.value = this.name;
|
|
79
|
+
|
|
80
|
+
let text = "";
|
|
81
|
+
|
|
82
|
+
for (let i = 0; i < this.childObjects.length; i++) {
|
|
83
|
+
let child = this.childObjects[i];
|
|
84
|
+
if (child instanceof LoadCombinationObject) {
|
|
85
|
+
if (
|
|
86
|
+
child.businessState === BusinessState.Deleting ||
|
|
87
|
+
child.businessState === BusinessState.Dead
|
|
88
|
+
) {
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
let result = child.serializeToCard();
|
|
92
|
+
if(result !== null) {
|
|
93
|
+
text += result + "\n";
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return text;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { DesignBaseObject } from "gs-ceec-design";
|
|
2
|
+
import { Longan } from "gs-bim-air";
|
|
3
|
+
import { InstanceRenderObject } from "../instancesObjects/instanceRenderObject";
|
|
4
|
+
import { CardLCOMB } from "../../../caeCardEditor/caeCardObjects/seainp/cardLCOMB";
|
|
5
|
+
import { CaeNumber } from "../../../utility/utility";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 荷载组合
|
|
9
|
+
*/
|
|
10
|
+
export class LoadCombinationObject extends DesignBaseObject {
|
|
11
|
+
typeName = "LoadCombinationObject";
|
|
12
|
+
|
|
13
|
+
// 荷载组合名
|
|
14
|
+
combinationName: string = "";
|
|
15
|
+
// 荷载工况
|
|
16
|
+
loadcaseName_firstLoad: string = "";
|
|
17
|
+
loadFactor_firstLoad: number = null;
|
|
18
|
+
loadcaseName_secondLoad: string = "";
|
|
19
|
+
loadFactor_secondLoad: number = null;
|
|
20
|
+
loadcaseName_thirdLoad: string = "";
|
|
21
|
+
loadFactor_thirdLoad: number = null;
|
|
22
|
+
loadcaseName_fourthLoad: string = "";
|
|
23
|
+
loadFactor_fourthLoad: number = null;
|
|
24
|
+
loadcaseName_fifthLoad: string = "";
|
|
25
|
+
loadFactor_fifthLoad: number = null;
|
|
26
|
+
loadcaseName_sixthLoad: string = "";
|
|
27
|
+
loadFactor_sixthLoad: number = null;
|
|
28
|
+
|
|
29
|
+
public constructor(combinationName: string) {
|
|
30
|
+
super();
|
|
31
|
+
this.combinationName = combinationName;
|
|
32
|
+
|
|
33
|
+
this.instanceTypes.add("main", InstanceRenderObject.prototype);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
serialize(): void {
|
|
37
|
+
let obj = super.serialize();
|
|
38
|
+
|
|
39
|
+
if (this.combinationName) {
|
|
40
|
+
obj.combinationName = this.combinationName;
|
|
41
|
+
}
|
|
42
|
+
if (this.loadcaseName_firstLoad) {
|
|
43
|
+
obj.loadcaseName_firstLoad = this.loadcaseName_firstLoad;
|
|
44
|
+
}
|
|
45
|
+
if (this.loadcaseName_secondLoad) {
|
|
46
|
+
obj.loadcaseName_secondLoad = this.loadcaseName_secondLoad;
|
|
47
|
+
}
|
|
48
|
+
if (this.loadcaseName_thirdLoad) {
|
|
49
|
+
obj.loadcaseName_thirdLoad = this.loadcaseName_thirdLoad;
|
|
50
|
+
}
|
|
51
|
+
if (this.loadcaseName_fourthLoad) {
|
|
52
|
+
obj.loadcaseName_fourthLoad = this.loadcaseName_fourthLoad;
|
|
53
|
+
}
|
|
54
|
+
if (this.loadcaseName_fifthLoad) {
|
|
55
|
+
obj.loadcaseName_fifthLoad = this.loadcaseName_fifthLoad;
|
|
56
|
+
}
|
|
57
|
+
if (this.loadcaseName_sixthLoad) {
|
|
58
|
+
obj.loadcaseName_sixthLoad = this.loadcaseName_sixthLoad;
|
|
59
|
+
}
|
|
60
|
+
if (this.notNullAndNotUndefined(this.loadFactor_firstLoad)) {
|
|
61
|
+
obj.loadFactor_firstLoad = this.loadFactor_firstLoad;
|
|
62
|
+
}
|
|
63
|
+
if (this.notNullAndNotUndefined(this.loadFactor_secondLoad)) {
|
|
64
|
+
obj.loadFactor_secondLoad = this.loadFactor_secondLoad;
|
|
65
|
+
}
|
|
66
|
+
if (this.notNullAndNotUndefined(this.loadFactor_thirdLoad)) {
|
|
67
|
+
obj.loadFactor_thirdLoad = this.loadFactor_thirdLoad;
|
|
68
|
+
}
|
|
69
|
+
if (this.notNullAndNotUndefined(this.loadFactor_fourthLoad)) {
|
|
70
|
+
obj.loadFactor_fourthLoad = this.loadFactor_fourthLoad;
|
|
71
|
+
}
|
|
72
|
+
if (this.notNullAndNotUndefined(this.loadFactor_fifthLoad)) {
|
|
73
|
+
obj.loadFactor_fifthLoad = this.loadFactor_fifthLoad;
|
|
74
|
+
}
|
|
75
|
+
if (this.notNullAndNotUndefined(this.loadFactor_sixthLoad)) {
|
|
76
|
+
obj.loadFactor_sixthLoad = this.loadFactor_sixthLoad;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return obj;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
deserialize(obj: any, pm?: Longan.PersistenceManager): void {
|
|
83
|
+
super.deserialize(obj);
|
|
84
|
+
|
|
85
|
+
if (obj.combinationName) {
|
|
86
|
+
this.combinationName = obj.combinationName;
|
|
87
|
+
}
|
|
88
|
+
if (obj.loadcaseName_firstLoad) {
|
|
89
|
+
this.loadcaseName_firstLoad = obj.loadcaseName_firstLoad;
|
|
90
|
+
}
|
|
91
|
+
if (obj.loadcaseName_secondLoad) {
|
|
92
|
+
this.loadcaseName_secondLoad = obj.loadcaseName_secondLoad;
|
|
93
|
+
}
|
|
94
|
+
if (obj.loadcaseName_thirdLoad) {
|
|
95
|
+
this.loadcaseName_thirdLoad = obj.loadcaseName_thirdLoad;
|
|
96
|
+
}
|
|
97
|
+
if (obj.loadcaseName_fourthLoad) {
|
|
98
|
+
this.loadcaseName_fourthLoad = obj.loadcaseName_fourthLoad;
|
|
99
|
+
}
|
|
100
|
+
if (obj.loadcaseName_fifthLoad) {
|
|
101
|
+
this.loadcaseName_fifthLoad = obj.loadcaseName_fifthLoad;
|
|
102
|
+
}
|
|
103
|
+
if (obj.loadcaseName_sixthLoad) {
|
|
104
|
+
this.loadcaseName_sixthLoad = obj.loadcaseName_sixthLoad;
|
|
105
|
+
}
|
|
106
|
+
this.loadFactor_firstLoad = CaeNumber(obj.loadFactor_firstLoad);
|
|
107
|
+
this.loadFactor_secondLoad = CaeNumber(obj.loadFactor_secondLoad);
|
|
108
|
+
this.loadFactor_thirdLoad = CaeNumber(obj.loadFactor_thirdLoad);
|
|
109
|
+
this.loadFactor_fourthLoad = CaeNumber(obj.loadFactor_fourthLoad);
|
|
110
|
+
this.loadFactor_fifthLoad = CaeNumber(obj.loadFactor_fifthLoad);
|
|
111
|
+
this.loadFactor_sixthLoad = CaeNumber(obj.loadFactor_sixthLoad);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
serializeToCard() {
|
|
115
|
+
let cardLCOMB = new CardLCOMB();
|
|
116
|
+
|
|
117
|
+
cardLCOMB.lineLabel.value = "LCOMB";
|
|
118
|
+
cardLCOMB.combinationName.value = this.combinationName;
|
|
119
|
+
cardLCOMB.loadcaseName_firstLoad.value = this.loadcaseName_firstLoad;
|
|
120
|
+
cardLCOMB.loadcaseName_secondLoad.value = this.loadcaseName_secondLoad;
|
|
121
|
+
cardLCOMB.loadcaseName_thirdLoad.value = this.loadcaseName_thirdLoad;
|
|
122
|
+
cardLCOMB.loadcaseName_fourthLoad.value = this.loadcaseName_fourthLoad;
|
|
123
|
+
cardLCOMB.loadcaseName_fifthLoad.value = this.loadcaseName_fifthLoad;
|
|
124
|
+
cardLCOMB.loadcaseName_sixthLoad.value = this.loadcaseName_sixthLoad;
|
|
125
|
+
cardLCOMB.loadFactor_firstLoad.value = this.loadFactor_firstLoad ? this.loadFactor_firstLoad.toString() : "";
|
|
126
|
+
cardLCOMB.loadFactor_secondLoad.value = this.loadFactor_secondLoad ? this.loadFactor_secondLoad.toString() : "";
|
|
127
|
+
cardLCOMB.loadFactor_thirdLoad.value = this.loadFactor_thirdLoad ? this.loadFactor_thirdLoad.toString() : "";
|
|
128
|
+
cardLCOMB.loadFactor_fourthLoad.value = this.loadFactor_fourthLoad ? this.loadFactor_fourthLoad.toString() : "";
|
|
129
|
+
cardLCOMB.loadFactor_fifthLoad.value = this.loadFactor_fifthLoad ? this.loadFactor_fifthLoad.toString() : "";
|
|
130
|
+
cardLCOMB.loadFactor_sixthLoad.value = this.loadFactor_sixthLoad ? this.loadFactor_sixthLoad.toString() : "";
|
|
131
|
+
|
|
132
|
+
return cardLCOMB.getLine();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { SvgDraw } from "gs-ceec-design";
|
|
2
|
+
import { Longan } from "gs-bim-air";
|
|
3
|
+
import { Viewer } from "../../viewer";
|
|
4
|
+
import { InstanceWeightBaseObject } from "./instanceWeightBaseObject";
|
|
5
|
+
import { MemberWeightConcentratedObject } from "./memberWeightConcentratedObject";
|
|
6
|
+
|
|
7
|
+
export class InstanceMemberWeightConcentratedObject extends InstanceWeightBaseObject {
|
|
8
|
+
protected _viewer: Viewer;
|
|
9
|
+
|
|
10
|
+
public get viewer() {
|
|
11
|
+
return this._viewer;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
constructor(viewer: Viewer, renderObject: Longan.RenderObject) {
|
|
15
|
+
super(viewer, renderObject);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
drawSvg() {
|
|
19
|
+
if (this._group) {
|
|
20
|
+
this._group.remove();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
let draw = SvgDraw.getInstance(this.viewer.container.id).draw;
|
|
24
|
+
this._group = draw.group();
|
|
25
|
+
|
|
26
|
+
let memberWeightConcentratedObject = this
|
|
27
|
+
.renderObject as MemberWeightConcentratedObject;
|
|
28
|
+
|
|
29
|
+
let member = memberWeightConcentratedObject.member;
|
|
30
|
+
if (member) {
|
|
31
|
+
let unitLengtha = this.viewer.unitLength / 10;
|
|
32
|
+
|
|
33
|
+
let startPosition = new Float32Array(member.getStartPosition());
|
|
34
|
+
let vector = member.getVector();
|
|
35
|
+
let targetPosition = Longan.Point.add(
|
|
36
|
+
startPosition,
|
|
37
|
+
Longan.Vector.multiply(
|
|
38
|
+
vector,
|
|
39
|
+
memberWeightConcentratedObject.distance
|
|
40
|
+
)
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
let dir = [0, 0, 1];
|
|
44
|
+
|
|
45
|
+
let arrowStartPosition = Longan.Point.add(
|
|
46
|
+
targetPosition,
|
|
47
|
+
Longan.Vector.multiply(new Float32Array(dir), 10)
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
let arrowEndPosition = Longan.Point.add(
|
|
51
|
+
targetPosition,
|
|
52
|
+
Longan.Vector.multiply(new Float32Array(dir), unitLengtha)
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
// console.log("arrowStartPosition", arrowStartPosition);
|
|
56
|
+
|
|
57
|
+
let pixelPositions = this.viewer.worldPointToPixelPoint([
|
|
58
|
+
[arrowEndPosition[0], arrowEndPosition[1], arrowEndPosition[2]],
|
|
59
|
+
[arrowStartPosition[0], arrowStartPosition[1], arrowStartPosition[2]],
|
|
60
|
+
]);
|
|
61
|
+
|
|
62
|
+
let scale =
|
|
63
|
+
50 /
|
|
64
|
+
Longan.GeometryOperators.distance(
|
|
65
|
+
new Float32Array([pixelPositions[1][0], pixelPositions[1][1], 0]),
|
|
66
|
+
new Float32Array([pixelPositions[0][0], pixelPositions[0][1], 0])
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
this.drawArrow(
|
|
70
|
+
[
|
|
71
|
+
(pixelPositions[1][0] - pixelPositions[0][0]) * scale +
|
|
72
|
+
pixelPositions[0][0],
|
|
73
|
+
(pixelPositions[1][1] - pixelPositions[0][1]) * scale +
|
|
74
|
+
pixelPositions[0][1],
|
|
75
|
+
pixelPositions[0][0],
|
|
76
|
+
pixelPositions[0][1],
|
|
77
|
+
],
|
|
78
|
+
this._weightLabelColor
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { Longan } from "gs-bim-air";
|
|
2
|
+
import { Viewer } from "../../viewer";
|
|
3
|
+
import { SvgDraw } from "gs-ceec-design";
|
|
4
|
+
import { InstanceWeightBaseObject } from "./instanceWeightBaseObject";
|
|
5
|
+
import { MemberWeightDistributedObject } from "./memberWeightDistributedObject";
|
|
6
|
+
|
|
7
|
+
export class InstanceMemberWeightDistributedObject extends InstanceWeightBaseObject {
|
|
8
|
+
protected _viewer: Viewer;
|
|
9
|
+
|
|
10
|
+
public get viewer() {
|
|
11
|
+
return this._viewer;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
constructor(viewer: Viewer, renderObject: Longan.RenderObject) {
|
|
15
|
+
super(viewer, renderObject);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
drawSvg() {
|
|
19
|
+
if (this._group) {
|
|
20
|
+
this._group.remove();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
let draw = SvgDraw.getInstance(this.viewer.container.id).draw;
|
|
24
|
+
this._group = draw.group();
|
|
25
|
+
|
|
26
|
+
let memberWeightDistributedObject = this
|
|
27
|
+
.renderObject as MemberWeightDistributedObject;
|
|
28
|
+
let member = memberWeightDistributedObject.member;
|
|
29
|
+
if (member) {
|
|
30
|
+
let unitLengtha = this.viewer.unitLength / 10;
|
|
31
|
+
|
|
32
|
+
let startPosition = new Float32Array(member.getStartPosition());
|
|
33
|
+
let vector = member.getVector();
|
|
34
|
+
let weightStartPosition = Longan.Point.add(
|
|
35
|
+
startPosition,
|
|
36
|
+
Longan.Vector.multiply(
|
|
37
|
+
vector,
|
|
38
|
+
memberWeightDistributedObject.distance
|
|
39
|
+
)
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
let weightFinalPosition = Longan.Point.add(
|
|
43
|
+
weightStartPosition,
|
|
44
|
+
Longan.Vector.multiply(vector, memberWeightDistributedObject.weightActiveLength)
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
// 在weightStartPosition和weightFinalPosition处画对应的箭头.
|
|
48
|
+
let startForceValue = memberWeightDistributedObject.weightValue;
|
|
49
|
+
let finalForceValue = memberWeightDistributedObject.finalDistanceWeightValue;
|
|
50
|
+
let dir = [0, 0, -1];
|
|
51
|
+
|
|
52
|
+
let arrowStartPosition1 = Longan.Point.add(
|
|
53
|
+
weightStartPosition,
|
|
54
|
+
Longan.Vector.multiply(new Float32Array(dir), -startForceValue)
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
let te1 = startForceValue < 0 ? 1 : -1;
|
|
58
|
+
let arrowEndPosition1 = Longan.Point.add(
|
|
59
|
+
weightStartPosition,
|
|
60
|
+
Longan.Vector.multiply(new Float32Array(dir), te1 * unitLengtha)
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
let arrowStartPosition2 = Longan.Point.add(
|
|
64
|
+
weightFinalPosition,
|
|
65
|
+
Longan.Vector.multiply(new Float32Array(dir), -finalForceValue)
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
let te2 = finalForceValue < 0 ? 1 : -1;
|
|
69
|
+
let arrowEndPosition2 = Longan.Point.add(
|
|
70
|
+
weightFinalPosition,
|
|
71
|
+
Longan.Vector.multiply(new Float32Array(dir), te2 * unitLengtha)
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
let pixelPositions = this.viewer.worldPointToPixelPoint([
|
|
75
|
+
[arrowEndPosition1[0], arrowEndPosition1[1], arrowEndPosition1[2]],
|
|
76
|
+
[arrowEndPosition2[0], arrowEndPosition2[1], arrowEndPosition2[2]],
|
|
77
|
+
[
|
|
78
|
+
arrowStartPosition1[0],
|
|
79
|
+
arrowStartPosition1[1],
|
|
80
|
+
arrowStartPosition1[2],
|
|
81
|
+
],
|
|
82
|
+
[
|
|
83
|
+
arrowStartPosition2[0],
|
|
84
|
+
arrowStartPosition2[1],
|
|
85
|
+
arrowStartPosition2[2],
|
|
86
|
+
],
|
|
87
|
+
]);
|
|
88
|
+
|
|
89
|
+
let x = Longan.GeometryOperators.distance(
|
|
90
|
+
new Float32Array([pixelPositions[2][0], pixelPositions[2][1], 0]),
|
|
91
|
+
new Float32Array([pixelPositions[0][0], pixelPositions[0][1], 0])
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
let y = Longan.GeometryOperators.distance(
|
|
95
|
+
new Float32Array([pixelPositions[3][0], pixelPositions[3][1], 0]),
|
|
96
|
+
new Float32Array([pixelPositions[1][0], pixelPositions[1][1], 0])
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
let max = Math.max(x, y);
|
|
100
|
+
|
|
101
|
+
// let scale = 20 / max;
|
|
102
|
+
let scale = 0.04;
|
|
103
|
+
|
|
104
|
+
let line = draw
|
|
105
|
+
.line([
|
|
106
|
+
(pixelPositions[2][0] - pixelPositions[0][0]) * scale +
|
|
107
|
+
pixelPositions[0][0],
|
|
108
|
+
(pixelPositions[2][1] - pixelPositions[0][1]) * scale +
|
|
109
|
+
pixelPositions[0][1],
|
|
110
|
+
(pixelPositions[3][0] - pixelPositions[1][0]) * scale +
|
|
111
|
+
pixelPositions[1][0],
|
|
112
|
+
(pixelPositions[3][1] - pixelPositions[1][1]) * scale +
|
|
113
|
+
pixelPositions[1][1],
|
|
114
|
+
])
|
|
115
|
+
.stroke({
|
|
116
|
+
color: this._weightLabelColor,
|
|
117
|
+
width: 3,
|
|
118
|
+
linecap: "arrow",
|
|
119
|
+
});
|
|
120
|
+
this._group.add(line);
|
|
121
|
+
|
|
122
|
+
this.drawArrow(
|
|
123
|
+
[
|
|
124
|
+
(pixelPositions[2][0] - pixelPositions[0][0]) * scale +
|
|
125
|
+
pixelPositions[0][0],
|
|
126
|
+
(pixelPositions[2][1] - pixelPositions[0][1]) * scale +
|
|
127
|
+
pixelPositions[0][1],
|
|
128
|
+
pixelPositions[0][0],
|
|
129
|
+
pixelPositions[0][1],
|
|
130
|
+
],
|
|
131
|
+
this._weightLabelColor
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
this.drawArrow(
|
|
135
|
+
[
|
|
136
|
+
(pixelPositions[3][0] - pixelPositions[1][0]) * scale +
|
|
137
|
+
pixelPositions[1][0],
|
|
138
|
+
(pixelPositions[3][1] - pixelPositions[1][1]) * scale +
|
|
139
|
+
pixelPositions[1][1],
|
|
140
|
+
pixelPositions[1][0],
|
|
141
|
+
pixelPositions[1][1],
|
|
142
|
+
],
|
|
143
|
+
this._weightLabelColor
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WeightBaseObject } from "./weightBaseObject";
|
|
2
2
|
import { Longan } from "gs-bim-air";
|
|
3
3
|
import { InstanceJointWeightObject } from "./instanceJointWeightObject";
|
|
4
4
|
import { CardWGTJT } from "../../../caeCardEditor/caeCardObjects/sacinp/cardWGTJT";
|
|
@@ -7,12 +7,11 @@ import { CaeNumber } from "../../../utility/utility";
|
|
|
7
7
|
/**
|
|
8
8
|
* 空间点上的点质量
|
|
9
9
|
*/
|
|
10
|
-
export class JointWeightObject extends
|
|
10
|
+
export class JointWeightObject extends WeightBaseObject {
|
|
11
11
|
typeName = "JointWeightObject";
|
|
12
12
|
|
|
13
13
|
jointName: string;
|
|
14
|
-
|
|
15
|
-
weightID: string = "";
|
|
14
|
+
|
|
16
15
|
weight: number = 0;
|
|
17
16
|
density: number = 0;
|
|
18
17
|
comments: string = "";
|
|
@@ -27,12 +26,11 @@ export class JointWeightObject extends DesignBaseObject {
|
|
|
27
26
|
/**
|
|
28
27
|
* 考虑附加重量的在水中的浮力和波浪对其施加的负载
|
|
29
28
|
*/
|
|
30
|
-
isInclude =
|
|
29
|
+
isInclude = false;
|
|
31
30
|
|
|
32
31
|
public constructor(weightGroupID: string, weightID: string) {
|
|
33
|
-
super();
|
|
34
|
-
this.
|
|
35
|
-
this.weightID = weightID;
|
|
32
|
+
super(weightGroupID, weightID);
|
|
33
|
+
this.weightType = "JOIN";
|
|
36
34
|
|
|
37
35
|
this.instanceTypes.add("main", InstanceJointWeightObject.prototype);
|
|
38
36
|
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { PersistenceManager } from "../../managers/persistenceManager";
|
|
2
|
+
import { MemberObject } from "../caeObjects/memberObject";
|
|
3
|
+
import { InstanceRenderObject } from "../instancesObjects/instanceRenderObject";
|
|
4
|
+
import { IReferencedObject } from "../interfaces";
|
|
5
|
+
import { WeightBaseObject } from "./weightBaseObject";
|
|
6
|
+
|
|
7
|
+
export class MemberWeightBaseObject
|
|
8
|
+
extends WeightBaseObject
|
|
9
|
+
implements IReferencedObject
|
|
10
|
+
{
|
|
11
|
+
public typeName = "MemberWeightBaseObject";
|
|
12
|
+
|
|
13
|
+
private _member: MemberObject;
|
|
14
|
+
private _cooSystemOption: string = "GLOB";
|
|
15
|
+
|
|
16
|
+
public get member() {
|
|
17
|
+
return this._member;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public set member(value: MemberObject) {
|
|
21
|
+
this._member = value;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
get cooSystemOption() {
|
|
25
|
+
return this._cooSystemOption;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
set cooSystemOption(value) {
|
|
29
|
+
this._cooSystemOption = value;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public constructor(
|
|
33
|
+
weightGroupID: string,
|
|
34
|
+
weightID: string,
|
|
35
|
+
member: MemberObject
|
|
36
|
+
) {
|
|
37
|
+
super(weightGroupID, weightID);
|
|
38
|
+
this._member = member;
|
|
39
|
+
|
|
40
|
+
this.instanceTypes.add("main", InstanceRenderObject.prototype);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
serialize() {
|
|
44
|
+
let obj = super.serialize();
|
|
45
|
+
|
|
46
|
+
if (this.member) {
|
|
47
|
+
obj.member = this.member.id;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// if (this._firstJointName) {
|
|
51
|
+
// obj.firstJointName = this._firstJointName;
|
|
52
|
+
// }
|
|
53
|
+
|
|
54
|
+
// if (this._secondJointName) {
|
|
55
|
+
// obj.secondJointName = this._secondJointName;
|
|
56
|
+
// }
|
|
57
|
+
|
|
58
|
+
if (this._cooSystemOption) {
|
|
59
|
+
obj.cooSystemOption = this._cooSystemOption;
|
|
60
|
+
}
|
|
61
|
+
return obj;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
deserialize(obj: any, pm?: PersistenceManager): void {
|
|
65
|
+
super.deserialize(obj, pm);
|
|
66
|
+
|
|
67
|
+
if (obj.member) {
|
|
68
|
+
let member = pm.referenceList.get(obj.member);
|
|
69
|
+
if (member) {
|
|
70
|
+
this.member = member as MemberObject;
|
|
71
|
+
} else {
|
|
72
|
+
this.member = obj.start;
|
|
73
|
+
pm.needReferenceList.add(this);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// if (obj.firstJointName) {
|
|
78
|
+
// this._firstJointName = obj.firstJointName;
|
|
79
|
+
// }
|
|
80
|
+
|
|
81
|
+
// if (obj.secondJointName) {
|
|
82
|
+
// this._secondJointName = obj.secondJointName;
|
|
83
|
+
// }
|
|
84
|
+
|
|
85
|
+
if (obj.cooSystemOption) {
|
|
86
|
+
this._cooSystemOption = obj.cooSystemOption;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
public setReference(pm: PersistenceManager) {
|
|
91
|
+
if (typeof this.member === "string") {
|
|
92
|
+
let member = pm.referenceList.get(this.member as string);
|
|
93
|
+
if (member) {
|
|
94
|
+
this.member = member as MemberObject;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
this.setNeedUpdate();
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
active() {
|
|
102
|
+
//
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
inactive() {
|
|
106
|
+
//
|
|
107
|
+
}
|
|
108
|
+
}
|