KiCad PCB EDA Suite
PCB_ORIGIN_TRANSFORMS Class Reference

#include <pcb_origin_transforms.h>

Inheritance diagram for PCB_ORIGIN_TRANSFORMS:
ORIGIN_TRANSFORMS

Public Types

enum  COORD_TYPES_T {
  NOT_A_COORD , ABS_X_COORD , ABS_Y_COORD , REL_X_COORD ,
  REL_Y_COORD
}
 The supported Display Origin Transform types. More...
 

Public Member Functions

 PCB_ORIGIN_TRANSFORMS (PCB_BASE_FRAME &aPcbBaseFrame)
 
virtual ~PCB_ORIGIN_TRANSFORMS () override
 
virtual long long int ToDisplay (long long int aValue, COORD_TYPES_T aCoordType) const override
 
virtual double ToDisplay (double aValue, COORD_TYPES_T aCoordType) const override
 
virtual long long int FromDisplay (long long int aValue, COORD_TYPES_T aCoordType) const override
 
virtual double FromDisplay (double aValue, COORD_TYPES_T aCoordType) const override
 
template<typename T >
ToDisplayRelX (T aInternalValue) const
 Transform a 2-D coordinate point referenced to the internal origin to the equivalent point referenced to the user-selected display origin. More...
 
template<typename T >
ToDisplayRelY (T aInternalValue) const
 
template<typename T >
FromDisplayRelX (T aDisplayValue) const
 
template<typename T >
FromDisplayRelY (T aDisplayValue) const
 
template<typename T >
ToDisplayAbsX (T aInternalValue) const
 
template<typename T >
ToDisplayAbsY (T aInternalValue) const
 
template<typename T >
FromDisplayAbsX (T aDisplayValue) const
 
template<typename T >
FromDisplayAbsY (T aDisplayValue) const
 
template<typename T >
ToDisplayAbs (T aInternalValue) const
 
template<typename T >
FromDisplayAbs (T aDisplayValue) const
 
template<typename T >
ToDisplayRel (T aInternalValue) const
 
template<typename T >
FromDisplayRel (T aDisplayValue) const
 
virtual int ToDisplay (int aValue, COORD_TYPES_T aCoordType) const
 
virtual long long int ToDisplay (long long int aValue, COORD_TYPES_T aCoordType) const
 
virtual double ToDisplay (double aValue, COORD_TYPES_T aCoordType) const
 
virtual int FromDisplay (int aValue, COORD_TYPES_T aCoordType) const
 
virtual long long int FromDisplay (long long int aValue, COORD_TYPES_T aCoordType) const
 
virtual double FromDisplay (double aValue, COORD_TYPES_T aCoordType) const
 
template<class T >
ToDisplayAbs (const T &aValue) const
 
template<class T >
ToDisplayRel (const T &aValue) const
 
template<class T >
FromDisplayAbs (const T &aValue) const
 
template<class T >
FromDisplayRel (const T &aValue) const
 

Protected Member Functions

int getUserXOrigin () const
 
int getUserYOrigin () const
 
bool invertXAxis () const
 
bool invertYAxis () const
 

Static Protected Member Functions

template<class T >
static T ToDisplayAbs (T aInternalValue, int aUserOrigin, bool aInvertAxis)
 
template<class T >
static T ToDisplayRel (T aInternalValue, bool aInvertAxis)
 
template<class T >
static T FromDisplayAbs (T aDisplayValue, int aUserOrigin, bool aInvertAxis)
 
template<class T >
static T FromDisplayRel (T aDisplayValue, bool aInvertAxis)
 

Protected Attributes

const PCB_BASE_FRAMEm_pcbBaseFrame
 

Detailed Description

Definition at line 32 of file pcb_origin_transforms.h.

Member Enumeration Documentation

◆ COORD_TYPES_T

The supported Display Origin Transform types.

Absolute coordinates require both translation and direction inversion. Relative coordinates require only direction inversion.

Enumerator
NOT_A_COORD 
ABS_X_COORD 
ABS_Y_COORD 
REL_X_COORD 
REL_Y_COORD 

Definition at line 48 of file origin_transforms.h.

48 {
49 NOT_A_COORD, //< A non-coordinate value, never transformed
50 ABS_X_COORD, //< An absolute X coordinate
51 ABS_Y_COORD, //< An absolute Y coordinate
52 REL_X_COORD, //< A relative X coordinate
53 REL_Y_COORD, //< A relative Y coordinate
54 };

Constructor & Destructor Documentation

◆ PCB_ORIGIN_TRANSFORMS()

PCB_ORIGIN_TRANSFORMS::PCB_ORIGIN_TRANSFORMS ( PCB_BASE_FRAME aPcbBaseFrame)

Definition at line 32 of file pcb_origin_transforms.cpp.

32 :
33 m_pcbBaseFrame( aPcbBaseFrame )
34{}
const PCB_BASE_FRAME & m_pcbBaseFrame

◆ ~PCB_ORIGIN_TRANSFORMS()

PCB_ORIGIN_TRANSFORMS::~PCB_ORIGIN_TRANSFORMS ( )
overridevirtual

Definition at line 36 of file pcb_origin_transforms.cpp.

37{}

Member Function Documentation

◆ FromDisplay() [1/5]

double ORIGIN_TRANSFORMS::FromDisplay ( double  aValue,
COORD_TYPES_T  aCoordType 
) const
virtual

Reimplemented from ORIGIN_TRANSFORMS.

Definition at line 75 of file origin_transforms.cpp.

67{
68 return aValue;
69}

◆ FromDisplay() [2/5]

double PCB_ORIGIN_TRANSFORMS::FromDisplay ( double  aValue,
COORD_TYPES_T  aCoordType 
) const
overridevirtual

Reimplemented from ORIGIN_TRANSFORMS.

Definition at line 92 of file pcb_origin_transforms.cpp.

93{
94 double value = aValue;
95
96 switch( aCoordType )
97 {
98 case COORD_TYPE::ABS_X_COORD: value = FromDisplayAbsX( value ); break;
99 case COORD_TYPE::ABS_Y_COORD: value = FromDisplayAbsY( value ); break;
100 case COORD_TYPE::REL_X_COORD: value = FromDisplayRelX( value ); break;
101 case COORD_TYPE::REL_Y_COORD: value = FromDisplayRelY( value ); break;
102 case COORD_TYPE::NOT_A_COORD: /* do nothing */ ; break;
103 default: wxASSERT( false ); break;
104 };
105
106 return value;
107}
T FromDisplayRelY(T aDisplayValue) const
T FromDisplayAbsY(T aDisplayValue) const
T FromDisplayAbsX(T aDisplayValue) const
T FromDisplayRelX(T aDisplayValue) const

References FromDisplayAbsX(), FromDisplayAbsY(), FromDisplayRelX(), and FromDisplayRelY().

◆ FromDisplay() [3/5]

int ORIGIN_TRANSFORMS::FromDisplay ( int  aValue,
COORD_TYPES_T  aCoordType 
) const
virtual

Reimplemented from ORIGIN_TRANSFORMS.

Definition at line 69 of file origin_transforms.cpp.

55{
56 return static_cast<int>( FromDisplay( static_cast<long long int>( aValue ), aCoordType ) );
57}
virtual long long int FromDisplay(long long int aValue, COORD_TYPES_T aCoordType) const override

◆ FromDisplay() [4/5]

long long int ORIGIN_TRANSFORMS::FromDisplay ( long long int  aValue,
COORD_TYPES_T  aCoordType 
) const
virtual

Reimplemented from ORIGIN_TRANSFORMS.

Definition at line 72 of file origin_transforms.cpp.

61{
62 return aValue;
63}

◆ FromDisplay() [5/5]

long long int PCB_ORIGIN_TRANSFORMS::FromDisplay ( long long int  aValue,
COORD_TYPES_T  aCoordType 
) const
overridevirtual

Reimplemented from ORIGIN_TRANSFORMS.

Definition at line 74 of file pcb_origin_transforms.cpp.

76{
77 long long value = aValue;
78
79 switch( aCoordType )
80 {
81 case COORD_TYPE::ABS_X_COORD: value = FromDisplayAbsX( value ); break;
82 case COORD_TYPE::ABS_Y_COORD: value = FromDisplayAbsY( value ); break;
83 case COORD_TYPE::REL_X_COORD: value = FromDisplayRelX( value ); break;
84 case COORD_TYPE::REL_Y_COORD: value = FromDisplayRelY( value ); break;
85 case COORD_TYPE::NOT_A_COORD: /* do nothing */ ; break;
86 default: wxASSERT( false ); break;
87 };
88
89 return value;
90}

References FromDisplayAbsX(), FromDisplayAbsY(), FromDisplayRelX(), and FromDisplayRelY().

◆ FromDisplayAbs() [1/3]

template<class T >
T ORIGIN_TRANSFORMS::FromDisplayAbs ( const T &  aValue) const
inlineinherited

Definition at line 101 of file origin_transforms.h.

102 {
103 T displayValue;
104
105 displayValue.x = FromDisplay( aValue.x, ABS_X_COORD );
106 displayValue.y = FromDisplay( aValue.y, ABS_Y_COORD );
107 return displayValue;
108 }
virtual int FromDisplay(int aValue, COORD_TYPES_T aCoordType) const

References ORIGIN_TRANSFORMS::ABS_X_COORD, ORIGIN_TRANSFORMS::ABS_Y_COORD, and ORIGIN_TRANSFORMS::FromDisplay().

Referenced by FromDisplayAbsX(), and FromDisplayAbsY().

◆ FromDisplayAbs() [2/3]

template<typename T >
T PCB_ORIGIN_TRANSFORMS::FromDisplayAbs ( aDisplayValue) const
inline

Definition at line 160 of file pcb_origin_transforms.h.

161 {
162 T internalValue;
163
164 internalValue.x = FromDisplayAbsX( aDisplayValue.x );
165 internalValue.y = FromDisplayAbsY( aDisplayValue.y );
166
167 return internalValue;
168 }

References FromDisplayAbsX(), and FromDisplayAbsY().

◆ FromDisplayAbs() [3/3]

template<class T >
static T ORIGIN_TRANSFORMS::FromDisplayAbs ( aDisplayValue,
int  aUserOrigin,
bool  aInvertAxis 
)
inlinestaticprotectedinherited

Definition at line 167 of file origin_transforms.h.

170 {
171 T internalValue = aDisplayValue;
172
173 // Invert the direction if needed
174 if( aInvertAxis && (internalValue != static_cast<T>(0)) )
175 internalValue = -internalValue;
176
177 // Make the value relative to the internal origin
178 internalValue += aUserOrigin;
179
180 return internalValue;
181 }

◆ FromDisplayAbsX()

template<typename T >
T PCB_ORIGIN_TRANSFORMS::FromDisplayAbsX ( aDisplayValue) const
inline

Definition at line 134 of file pcb_origin_transforms.h.

135 {
137 }
T FromDisplayAbs(const T &aValue) const

References ORIGIN_TRANSFORMS::FromDisplayAbs(), getUserXOrigin(), and invertXAxis().

Referenced by FromDisplay(), and FromDisplayAbs().

◆ FromDisplayAbsY()

template<typename T >
T PCB_ORIGIN_TRANSFORMS::FromDisplayAbsY ( aDisplayValue) const
inline

◆ FromDisplayRel() [1/3]

template<class T >
T ORIGIN_TRANSFORMS::FromDisplayRel ( const T &  aValue) const
inlineinherited

Definition at line 111 of file origin_transforms.h.

112 {
113 T displayValue;
114
115 displayValue.x = FromDisplay( aValue.x, REL_X_COORD );
116 displayValue.y = FromDisplay( aValue.y, REL_Y_COORD );
117 return displayValue;
118 }

References ORIGIN_TRANSFORMS::FromDisplay(), ORIGIN_TRANSFORMS::REL_X_COORD, and ORIGIN_TRANSFORMS::REL_Y_COORD.

Referenced by FromDisplayRelX(), and FromDisplayRelY().

◆ FromDisplayRel() [2/3]

template<typename T >
T PCB_ORIGIN_TRANSFORMS::FromDisplayRel ( aDisplayValue) const
inline

Definition at line 182 of file pcb_origin_transforms.h.

183 {
184 T internalValue;
185
186 internalValue.x = FromDisplayRelX( aDisplayValue.x );
187 internalValue.y = FromDisplayRelY( aDisplayValue.y );
188
189 return internalValue;
190 }

References FromDisplayRelX(), and FromDisplayRelY().

◆ FromDisplayRel() [3/3]

template<class T >
static T ORIGIN_TRANSFORMS::FromDisplayRel ( aDisplayValue,
bool  aInvertAxis 
)
inlinestaticprotectedinherited

Definition at line 137 of file origin_transforms.h.

