KiCad PCB EDA Suite
Loading...
Searching...
No Matches
command_pcb_render.cpp File Reference
#include "command_pcb_render.h"
#include <cli/exit_codes.h>
#include "jobs/job_pcb_render.h"
#include <kiface_base.h>
#include <layer_ids.h>
#include <string_utils.h>
#include <wx/crt.h>
#include <magic_enum.hpp>
#include <macros.h>
#include <wx/tokenzr.h>
#include "../../3d-viewer/3d_viewer/eda_3d_viewer_settings.h"
#include <math/vector3.h>

Go to the source code of this file.

Macros

#define ARG_BACKGROUND   "--background"
 
#define ARG_QUALITY   "--quality"
 
#define ARG_WIDTH   "--width"
 
#define ARG_WIDTH_SHORT   "-w"
 
#define ARG_HEIGHT   "--height"
 
#define ARG_HEIGHT_SHORT   "-h"
 
#define ARG_SIDE   "--side"
 
#define ARG_PRESET   "--preset"
 
#define ARG_PAN   "--pan"
 
#define ARG_PIVOT   "--pivot"
 
#define ARG_ROTATE   "--rotate"
 
#define ARG_ZOOM   "--zoom"
 
#define ARG_PERSPECTIVE   "--perspective"
 
#define ARG_FLOOR   "--floor"
 

Functions

template<typename T >
static wxString enumString ()
 
template<typename T >
static std::vector< std::string > enumChoices ()
 
template<typename T >
static std::optional< T > strToEnum (std::string &aInput)
 
template<typename T >
static bool getToEnum (const std::string &aInput, T &aOutput)
 
static bool getToVector3 (const std::string &aInput, VECTOR3D &aOutput)
 

Macro Definition Documentation

◆ ARG_BACKGROUND

#define ARG_BACKGROUND   "--background"

Definition at line 36 of file command_pcb_render.cpp.

◆ ARG_FLOOR

#define ARG_FLOOR   "--floor"

Definition at line 52 of file command_pcb_render.cpp.

◆ ARG_HEIGHT

#define ARG_HEIGHT   "--height"

Definition at line 42 of file command_pcb_render.cpp.

◆ ARG_HEIGHT_SHORT

#define ARG_HEIGHT_SHORT   "-h"

Definition at line 43 of file command_pcb_render.cpp.

◆ ARG_PAN

#define ARG_PAN   "--pan"

Definition at line 47 of file command_pcb_render.cpp.

◆ ARG_PERSPECTIVE

#define ARG_PERSPECTIVE   "--perspective"

Definition at line 51 of file command_pcb_render.cpp.

◆ ARG_PIVOT

#define ARG_PIVOT   "--pivot"

Definition at line 48 of file command_pcb_render.cpp.

◆ ARG_PRESET

#define ARG_PRESET   "--preset"

Definition at line 46 of file command_pcb_render.cpp.

◆ ARG_QUALITY

#define ARG_QUALITY   "--quality"

Definition at line 37 of file command_pcb_render.cpp.

◆ ARG_ROTATE

#define ARG_ROTATE   "--rotate"

Definition at line 49 of file command_pcb_render.cpp.

◆ ARG_SIDE

#define ARG_SIDE   "--side"

Definition at line 45 of file command_pcb_render.cpp.

◆ ARG_WIDTH

#define ARG_WIDTH   "--width"

Definition at line 39 of file command_pcb_render.cpp.

◆ ARG_WIDTH_SHORT

#define ARG_WIDTH_SHORT   "-w"

Definition at line 40 of file command_pcb_render.cpp.

◆ ARG_ZOOM

#define ARG_ZOOM   "--zoom"

Definition at line 50 of file command_pcb_render.cpp.

Function Documentation

◆ enumChoices()

template<typename T >
static std::vector< std::string > enumChoices ( )
static

Definition at line 82 of file command_pcb_render.cpp.

References name.

◆ enumString()

template<typename T >
static wxString enumString ( )
static

Definition at line 56 of file command_pcb_render.cpp.

References name.

◆ getToEnum()

template<typename T >
static bool getToEnum ( const std::string &  aInput,
T &  aOutput 
)
static

Definition at line 111 of file command_pcb_render.cpp.

Referenced by CLI::PCB_RENDER_COMMAND::doPerform().

◆ getToVector3()

static bool getToVector3 ( const std::string &  aInput,
VECTOR3D aOutput 
)
static

◆ strToEnum()

template<typename T >
static std::optional< T > strToEnum ( std::string &  aInput)
static

Definition at line 104 of file command_pcb_render.cpp.