24#ifndef EDA_ITEM_TEST_UTILS_H
25#define EDA_ITEM_TEST_UTILS_H
37 constexpr int XMIN = -1 * XSTEP;
38 constexpr int XMAX = 1 * XSTEP;
39 constexpr int YMIN = -1 * YSTEP;
40 constexpr int YMAX = 1 * YSTEP;
42 for(
int posX = XMIN; posX <= XMAX; posX += XSTEP )
44 for(
int posY = YMIN; posY <= YMAX; posY += YSTEP )
46 for(
int refX = XMIN; refX <= XMAX; refX += XSTEP )
48 for(
int refY = YMIN; refY <= YMAX; refY += YSTEP )
50 BOOST_TEST_CONTEXT( wxString::Format(
"Position: %d %d, Reference: %d %d",
51 posX, posY, refX, refY ) )
53 aItem->SetPosition(
VECTOR2I( posX, posY ) );
54 aCallback( aItem,
VECTOR2I( refX, refY ) );
constexpr EDA_IU_SCALE schIUScale
static void IterateOverPositionsAndReferences(T *aItem, void(*aCallback)(T *, VECTOR2I))
constexpr int mmToIU(double mm) const
VECTOR2< int32_t > VECTOR2I