buffalo_panel.app.gui

Package containing graphical user interfaces.

Functions

body_preview_coordinates

Return transformed airfoil coordinates for preview plotting.

build_airfoil_parameter_mapping

Return the schema-dependent airfoil parameters for one type.

build_airfoil_schema_mapping

Return one canonical Buffalo Wings starter mapping.

build_default_body_mapping

Return the default body mapping used for new geometry entries.

build_field_tooltip

Build a descriptive tooltip from schema metadata.

build_flow_probe_lines

Return the tooltip lines for one flow-field probe location.

build_initial_case_mapping

Return the default case mapping used to seed the GUI.

convert_angle_fields

Convert freestream and placement angle fields in-place.

expand_limits_to_aspect

Expand limits to match a physical aspect ratio.

generate_field_grid

Generate a Cartesian mesh for field evaluation.

get_adaptive_field_resolution

Scale field-grid resolution up when the current view is zoomed in.

get_default_view_limits

Return default plot limits centered on the geometry.

get_field_surface_exclusion_radius

Return a surface-exclusion radius based on the current grid spacing.

interpolate_surface_nodes

Interpolate panel-centered quantities onto boundary nodes.

is_far_from_geometry_panels

Identify field points that are at least min_distance from panels.

is_outside_body

Identify field points that are outside the geometry polygon.

latex_pgf_export_style

Remove sans-serif fonts from text before exporting to PGF/TikZ.

model_to_data

Serialize a tree-model branch back into nested Python data.

point_is_inside_body

Return whether a point lies inside or on the body boundary.

sample_surface_quantity_at_x

Interpolate upper and lower surface values at one x-location.

sync_airfoil_definition_rows

Replace airfoil parameter rows to match the selected airfoil type.

Classes

BaseViewer

Base class for viewers with common rendering lifecycle.

FlowViewer

Handles streamlines and pressure contours with ViewState awareness.

GeometryViewer

Handles body previews and freestream indicators.

MplCanvas

Base interactive canvas for aerodynamic plots.

Panel2dGUI

Main window for the Buffalo Panel interactive research suite.

SimulationModel

Model to represent and edit simulation structure in a TreeView.

SurfaceProbeSample

Interpolated upper and lower surface values at a single x-location.

SurfaceViewer

Handles surface distributions and interactive cursors.

TypeDelegate

Delegate to show specialized editors (Combo Boxes) in the tree view.

ViewState

Single source of truth for a plot viewport.