139 {
140 T internalValue = aDisplayValue;
141
142 // Invert the direction if needed
143 if( aInvertAxis && (internalValue != static_cast<T>(0)) )
144 internalValue = -internalValue;
145
146 return internalValue;
147 }

◆ FromDisplayRelX()

template<typename T >
T PCB_ORIGIN_TRANSFORMS::FromDisplayRelX ( aDisplayValue) const
inline

Definition at line 107 of file pcb_origin_transforms.h.

108 {
109 return ORIGIN_TRANSFORMS::FromDisplayRel( aDisplayValue, invertXAxis() );
110 }
T FromDisplayRel(const T &aValue) const

References ORIGIN_TRANSFORMS::FromDisplayRel(), and invertXAxis().

Referenced by FromDisplay(), and FromDisplayRel().

◆ FromDisplayRelY()

template<typename T >
T PCB_ORIGIN_TRANSFORMS::FromDisplayRelY ( aDisplayValue) const
inline

Definition at line 113 of file pcb_origin_transforms.h.

114 {
115 return ORIGIN_TRANSFORMS::FromDisplayRel( aDisplayValue, invertYAxis() );
116 }

References ORIGIN_TRANSFORMS::FromDisplayRel(), and invertYAxis().

Referenced by FromDisplay(), and FromDisplayRel().

◆ getUserXOrigin()

int PCB_ORIGIN_TRANSFORMS::getUserXOrigin ( ) const
protected

Definition at line 110 of file pcb_origin_transforms.cpp.

111{
113}
const VECTOR2I GetUserOrigin() const

References PCB_BASE_FRAME::GetUserOrigin(), m_pcbBaseFrame, and VECTOR2< T >::x.

Referenced by FromDisplayAbsX(), and ToDisplayAbsX().

◆ getUserYOrigin()

int PCB_ORIGIN_TRANSFORMS::getUserYOrigin ( ) const
protected

Definition at line 115 of file pcb_origin_transforms.cpp.

116{
118}

References PCB_BASE_FRAME::GetUserOrigin(), m_pcbBaseFrame, and VECTOR2< T >::y.

Referenced by FromDisplayAbsY(), and ToDisplayAbsY().

◆ invertXAxis()

◆ invertYAxis()

◆ ToDisplay() [1/5]

double ORIGIN_TRANSFORMS::ToDisplay ( double  aValue,
COORD_TYPES_T  aCoordType 
) const
virtual

Reimplemented from ORIGIN_TRANSFORMS.

Definition at line 66 of file origin_transforms.cpp.

49{
50 return aValue;
51}

◆ ToDisplay() [2/5]

double PCB_ORIGIN_TRANSFORMS::ToDisplay ( double  aValue,
COORD_TYPES_T  aCoordType 
) const
overridevirtual

Reimplemented from ORIGIN_TRANSFORMS.

Definition at line 57 of file pcb_origin_transforms.cpp.

58{
59 double value = aValue;
60
61 switch( aCoordType )
62 {
63 case COORD_TYPE::ABS_X_COORD: value = ToDisplayAbsX( value ); break;
64 case COORD_TYPE::ABS_Y_COORD: value = ToDisplayAbsY( value ); break;
65 case COORD_TYPE::REL_X_COORD: value = ToDisplayRelX( value ); break;
66 case COORD_TYPE::REL_Y_COORD: value = ToDisplayRelY( value ); break;
67 case COORD_TYPE::NOT_A_COORD: /* do nothing */ ; break;
68 default: wxASSERT( false ); break;
69 };
70
71 return value;
72}
T ToDisplayRelY(T aInternalValue) const
T ToDisplayAbsX(T aInternalValue) const
T ToDisplayRelX(T aInternalValue) const
Transform a 2-D coordinate point referenced to the internal origin to the equivalent point referenced...
T ToDisplayAbsY(T aInternalValue) const

References ToDisplayAbsX(), ToDisplayAbsY(), ToDisplayRelX(), and ToDisplayRelY().

◆ ToDisplay() [3/5]

int ORIGIN_TRANSFORMS::ToDisplay ( int  aValue,
COORD_TYPES_T  aCoordType 
) const
virtual

Reimplemented from ORIGIN_TRANSFORMS.

Definition at line 60 of file origin_transforms.cpp.

37{
38 return static_cast<int>( ToDisplay( static_cast<long long int>( aValue ), aCoordType ) );
39}
virtual long long int ToDisplay(long long int aValue, COORD_TYPES_T aCoordType) const override

