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 <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   90
 
#define ROTATION_INCREMENT_WHEEL   90
 
#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

◆ MAX_OFFSET

#define MAX_OFFSET   1000.0

Definition at line 48 of file panel_prev_model.h.

◆ MAX_ROTATION

#define MAX_ROTATION   180.0

Definition at line 47 of file panel_prev_model.h.

◆ MAX_SCALE

#define MAX_SCALE   10000.0

Definition at line 46 of file panel_prev_model.h.

◆ OFFSET_INCREMENT_MIL

#define OFFSET_INCREMENT_MIL   25.0

Definition at line 60 of file panel_prev_model.h.

◆ OFFSET_INCREMENT_MIL_FINE

#define OFFSET_INCREMENT_MIL_FINE   5.0

Definition at line 61 of file panel_prev_model.h.

◆ OFFSET_INCREMENT_MM

#define OFFSET_INCREMENT_MM   0.5

Definition at line 57 of file panel_prev_model.h.

◆ OFFSET_INCREMENT_MM_FINE

#define OFFSET_INCREMENT_MM_FINE   0.1

Definition at line 58 of file panel_prev_model.h.

◆ ROTATION_INCREMENT

#define ROTATION_INCREMENT   90

Definition at line 53 of file panel_prev_model.h.

◆ ROTATION_INCREMENT_WHEEL

#define ROTATION_INCREMENT_WHEEL   90

Definition at line 54 of file panel_prev_model.h.

◆ ROTATION_INCREMENT_WHEEL_FINE

#define ROTATION_INCREMENT_WHEEL_FINE   1

Definition at line 55 of file panel_prev_model.h.

◆ SCALE_INCREMENT

#define SCALE_INCREMENT   0.1

Definition at line 51 of file panel_prev_model.h.

◆ SCALE_INCREMENT_FINE

#define SCALE_INCREMENT_FINE   0.02

Definition at line 50 of file panel_prev_model.h.