2009-09-10 13:04:04 +00:00
|
|
|
/* debug_kbool_key_file_fct.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DEBUG_KBOOL_KEY_FILE_FCT_H_
|
|
|
|
#define _DEBUG_KBOOL_KEY_FILE_FCT_H_
|
|
|
|
|
2009-11-14 19:47:52 +00:00
|
|
|
/* These line must be uncommented only if you want to produce a file
|
|
|
|
* to debug kbool in zone filling algorithms
|
2009-09-10 13:04:04 +00:00
|
|
|
*/
|
2009-11-14 19:47:52 +00:00
|
|
|
//#define CREATE_KBOOL_KEY_FILES_FIRST_PASS 1
|
|
|
|
//#define CREATE_KBOOL_KEY_FILES 1
|
2009-09-10 13:04:04 +00:00
|
|
|
|
2009-11-14 19:47:52 +00:00
|
|
|
#if defined (CREATE_KBOOL_KEY_FILES) || (CREATE_KBOOL_KEY_FILES_FIRST_PASS)
|
2009-09-10 13:04:04 +00:00
|
|
|
|
2009-11-14 19:47:52 +00:00
|
|
|
// Allows (or not) 0 degree orientation thermal shapes, for kbool tests
|
2009-09-17 17:48:40 +00:00
|
|
|
//#define CREATE_KBOOL_KEY_FILES_WITH_0_DEG
|
|
|
|
|
2009-11-14 19:47:52 +00:00
|
|
|
#define KEYFILE_FILENAME "pcbnew_dbgfile.key"
|
2009-09-10 13:04:04 +00:00
|
|
|
|
|
|
|
/** function CreateKeyFile
|
|
|
|
* open KEYFILE_FILENAME file
|
|
|
|
* and create header
|
|
|
|
*/
|
|
|
|
void CreateKeyFile();
|
|
|
|
|
|
|
|
/** function CloseKeyFile
|
|
|
|
* close KEYFILE_FILENAME file
|
|
|
|
*/
|
|
|
|
void CloseKeyFile();
|
|
|
|
|
|
|
|
/* create header to start an entity description
|
|
|
|
*/
|
2009-11-14 19:47:52 +00:00
|
|
|
void OpenKeyFileEntity(const char * aName);
|
2009-09-10 13:04:04 +00:00
|
|
|
/* close the entity description
|
|
|
|
*/
|
2009-11-14 19:47:52 +00:00
|
|
|
void CloseKeyFileEntity();
|
2009-09-10 13:04:04 +00:00
|
|
|
|
|
|
|
/* polygon creations:
|
|
|
|
*/
|
|
|
|
void CopyPolygonsFromFilledPolysListToKeyFile( ZONE_CONTAINER* aZone, int aLayer);
|
2009-11-16 08:13:40 +00:00
|
|
|
void StartKeyFilePolygon( int aLayer);
|
2009-11-14 19:47:52 +00:00
|
|
|
void AddKeyFilePointXY( int aXcoord, int aYcoord);
|
2009-11-16 08:13:40 +00:00
|
|
|
void EndKeyFilePolygon();
|
2009-09-10 13:04:04 +00:00
|
|
|
|
|
|
|
#endif // CREATE_KBOOL_KEY_FILES
|
|
|
|
|
|
|
|
#endif // _DEBUG_KBOOL_KEY_FILE_FCT_H_
|
|
|
|
|