visualdynamics.gui.rigid_panel¶
rigid_panel
¶
The rigid-body settings, as a table beside the 3-D view.
The reference point the rotations pivot on, and — when the set is to be mass-normalised — the mass and the six terms of the inertia tensor about it. The view previews the six shapes on the geometry as they are set, and the button at the bottom makes the shape set: select, see, set, apply (principle 13), the truncate panel's shape moved from the plot to the scene.
Nothing here computes anything. The panel says what the settings are
in the display units, hands them over in SI as a MassProperties,
and reports when they move; generate_rigid_body_modes is what makes
the set, with whatever is set at that moment.
Classes:
| Name | Description |
|---|---|
RigidBodyPanel |
The parameter table. Edits arrive as a whole |
Classes¶
RigidBodyPanel
¶
Bases: QWidget
The parameter table. Edits arrive as a whole MassProperties.
Methods:
| Name | Description |
|---|---|
show_geometry |
Point the panel at a geometry and the settings on it, in the |
set_properties |
Restate the panel from the settings, without re-emitting. |
properties |
The settings the editors currently describe, in SI. |
Source code in src/visualdynamics/gui/rigid_panel.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | |
Methods:¶
show_geometry
¶
show_geometry(
geometry: Geometry,
properties: MassProperties,
unit_system: UnitSystem,
) -> None
Point the panel at a geometry and the settings on it, in the
display units of unit_system.
A geometry whose length unit is undeclared shows its raw coordinates with no unit, and cannot be mass-normalised — an inertia in kg·m² against coordinates in nothing is not a number — so the checkbox gives way to a note saying what to declare.
Source code in src/visualdynamics/gui/rigid_panel.py
set_properties
¶
set_properties(properties: MassProperties) -> None
Restate the panel from the settings, without re-emitting.
Source code in src/visualdynamics/gui/rigid_panel.py
properties
¶
properties() -> MassProperties
The settings the editors currently describe, in SI.
Raises ValueError for a tensor no body could have — the one
state the boxes cannot refuse one at a time.