Public Member Functions | |
def | execute (self, fp) |
def | getCenterOfMass (self, fp) |
def | getMass (self, fp) |
def | getMoment (self, fp) |
def | onChanged (self, fp, prop) |
Member Function Documentation
◆ execute()
def WeightInstance.Weight.execute | ( | self, | |
fp | |||
) |
Detects the entity recomputations. Position arguments: fp -- Part::FeaturePython object affected.
Referenced by ArchSite.Compass.buildCoordinates(), ArchSchedule.CommandArchSchedule.IsActive(), and FeaturePython.DistanceBolt.onChanged().
◆ getCenterOfMass()
def WeightInstance.Weight.getCenterOfMass | ( | self, | |
fp | |||
) |
Compute the mass of the object, already taking into account the type of subentities. Position arguments: fp -- Part::FeaturePython object affected. Returned value: Center of Mass vector
References KDL::RigidBodyInertia.getMass(), WeightInstance.Weight.getMass(), and WeightInstance.Weight.getMoment().
◆ getMass()
def WeightInstance.Weight.getMass | ( | self, | |
fp | |||
) |
Compute the mass of the object, already taking into account the type of subentities. Position arguments: fp -- Part::FeaturePython object affected. Returned value: Object mass
References WeightInstance.Weight._getAreaMass(), WeightInstance.Weight._getLinearMass(), WeightInstance.Weight._getPuntualMass(), and WeightInstance.Weight._getVolumetricMass().
Referenced by WeightInstance.Weight.getCenterOfMass().
◆ getMoment()
def WeightInstance.Weight.getMoment | ( | self, | |
fp | |||
) |
Compute the mass of the object, already taking into account the type of subentities. Position arguments: fp -- Part::FeaturePython object affected. Returned value: List of moments toward x, y and z
References WeightInstance.Weight._getAreaMoment(), WeightInstance.Weight._getLinearMoment(), WeightInstance.Weight._getPuntualMoment(), and WeightInstance.Weight._getVolumetricMoment().
Referenced by WeightInstance.Weight.getCenterOfMass().
◆ onChanged()
def WeightInstance.Weight.onChanged | ( | self, | |
fp, | |||
prop | |||
) |
Detects the ship data changes. Position arguments: fp -- Part::FeaturePython object affected. prop -- Modified property name.
Referenced by ArchSite.Compass.buildCoordinates(), and ArchAxis.CommandArchGrid.IsActive().
The documentation for this class was generated from the following file:
- src/Mod/Ship/WeightInstance.py