25#ifndef GERBER_FILE_IMAGE_LIST_H 
   26#define GERBER_FILE_IMAGE_LIST_H 
   30#include <unordered_map> 
  103                                            wxString& matchedExtension );
 
  150    const wxString 
GetDisplayName( 
int aIdx, 
bool aNameOnly = 
false, 
bool aFullName = 
false );
 
  179    std::unordered_map<int, int> 
SwapImages( 
unsigned int layer1, 
unsigned int layer2 );
 
  186    std::unordered_map<int, int> 
RemoveImage( 
unsigned int layer );
 
 
int AddGbrImage(GERBER_FILE_IMAGE *aGbrImage, int aIdx)
Add a GERBER_FILE_IMAGE* at index aIdx or at the first free location if aIdx < 0.
 
std::unordered_map< int, int > SwapImages(unsigned int layer1, unsigned int layer2)
Swap two images and their orders.
 
unsigned GetLoadedImageCount()
Get number of loaded images.
 
static void GetGerberLayerFromFilename(const wxString &filename, enum GERBER_ORDER_ENUM &order, wxString &matchedExtension)
Utility function to guess which PCB layer of a gerber/drill file corresponds to based on its file ext...
 
std::unordered_map< int, int > SortImagesByZOrder()
Sort loaded images by Z order priority, if they have the X2 FileFormat info (SortImagesByZOrder updat...
 
void DeleteImage(unsigned int aIdx)
Delete the loaded data of image aIdx, freeing the memory.
 
std::unordered_map< int, int > SortImagesByFileExtension()
Sort loaded images by file extension matching.
 
static GERBER_FILE_IMAGE_LIST & GetImagesList()
 
const wxString GetDisplayName(int aIdx, bool aNameOnly=false, bool aFullName=false)
Get the display name for the layer at aIdx.
 
void DeleteAllImages()
Remove all loaded data in list, and delete all images, freeing the memory.
 
std::vector< GERBER_FILE_IMAGE * > m_GERBER_List
 
std::unordered_map< int, int > RemoveImage(unsigned int layer)
Removes (and deletes) an image, rotating the removed image to the end.
 
~GERBER_FILE_IMAGE_LIST()
 
std::unordered_map< int, int > GetLayerRemap()
When the image order has changed, call this to get a mapping to pass to the frame's Remap() function ...
 
unsigned ImagesMaxCount()
 
std::unordered_map< int, int > SortImagesByFunction(LayerSortFunction sortFunction)
Sort loaded images by file extension matching.
 
GERBER_FILE_IMAGE * GetGbrImage(int aIdx)
 
Hold the image data and parameters for one gerber file and layer parameters.
 
bool LayerSortFunction(const GERBER_FILE_IMAGE *const &ref, const GERBER_FILE_IMAGE *const &test)
 
@ GERBER_BOTTOM_SILK_SCREEN
 
@ GERBER_BOTTOM_SOLDER_MASK