36 #ifndef PANEL_PREV_MODEL_H 37 #define PANEL_PREV_MODEL_H 48 #define MAX_SCALE 10000.0 49 #define MAX_ROTATION 180.0 50 #define MAX_OFFSET 1000.0 52 #define SCALE_INCREMENT_FINE 0.02 53 #define SCALE_INCREMENT 0.1 55 #define ROTATION_INCREMENT 90 // in degrees, for spin button command 56 #define ROTATION_INCREMENT_WHEEL 90 // in degrees, for mouse wheel command 57 #define ROTATION_INCREMENT_WHEEL_FINE 1 // in degrees, for mouse wheel command 59 #define OFFSET_INCREMENT_MM 0.5 60 #define OFFSET_INCREMENT_MM_FINE 0.1 62 #define OFFSET_INCREMENT_MIL 25.0 63 #define OFFSET_INCREMENT_MIL_FINE 5.0 78 std::vector<FP_3DMODEL>* aParentModelList );
213 #endif // PANEL_PREV_MODEL_H BOARD_ADAPTER & GetAdapter() override
Class PANEL_PREV_3D_BASE.
void View3DRight(wxCommandEvent &event) override
void onOpacitySlider(wxCommandEvent &event) override
void onDecrementRot(wxSpinEvent &event) override
void onMouseWheelScale(wxMouseEvent &event) override
void onIncrementOffset(wxSpinEvent &event) override
CAMERA & GetCurrentCamera() override
void onMouseWheelOffset(wxMouseEvent &event) override
EDA_UNITS m_userUnits
Index into m_parentInfoList.
Implement a canvas based on a wxGLCanvas.
wxString formatRotationValue(double aValue)
void onDecrementScale(wxSpinEvent &event) override
void doIncrementScale(wxSpinEvent &aEvent, double aSign)
std::vector< FP_3DMODEL > * m_parentModelList
Cache for storing the 3D shapes.
void View3DBottom(wxCommandEvent &event) override
void View3DLeft(wxCommandEvent &event) override
void doIncrementRotation(wxSpinEvent &aEvent, double aSign)
wxString formatScaleValue(double aValue)
void UpdateDummyFootprint(bool aRelaodRequired=true)
Copy shapes from the current shape list which are flagged for preview to the copy of footprint that i...
A class used to derive camera objects from.
wxString formatOffsetValue(double aValue)
FOOTPRINT * m_dummyFootprint
void doIncrementOffset(wxSpinEvent &aEvent, double aSign)
void View3DTop(wxCommandEvent &event) override
void View3DBack(wxCommandEvent &event) override
void loadCommonSettings()
Load 3D relevant settings from the user configuration.
void OnMenuEvent(wxMenuEvent &aEvent)
The TOOL_DISPATCHER needs these to work around some issues in wxWidgets where the menu events aren't ...
wxWindow * GetToolCanvas() const override
Canvas access.
EDA_3D_CANVAS * m_previewPane
void onIncrementRot(wxSpinEvent &event) override
void SetSelectedModel(int idx)
Set the currently selected index in the model list so that the scale/rotation/offset controls can be ...
void View3DUpdate(wxCommandEvent &event) override
void onDecrementOffset(wxSpinEvent &event) override
void onMouseWheelRot(wxMouseEvent &event) override
A modified version of the wxInfoBar class that allows us to:
TRACK_BALL m_trackBallCamera
void View3DFront(wxCommandEvent &event) override
Provide an extensible class to resolve 3D model paths.
void updateOrientation(wxCommandEvent &event) override
It will receive the events from editing the fields.
Information pertinent to a Pcbnew printed circuit board.
bool SetView3D(int aKeycode)
Helper function to call view commands.
void onIncrementScale(wxSpinEvent &event) override
void View3DISO(wxCommandEvent &event) override
void ReloadRequest(BOARD *aBoard=nullptr, S3D_CACHE *aCachePointer=nullptr)
PANEL_PREV_3D(wxWindow *aParent, PCB_BASE_FRAME *aFrame, FOOTPRINT *aFootprint, std::vector< FP_3DMODEL > *aParentModelList)
Helper class to handle information needed to display 3D board.
Declaration for a track ball camera.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
BOARD_ADAPTER m_boardAdapter