40 BOOST_CHECK_CLOSE( fcu.
r, bcu.
r, 0.001 );
41 BOOST_CHECK_CLOSE( fcu.
g, bcu.
g, 0.001 );
42 BOOST_CHECK_CLOSE( fcu.
b, bcu.
b, 0.001 );
47 BOOST_CHECK_CLOSE( brightened.
r, changeColor.
r, 0.001 );
48 BOOST_CHECK_CLOSE( brightened.
g, changeColor.
g, 0.001 );
49 BOOST_CHECK_CLOSE( brightened.
b, changeColor.
b, 0.001 );
50 BOOST_CHECK_CLOSE( brightened.
a, changeColor.
a, 0.001 );
57 std::unique_ptr<BOARD> board;
63 bool foundPad =
false;
67 if(
dynamic_cast<PAD*
>( item ) )
74 BOOST_CHECK( foundPad );
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
A color representation with 4 components: red, green, blue, alpha.
PCB specific render settings.
COLOR4D GetColor(const VIEW_ITEM *aItem, int aLayer) const override
Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer using curr...
const COLOR4D & GetLayerColor(int aLayer) const
Return the color used to draw a layer.
An abstract base class for deriving all objects that can be added to a VIEW.
std::vector< KIGFX::VIEW_ITEM * > CollectBoardDiffContextItems(BOARD &aBoard)
void ConfigurePcbDiffContextRenderSettings(KIGFX::PCB_RENDER_SETTINGS &aSettings, const KIGFX::COLOR4D &aColor)
void LoadBoard(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< BOARD > &aBoard)
BOOST_AUTO_TEST_CASE(ForcedPainterColorIgnoresPcbLayerColors)
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()