◆ ToDisplay() [4/5]

long long int ORIGIN_TRANSFORMS::ToDisplay ( long long int  aValue,
COORD_TYPES_T  aCoordType 
) const
virtual

Reimplemented from ORIGIN_TRANSFORMS.

Definition at line 63 of file origin_transforms.cpp.

43{
44 return aValue;
45}

◆ ToDisplay() [5/5]

long long int PCB_ORIGIN_TRANSFORMS::ToDisplay ( long long int  aValue,
COORD_TYPES_T  aCoordType 
) const
overridevirtual

Reimplemented from ORIGIN_TRANSFORMS.

Definition at line 39 of file pcb_origin_transforms.cpp.

41{
42 long long int value = aValue;
43
44 switch( aCoordType )
45 {
46 case COORD_TYPE::ABS_X_COORD: value = ToDisplayAbsX( value ); break;
47 case COORD_TYPE::ABS_Y_COORD: value = ToDisplayAbsY( value ); break;
48 case COORD_TYPE::REL_X_COORD: value = ToDisplayRelX( value ); break;
49 case COORD_TYPE::REL_Y_COORD: value = ToDisplayRelY( value ); break;
50 case COORD_TYPE::NOT_A_COORD: /* do nothing */ ; break;
51 default: wxASSERT( false ); break;
52 };
53
54 return value;
55}

References ToDisplayAbsX(), ToDisplayAbsY(), ToDisplayRelX(), and ToDisplayRelY().

◆ ToDisplayAbs() [1/3]

template<class T >
T ORIGIN_TRANSFORMS::ToDisplayAbs ( const T &  aValue) const
inlineinherited

Definition at line 80 of file origin_transforms.h.

81 {
82 T displayValue;
83
84 displayValue.x = ToDisplay( aValue.x, ABS_X_COORD );
85 displayValue.y = ToDisplay( aValue.y, ABS_Y_COORD );
86 return displayValue;
87 }
virtual int ToDisplay(int aValue, COORD_TYPES_T aCoordType) const

References ORIGIN_TRANSFORMS::ABS_X_COORD, ORIGIN_TRANSFORMS::ABS_Y_COORD, and ORIGIN_TRANSFORMS::ToDisplay().

Referenced by PCB_DIMENSION_BASE::GetMsgPanelInfo(), PCB_DIM_LEADER::GetMsgPanelInfo(), ToDisplayAbsX(), and ToDisplayAbsY().

◆ ToDisplayAbs() [2/3]

template<typename T >
T PCB_ORIGIN_TRANSFORMS::ToDisplayAbs ( aInternalValue) const
inline

Definition at line 149 of file pcb_origin_transforms.h.

150 {
151 T displayValue;
152
153 displayValue.x = ToDisplayAbsX( aInternalValue.x );
154 displayValue.y = ToDisplayAbsY( aInternalValue.y );
155
156 return displayValue;
157 }

References ToDisplayAbsX(), and ToDisplayAbsY().

◆ ToDisplayAbs() [3/3]

template<class T >
static T ORIGIN_TRANSFORMS::ToDisplayAbs ( aInternalValue,
int  aUserOrigin,
bool  aInvertAxis 
)
inlinestaticprotectedinherited

Definition at line 150 of file origin_transforms.h.

153 {
154 T displayValue = aInternalValue;
155
156 // Make the value relative to the internal origin
157 displayValue -= aUserOrigin;
158
159 // Invert the direction if needed
160 if( aInvertAxis && (displayValue != static_cast<T>(0)) )
161 displayValue = -displayValue;
162
163 return displayValue;
164 }

◆ ToDisplayAbsX()

template<typename T >
T PCB_ORIGIN_TRANSFORMS::ToDisplayAbsX ( aInternalValue) const
inline

Definition at line 122 of file pcb_origin_transforms.h.

123 {
124 return ORIGIN_TRANSFORMS::ToDisplayAbs( aInternalValue, getUserXOrigin(), invertXAxis() );
125 }
T ToDisplayAbs(const T &aValue) const

References getUserXOrigin(), invertXAxis(), and ORIGIN_TRANSFORMS::ToDisplayAbs().

Referenced by ToDisplay(), ToDisplayAbs(), and PCB_BASE_FRAME::UpdateStatusBar().

◆ ToDisplayAbsY()

template<typename T >
T PCB_ORIGIN_TRANSFORMS::ToDisplayAbsY ( aInternalValue) const
inline

