SatelliteCameraViewer.Cubesat.Cubesat module
Cubesat with rotations using pyvista and shown in a tk window (using Label)
- class SatelliteCameraViewer.Cubesat.Cubesat.Cubesat(u=3, width=800, height=800, isometric_view=False, show_axes=False)[source]
Bases:
objectCubesat - Draw a cubesat in 3d via pyvista. This expects to be called with a tk window (using Label) as the location to paint the 3d image.
Methods
apply_orientation([roll, pitch, yaw])apply_orientation - Rotate the cubesat
render()render - Do the render of the 3d object.
Cubesat - Draw a cubesat in 3d via pyvista.
- Parameters:
u (int) – Cubesat U size.
width (int) – Width of graphics area.
height (int) – Height of graphics area.
isometric_view (bool) – If True, visually representing three-dimensional objects in two dimensions.
show_axes (bool) – If True, show the pyvista XYZ axis graphic.
Methods
apply_orientation([roll, pitch, yaw])apply_orientation - Rotate the cubesat
render()render - Do the render of the 3d object.
- CM = 0.01
CM - Centimeter (with Meter == 1).
- MM = 0.001
MM - Milimeter (with Meter == 1).
- U = 0.1
U - Size of a single U (in Meters) from the Cubesat definition.
- class SatelliteCameraViewer.Cubesat.Cubesat.CubesatViewer[source]
Bases:
objectMethods
update_orientation([roll, pitch, yaw])update_orientation - Rotate the cubesat
CubesatViewer
Methods
update_orientation([roll, pitch, yaw])update_orientation - Rotate the cubesat
- class SatelliteCameraViewer.Cubesat.Cubesat.WDH(w: float = 0.0, d: float = 0.0, h: float = 0.0)[source]
Bases:
objectWDH - Width, Depth, Height - used to store sizes of satellite cube.
- Parameters:
w (float) – Width.
d (float) – Height.
h (float) – Depth.
Used intenally to Cubesat class, not really useful outside of core Cubesat code.
- Attributes:
arrayarray - return [w, d, h] as an array.
- property array
array - return [w, d, h] as an array.
- Returns:
[w, d, h] as an array
- Type:
list[float] | np.array
- d: float = 0.0
d - Depth.
- h: float = 0.0
h - Height.
- w: float = 0.0
w - Width.