KiCad PCB EDA Suite
Loading...
Searching...
No Matches
JOB_PARAM_MM_TO_PCB_IU Class Reference

A coordinate held in PCB internal units, as every consumer of EXPORTER_STEP_PARAMS expects, but written to the jobset in millimetres, which is what jobsets have always stored. More...

Inheritance diagram for JOB_PARAM_MM_TO_PCB_IU:
JOB_PARAM< double > JOB_PARAM_BASE

Public Member Functions

 JOB_PARAM_MM_TO_PCB_IU (const std::string &aJsonPath, double *aPtr, double aDefaultMM)
 
void FromJson (const nlohmann::json &j) const override
 
void ToJson (nlohmann::json &j) override
 

Protected Attributes

double * m_ptr
 
double m_default
 
std::string m_jsonPath
 

Detailed Description

A coordinate held in PCB internal units, as every consumer of EXPORTER_STEP_PARAMS expects, but written to the jobset in millimetres, which is what jobsets have always stored.

Definition at line 29 of file job_export_pcb_3d.cpp.

Constructor & Destructor Documentation

◆ JOB_PARAM_MM_TO_PCB_IU()

JOB_PARAM_MM_TO_PCB_IU::JOB_PARAM_MM_TO_PCB_IU ( const std::string & aJsonPath,
double * aPtr,
double aDefaultMM )
inline

Definition at line 32 of file job_export_pcb_3d.cpp.

References JOB_PARAM< double >::JOB_PARAM().

Member Function Documentation

◆ FromJson()

void JOB_PARAM_MM_TO_PCB_IU::FromJson ( const nlohmann::json & j) const
inlineoverridevirtual

◆ ToJson()

void JOB_PARAM_MM_TO_PCB_IU::ToJson ( nlohmann::json & j)
inlineoverridevirtual

Reimplemented from JOB_PARAM< double >.

Definition at line 42 of file job_export_pcb_3d.cpp.

References JOB_PARAM< double >::m_jsonPath, JOB_PARAM< double >::m_ptr, and pcbIUScale.

Member Data Documentation

◆ m_default

double JOB_PARAM< double >::m_default
protectedinherited

Definition at line 70 of file job.h.

Referenced by JOB_PARAM_MM_TO_PCB_IU::FromJson().

◆ m_jsonPath

std::string JOB_PARAM_BASE::m_jsonPath
protectedinherited

Definition at line 47 of file job.h.

Referenced by JOB_PARAM_MM_TO_PCB_IU::FromJson(), and JOB_PARAM_MM_TO_PCB_IU::ToJson().

◆ m_ptr

double* JOB_PARAM< double >::m_ptr
protectedinherited

Definition at line 69 of file job.h.

Referenced by JOB_PARAM_MM_TO_PCB_IU::FromJson(), and JOB_PARAM_MM_TO_PCB_IU::ToJson().


The documentation for this class was generated from the following file: