KiCad PCB EDA Suite
panel_prev_model.h File Reference

Defines a panel which is to be added to a wxFileDialog via SetExtraControl(); The panel shows a preview of the module being edited and provides controls to set the offset/rotation/scale of each model 3d shape as per KiCad's current behavior. More...

#include "panel_prev_3d_base.h"
#include "../3d_info.h"
#include <vector>
#include <3d_canvas/eda_3d_canvas.h>

Go to the source code of this file.

Classes

class  PANEL_PREV_3D
 

Macros

#define MAX_SCALE   10000.0
 
#define MAX_ROTATION   180.0
 
#define MAX_OFFSET   1000.0
 
#define SCALE_INCREMENT_FINE   0.02
 
#define SCALE_INCREMENT   0.1
 
#define ROTATION_INCREMENT   5
 
#define ROTATION_INCREMENT_WHEEL   15
 
#define ROTATION_INCREMENT_WHEEL_FINE   1
 
#define OFFSET_INCREMENT_MM   0.5
 
#define OFFSET_INCREMENT_MM_FINE   0.1
 
#define OFFSET_INCREMENT_MIL   25.0
 
#define OFFSET_INCREMENT_MIL_FINE   5.0
 

Detailed Description

Defines a panel which is to be added to a wxFileDialog via SetExtraControl(); The panel shows a preview of the module being edited and provides controls to set the offset/rotation/scale of each model 3d shape as per KiCad's current behavior.

The panel may also be used in the 3D configuration dialog to tune the positioning of the models without invoking a file selector dialog.

Definition in file panel_prev_model.h.

Macro Definition Documentation

#define MAX_OFFSET   1000.0
#define MAX_ROTATION   180.0
#define MAX_SCALE   10000.0

Definition at line 47 of file panel_prev_model.h.

#define OFFSET_INCREMENT_MIL   25.0
#define OFFSET_INCREMENT_MIL_FINE   5.0

Definition at line 62 of file panel_prev_model.h.

Referenced by PANEL_PREV_3D::onMouseWheelOffset().

#define OFFSET_INCREMENT_MM   0.5
#define OFFSET_INCREMENT_MM_FINE   0.1

Definition at line 59 of file panel_prev_model.h.

Referenced by PANEL_PREV_3D::onMouseWheelOffset().

#define ROTATION_INCREMENT   5
#define ROTATION_INCREMENT_WHEEL   15

Definition at line 55 of file panel_prev_model.h.

Referenced by PANEL_PREV_3D::onMouseWheelRot().

#define ROTATION_INCREMENT_WHEEL_FINE   1

Definition at line 56 of file panel_prev_model.h.

Referenced by PANEL_PREV_3D::onMouseWheelRot().

#define SCALE_INCREMENT   0.1
#define SCALE_INCREMENT_FINE   0.02

Definition at line 51 of file panel_prev_model.h.

Referenced by PANEL_PREV_3D::onMouseWheelScale().