You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

  1. /****************************************************/
  2. /* fonctions de la classe MIRE (targets for photos) */
  3. /****************************************************/
  4. #ifndef MIRE_H
  5. #define MIRE_H
  6. #include "base_struct.h"
  7. class MIREPCB : public EDA_BaseStruct
  8. {
  9. public:
  10. int m_Layer; // 0.. 32 ( NON bit a bit)
  11. int m_Width;
  12. wxPoint m_Pos;
  13. int m_Shape; // bit 0 : 0 = forme +, 1 = forme X
  14. int m_Size;
  15. public:
  16. MIREPCB( EDA_BaseStruct* StructFather );
  17. ~MIREPCB( void );
  18. bool WriteMirePcbDescr( FILE* File );
  19. bool ReadMirePcbDescr( FILE* File, int* LineNum );
  20. /* supprime du chainage la structure Struct */
  21. void UnLink( void );
  22. void Copy( MIREPCB* source );
  23. void Draw( WinEDA_DrawPanel* panel, wxDC* DC, const wxPoint& offset, int mode_color );
  24. /**
  25. * Function HitTest
  26. * tests if the given wxPoint is within the bounds of this object.
  27. * @param refPos A wxPoint to test
  28. * @return bool - true if a hit, else false
  29. */
  30. bool HitTest( const wxPoint& refPos );
  31. };
  32. #endif // #define MIRE_H