Go to the documentation of this file.
29 using Ptr = boost::shared_ptr<TransparentOverlayPresentation>;
32 using ViewDataMap = std::map<ViewInterface::WeakPtr, TransparentOverlayViewInfo::Ptr>;
35 std::list<PresentationInterface::Ptr>
children;
48 bool getProperty(
const std::string& name, std::string& value)
override;
53 std::set<ViewInterface::WeakPtr>
getViews()
override;
bool operator()(Color const &left, Color const &right) const
Definition: transparentoverlaypresentation.cc:33
#define UNUSED(x)
Definition: unused.hh:10
std::string getTitle() override
Definition: transparentoverlaypresentation.cc:158
const std::list< Color > colors
Definition: transparentoverlaypresentation.cc:21
const std::string MONOCHROME_COLORMAPPABLE_PROPERTY_NAME
Definition: colormappable.hh:22
void redraw(ViewInterface::Ptr const &vi, cairo_t *cr, Scroom::Utils::Rectangle< double > presentationArea, int zoom) override
Definition: transparentoverlaypresentation.cc:132
boost::shared_ptr< ViewInterface > Ptr
Definition: viewinterface.hh:193
Definition: presentationinterface.hh:144
SizeDeterminer::Ptr sizeDeterminer
Definition: transparentoverlaypresentation.hh:36
double alpha
Definition: color.hh:39
double blue
Definition: color.hh:42
void viewAdded(ViewInterface::WeakPtr vi) override
Definition: transparentoverlaypresentation.cc:104
boost::shared_ptr< TransparentOverlayViewInfo > Ptr
Definition: transparentoverlayviewinfo.hh:63
ViewDataMap viewData
Definition: transparentoverlaypresentation.hh:38
double red
Definition: color.hh:40
std::set< ViewInterface::WeakPtr > getViews() override
Definition: transparentoverlaypresentation.cc:121
boost::shared_ptr< PresentationInterface > Ptr
Definition: presentationinterface.hh:74
boost::weak_ptr< ViewInterface > WeakPtr
Definition: viewinterface.hh:194
boost::shared_ptr< Observable< T > > Ptr
Definition: observable.hh:75
TransparentOverlayPresentation()
Definition: transparentoverlaypresentation.cc:43
double doubleFromByte(uint8_t b)
Definition: color.hh:22
void viewRemoved(ViewInterface::WeakPtr vi) override
Definition: transparentoverlaypresentation.cc:111
Definition: sizedeterminer.hh:19
Scroom::Utils::Rectangle< double > getRect() override
Definition: transparentoverlaypresentation.cc:102
std::map< ViewInterface::WeakPtr, TransparentOverlayViewInfo::Ptr > ViewDataMap
Definition: transparentoverlaypresentation.hh:32
Definition: presentationinterface.hh:113
static Ptr create()
Definition: transparentoverlaypresentation.cc:41
void addPresentation(PresentationInterface::Ptr const &p) override
Definition: transparentoverlaypresentation.cc:48
static Ptr create(const ViewInterface::WeakPtr &vi, SizeDeterminer::Ptr const &sizeDeterminer)
Definition: transparentoverlayviewinfo.cc:130
Definition: transparentoverlaypresentation.hh:24
boost::shared_ptr< SizeDeterminer > Ptr
Definition: sizedeterminer.hh:22
boost::shared_ptr< Colormappable > Ptr
Definition: colormappable.hh:116
#define defect_message(m)
Definition: assertions.hh:43
boost::shared_ptr< TransparentOverlayPresentation > Ptr
Definition: transparentoverlaypresentation.hh:29
std::list< PresentationInterface::Ptr > children
Definition: transparentoverlaypresentation.hh:35
void setOptimalColor(PresentationInterface::Ptr const &p)
Definition: transparentoverlaypresentation.cc:71
Definition: transparentoverlaypresentation.cc:31
bool isPropertyDefined(const std::string &name) override
Definition: transparentoverlaypresentation.cc:151
bool getProperty(const std::string &name, std::string &value) override
Definition: transparentoverlaypresentation.cc:144
double green
Definition: color.hh:41
void create(NewPresentationInterface *interface)
Definition: loader.cc:175