kicad/pcbnew/class_mire.h

67 lines
1.6 KiB
C
Raw Normal View History

/****************************************************/
/* fonctions de la classe MIRE (targets for photos) */
/****************************************************/
#ifndef MIRE_H
#define MIRE_H
#include "base_struct.h"
2007-08-23 04:28:46 +00:00
class MIREPCB : public BOARD_ITEM
2007-08-08 20:51:08 +00:00
{
public:
int m_Width;
wxPoint m_Pos;
int m_Shape; // bit 0 : 0 = forme +, 1 = forme X
int m_Size;
public:
2007-08-23 04:28:46 +00:00
MIREPCB( BOARD_ITEM* StructFather );
~MIREPCB();
2007-08-08 20:51:08 +00:00
2007-12-01 03:42:52 +00:00
wxPoint& GetPosition()
{
return m_Pos;
}
2007-10-30 21:30:58 +00:00
/**
* Function Save
2007-10-31 14:14:21 +00:00
* writes the data structures for this object out to a FILE in "*.brd" format.
2007-10-30 21:30:58 +00:00
* @param aFile The FILE to write to.
* @return bool - true if success writing else false.
*/
bool Save( FILE* aFile ) const;
2007-08-08 20:51:08 +00:00
bool ReadMirePcbDescr( FILE* File, int* LineNum );
/* supprime du chainage la structure Struct */
2007-09-01 12:00:30 +00:00
void UnLink();
2007-08-08 20:51:08 +00:00
void Copy( MIREPCB* source );
void Draw( WinEDA_DrawPanel* panel, wxDC* DC, const wxPoint& offset, int mode_color );
/**
* Function HitTest
* tests if the given wxPoint is within the bounds of this object.
* @param refPos A wxPoint to test
* @return bool - true if a hit, else false
*/
bool HitTest( const wxPoint& refPos );
2008-01-06 12:43:57 +00:00
/**
* Function HitTest (overlayed)
* tests if the given EDA_Rect intersect this object.
* For now, the anchor must be inside this rect.
* @param refArea : the given EDA_Rect
* @return bool - true if a hit, else false
*/
bool HitTest( EDA_Rect& refArea );
};
2007-08-08 20:51:08 +00:00
#endif // #define MIRE_H