45 extern int scaletoIU(
double aCoord,
bool isMetric );
129 if( aCreateIfNoExist )
247 if( item->HasNegativeItems() )
309 if( jj == 0 && ii == 0 )
318 dupItem->
MoveXY( move_vector );
380 wxASSERT_MSG(
false, wxT(
"Invalid unit" ) );
397 wxString cmd = aAttribute.
GetPrm( 0 );
400 if( cmd.IsEmpty() || cmd == wxT(
".AperFunction" ) )
APERTURE_MACRO_SET m_aperture_macros
int m_LineNum
< Line number of the gerber file while reading.
X2_ATTRIBUTE_FILEFUNCTION * m_FileFunction
The attribute value consists of a number of substrings separated by a comma.
GERBER_DRAW_ITEMS & GetItems()
int m_Last_Pen_Command
< Current or last pen state (0..9, set by Dn option with n < 10.
bool m_ImageJustifyXCenter
< Image Justify Center on X axis (default = false).
bool m_LastCoordIsIJPos
< True if a IJ coord was read (for arcs & circles ).
wxRealPoint m_StepForRepeat
bool m_ImageJustifyYCenter
Image Justify Offset on XY axis (default = 0,0).
GERBER_FILE_IMAGE(int layer)
D_CODE * GetDCODE(int aDCODE) const
Return a pointer to the D_CODE within this GERBER for the given aDCODE.
wxSize m_FmtLen
Image rotation (0, 90, 180, 270 only) in degrees.
bool m_IsVisible
< True if the draw layer is visible and must be drawn.
int scaletoIU(double aCoord, bool isMetric)
Function scaletoIU converts a distance given in floating point to our internal units.
wxPoint m_ImageJustifyOffset
const wxString & GetPrm(int aIdx)
SEARCH_RESULT Visit(INSPECTOR inspector, void *testData, const KICAD_T scanTypes[]) override
May be re-implemented for each derived class in order to handle all the types given by its member dat...
wxSize m_FmtScale
< Fmt 2.3: m_FmtScale = 3, fmt 3.4: m_FmtScale = 4.
COLOR4D m_PositiveDrawColor
const INSPECTOR_FUNC & INSPECTOR
search types array terminator (End Of Types)
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
This file contains miscellaneous commonly used macros and functions.
D_CODE * m_Aperture_List[TOOLS_MAX_COUNT]
< Dcode (Aperture) List for this layer (max TOOLS_MAX_COUNT: see dcode.h)
int m_ArcRadius
Identifier for arc data type (IJ (center) or A## (radius)).
int m_PolygonFillModeState
a collection of APERTURE_MACROS, sorted by name
bool m_IsX2_file
< True if a X2 gerber attribute was found in file.
GERBER_DRAW_ITEMS m_drawings
void DisplayImageInfo(GERBVIEW_FRAME *aMainFrame)
Display information about image parameters in the status bar.
void AddItemToList(GERBER_DRAW_ITEM *aItem)
Add a new GERBER_DRAW_ITEM item to the drawings list.
GERBER_LAYER m_GBRLayerParams
int m_Num_Dcode
D code value ( >= 10 )
APERTURE_MACRO * FindApertureMacro(const APERTURE_MACRO &aLookup)
Look up a previously read in aperture macro.
constexpr std::size_t arrayDim(T const (&)[N]) noexcept
Returns # of elements in an array.
bool m_Relative
< false = absolute Coord, true = relative Coord.
virtual void ClearMsgPanel()
Clear all messages from the message panel.
bool m_StepForRepeatMetric
void RemoveAttribute(X2_ATTRIBUTE &aAttribute)
Called when a TD command is found the Gerber file.
bool m_Has_DCode
< True if has DCodes in file or false if no DCodes found. Perhaps deprecated RS274D file.
int m_hasNegativeItems
True if the image is negative or has some negative items.
LAST_EXTRA_ARC_DATA_TYPE m_LastArcDataType
A gerber DCODE (also called Aperture) definition.
virtual ~GERBER_FILE_IMAGE()
GBR_NETLIST_METADATA m_NetAttributeDict
A base class for most all the KiCad significant classes used in schematics and boards.
static SEARCH_RESULT IterateForward(std::deque< T > &aList, INSPECTOR inspector, void *testData, const KICAD_T scanTypes[])
This changes first parameter to avoid the DList and use the main queue instead.
Support the "aperture macro" defined within standard RS274X.
void MoveXY(const wxPoint &aMoveVector)
Move this object.
void StepAndRepeatItem(const GERBER_DRAW_ITEM &aItem)
Gerber format has a command Step an Repeat.
D_CODE * GetDCODEOrCreate(int aDCODE, bool aCreateIfNoExist=true)
Return a pointer to the D_CODE within this GERBER for the given aDCODE.
EDA_UNITS GetUserUnits() const
Return the user units currently in use.
GERBER_LAYER & GetLayerParams()
void ResetDefaultValues()
int m_ImageRotation
Local rotation in degrees added to m_ImageRotation.
virtual void ResetDefaultValues()
Set all parameters to a default value, before reading a file.
void AppendMsgPanel(const wxString &aTextUpper, const wxString &aTextLower, int aPadding=6)
Append a message to the message panel.