|
Scroom
0.14
|
#include <list>#include <type_traits>#include <utility>#include <boost/assign/list_of.hpp>#include <boost/test/data/monomorphic.hpp>#include <boost/test/data/test_case.hpp>#include <boost/test/parameterized_test.hpp>#include <boost/test/unit_test.hpp>#include <boost/test/unit_test_suite.hpp>#include <scroom/colormappable.hh>#include <scroom/unused.hh>
Classes | |
| struct | anonymous_namespace{colormaphelpers_test.cc}::Data |
Namespaces | |
| anonymous_namespace{colormaphelpers_test.cc} | |
Functions | |
| std::ostream & | anonymous_namespace{colormaphelpers_test.cc}::operator<< (std::ostream &os, const Data &) |
| BOOST_REQUIRE (originalColormap) | |
| BOOST_CHECK_EQUAL (sample.expectedColors, originalColormap->colors.size()) | |
| BOOST_REQUIRE (colormap) | |
| BOOST_CHECK_EQUAL (sample.expectedColors, colormap->colors.size()) | |
| BOOST_CHECK_EQUAL (originalColormap, colormap) | |
| BOOST_AUTO_TEST_CASE (regular_colormaps_cant_have_their_colors_set) | |
| BOOST_AUTO_TEST_CASE (monochrome_colormap_can_have_its_color_set) | |
| BOOST_AUTO_TEST_CASE (inverted_monochrome_colormap_can_have_its_color_set) | |
Variables | |
| const Color | anonymous_namespace{colormaphelpers_test.cc}::Blue (0, 0, 1) |
| const double | anonymous_namespace{colormaphelpers_test.cc}::accuracy = 1e-4 |
| std::list< Data > | anonymous_namespace{colormaphelpers_test.cc}::helpers |
| const Colormap::Ptr | colormap = sample.helper->getColormap() |
| BOOST_AUTO_TEST_CASE | ( | inverted_monochrome_colormap_can_have_its_color_set | ) |

| BOOST_AUTO_TEST_CASE | ( | monochrome_colormap_can_have_its_color_set | ) |

| BOOST_AUTO_TEST_CASE | ( | regular_colormaps_cant_have_their_colors_set | ) |

| BOOST_CHECK_EQUAL | ( | originalColormap | , |
| colormap | |||
| ) |
| BOOST_CHECK_EQUAL | ( | sample. | expectedColors, |
| colormap->colors. | size() | ||
| ) |
| BOOST_CHECK_EQUAL | ( | sample. | expectedColors, |
| originalColormap->colors. | size() | ||
| ) |
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE_TEMPLATE(), anonymous_namespace{determine-size-test.cc}::ResizablePresentationInterfaceStub::CheckAllEqual(), containedSegmentEqualsIntersection(), intersectsImpliesNonEmptyIntersection(), and ProgressInterfaceMultiplexer_Fixture::ProgressInterfaceMultiplexer_Fixture().

| BOOST_REQUIRE | ( | colormap | ) |
| BOOST_REQUIRE | ( | originalColormap | ) |
Referenced by BOOST_AUTO_TEST_CASE(), and DummyView::nextStatusMessage().

| const Colormap::Ptr colormap = sample.helper->getColormap() |
Referenced by Operations1bpp::cache(), Operations8bpp::cache(), Operations::cache(), OperationsColormapped::cache(), Operations1bppClipped::cacheZoom(), Operations1bpp::draw(), Operations8bpp::draw(), Operations::draw(), Scroom::Tiff::getColorMap(), Scroom::ColormapImpl::Colormaps::load(), Scroom::ColormapImpl::ColormapProvider::on_colormap_selected(), TransformPresentation::setColormap(), anonymous_namespace{tiledbitmappresentation.cc}::TiledBitmapPresentation::setColormap(), setupTest1bpp(), setupTest2bpp(), setupTest4bpp(), setupTest8bpp(), setupTest8bppColormapped(), and Scroom::ColormapImpl::ColormapProvider::~ColormapProvider().