◆ ToDisplayRel() [1/3]

template<class T >
T ORIGIN_TRANSFORMS::ToDisplayRel ( const T &  aValue) const
inlineinherited

Definition at line 90 of file origin_transforms.h.

91 {
92 T displayValue;
93
94 displayValue.x = ToDisplay( aValue.x, REL_X_COORD );
95 displayValue.y = ToDisplay( aValue.y, REL_Y_COORD );
96 return displayValue;
97 }

References ORIGIN_TRANSFORMS::REL_X_COORD, ORIGIN_TRANSFORMS::REL_Y_COORD, and ORIGIN_TRANSFORMS::ToDisplay().

Referenced by ToDisplayRelX(), and ToDisplayRelY().

◆ ToDisplayRel() [2/3]

template<typename T >
T PCB_ORIGIN_TRANSFORMS::ToDisplayRel ( aInternalValue) const
inline

Definition at line 171 of file pcb_origin_transforms.h.

172 {
173 T displayValue;
174
175 displayValue.x = ToDisplayRelX( aInternalValue.x );
176 displayValue.y = ToDisplayRelY( aInternalValue.y );
177
178 return displayValue;
179 }

References ToDisplayRelX(), and ToDisplayRelY().

◆ ToDisplayRel() [3/3]

template<class T >
static T ORIGIN_TRANSFORMS::ToDisplayRel ( aInternalValue,
bool  aInvertAxis 
)
inlinestaticprotectedinherited

Definition at line 123 of file origin_transforms.h.

125 {
126 T displayValue = aInternalValue;
127
128 // Invert the direction if needed
129 if( aInvertAxis && (displayValue != static_cast<T>(0)) )
130 displayValue = -displayValue;
131
132 return displayValue;
133 }

◆ ToDisplayRelX()

template<typename T >
T PCB_ORIGIN_TRANSFORMS::ToDisplayRelX ( aInternalValue) const
inline

Transform a 2-D coordinate point referenced to the internal origin to the equivalent point referenced to the user-selected display origin.

Parameters
aValuea point referenced to the internal origin
Returns
the point re-referenced to the user-selected display origin Transform a 2-D coordinate point referenced to the user-selected display origin to the equivalent point referenced to the internal origin.
Parameters
aValuea point referenced to the user-selected display origin
Returns
the point re-referenced to the internal origin Transform a relative 2-D coordinate delta referenced to the user-selected display origin to the equivalent delta referenced to the internal origin.

This is initially intended to handle axis inversion of a delta between two display points, but could be extended to handle other transforms.

Parameters
aValuea delta referenced to the internal origin
Returns
the delta re-referenced to the user-selected display origin Transform a relative 2-D coordinate delta referenced to the user-selected display origin to the equivalent delta referenced to the internal origin.

This is initially intended to handle axis inversion of a delta between two display points, but could be extended to handle other transforms.

Parameters
aValuea delta referenced to the user-selected display origin
Returns
the delta re-referenced to the internal origin

Definition at line 95 of file pcb_origin_transforms.h.

96 {
97 return ORIGIN_TRANSFORMS::ToDisplayRel( aInternalValue, invertXAxis() );
98 }
T ToDisplayRel(const T &aValue) const

References invertXAxis(), and ORIGIN_TRANSFORMS::ToDisplayRel().

Referenced by ToDisplay(), ToDisplayRel(), and PCB_BASE_FRAME::UpdateStatusBar().

◆ ToDisplayRelY()

template<typename T >
T PCB_ORIGIN_TRANSFORMS::ToDisplayRelY ( aInternalValue) const
inline

Definition at line 101 of file pcb_origin_transforms.h.

102 {
103 return ORIGIN_TRANSFORMS::ToDisplayRel( aInternalValue, invertYAxis() );
104 }

References invertYAxis(), and ORIGIN_TRANSFORMS::ToDisplayRel().

Referenced by ToDisplay(), ToDisplayRel(), and PCB_BASE_FRAME::UpdateStatusBar().

Member Data Documentation

◆ m_pcbBaseFrame

const PCB_BASE_FRAME& PCB_ORIGIN_TRANSFORMS::m_pcbBaseFrame
protected

Definition at line 200 of file pcb_origin_transforms.h.

Referenced by getUserXOrigin(), getUserYOrigin(), invertXAxis(), and invertYAxis().


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