Scroom  0.14
DummyColormapProvider Class Reference

#include <test-helpers.hh>

Inheritance diagram for DummyColormapProvider:
Inheritance graph
Collaboration diagram for DummyColormapProvider:
Collaboration graph

Public Types

using Ptr = boost::shared_ptr< DummyColormapProvider >
 
- Public Types inherited from ColormapProvider
using Ptr = boost::shared_ptr< ColormapProvider >
 

Public Member Functions

Colormap::Ptr getColormap () override
 

Static Public Member Functions

static Ptr create (Colormap::Ptr colormap)
 

Private Member Functions

 DummyColormapProvider (Colormap::Ptr colormap)
 

Private Attributes

Colormap::Ptr colormap
 

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ DummyColormapProvider()

DummyColormapProvider::DummyColormapProvider ( Colormap::Ptr  colormap)
explicitprivate
30  : colormap(std::move(colormap_))
31 {
32 }

Referenced by create().

Here is the caller graph for this function:

Member Function Documentation

◆ create()

DummyColormapProvider::Ptr DummyColormapProvider::create ( Colormap::Ptr  colormap)
static
35 {
36  return Ptr(new DummyColormapProvider(std::move(colormap)));
37 }

Referenced by setupTest1bpp(), setupTest2bpp(), setupTest4bpp(), setupTest8bpp(), and setupTest8bppColormapped().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getColormap()

Colormap::Ptr DummyColormapProvider::getColormap ( )
overridevirtual

Implements ColormapProvider.

39 { return colormap; }

Member Data Documentation

◆ colormap

Colormap::Ptr DummyColormapProvider::colormap
private

Referenced by create(), and getColormap().


The documentation for this class was generated from the following files:
DummyColormapProvider::colormap
Colormap::Ptr colormap
Definition: test-helpers.hh:30
DummyColormapProvider::DummyColormapProvider
DummyColormapProvider(Colormap::Ptr colormap)
Definition: test-helpers.cc:29
DummyColormapProvider::Ptr
boost::shared_ptr< DummyColormapProvider > Ptr
Definition: test-helpers.hh:27