|
KiCad PCB EDA Suite
|
#include <3d_rendering/opengl/render_3d_opengl.h>#include <cmath>#include "panel_preview_3d_model.h"#include <dialogs/dialog_unit_entry.h>#include <libeval/numeric_evaluator.h>#include <3d_canvas/eda_3d_canvas.h>#include <tool/tool_manager.h>#include <tool/tool_dispatcher.h>#include <tools/eda_3d_actions.h>#include <tools/eda_3d_controller.h>#include <base_units.h>#include <bitmaps.h>#include <board.h>#include <common_ogl/ogl_attr_list.h>#include <dpi_scaling_common.h>#include <footprint.h>#include <lset.h>#include <pgm_base.h>#include <project_pcb.h>#include <settings/common_settings.h>#include <settings/settings_manager.h>#include <widgets/wx_infobar.h>#include <widgets/std_bitmap_button.h>#include <eda_3d_viewer_settings.h>#include <board_design_settings.h>#include <3d_navlib/nl_footprint_properties_plugin.h>Go to the source code of this file.
Functions | |
| static wxString | evaluateTextCtrl (const wxString &aValue) |
| static double | normalizeRotation (double aRotation) |
| Normalize a rotation in degrees to the half-open range (-MAX_ROTATION, MAX_ROTATION]. | |
| static double | rotationFromString (const wxString &aValue) |
|
static |
Definition at line 61 of file panel_preview_3d_model.cpp.
References NUMERIC_EVALUATOR::Process(), NUMERIC_EVALUATOR::Result(), and UNSCALED.
Referenced by PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), and PANEL_PREVIEW_3D_MODEL::updateOrientation().
|
static |
Normalize a rotation in degrees to the half-open range (-MAX_ROTATION, MAX_ROTATION].
Matches the convention used by EDA_ANGLE::Normalize180(), so 198 maps to -162 and 540 maps to 180.
Definition at line 87 of file panel_preview_3d_model.cpp.
References MAX_ROTATION.
Referenced by PANEL_PREVIEW_3D_MODEL::doIncrementRotation(), PANEL_PREVIEW_3D_MODEL::onMouseWheelRot(), and rotationFromString().
|
static |
Definition at line 103 of file panel_preview_3d_model.cpp.
References DEGREES, EDA_UNIT_UTILS::UI::DoubleValueFromString(), normalizeRotation(), and unityScale.
Referenced by PANEL_PREVIEW_3D_MODEL::doIncrementRotation(), PANEL_PREVIEW_3D_MODEL::onMouseWheelRot(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), and PANEL_PREVIEW_3D_MODEL::updateOrientation().