#include <transparentoverlaypresentation.hh>
◆ Ptr
◆ ViewDataMap
◆ TransparentOverlayPresentation()
| TransparentOverlayPresentation::TransparentOverlayPresentation |
( |
| ) |
|
|
private |
◆ addPresentation()
Implements Aggregate.
60 for(ViewDataMap::value_type
const& v:
viewData)
62 v.second->addChild(p);
◆ create()
◆ getProperty()
| bool TransparentOverlayPresentation::getProperty |
( |
const std::string & |
name, |
|
|
std::string & |
value |
|
) |
| |
|
overridevirtual |
Return the value of the requested property
- Parameters
-
| [in] | name | The name of the requested property |
| [out] | value | The value of the requested property |
- Return values
-
| true | if the property existed |
| false | if the property didn't exist |
Implements PresentationInterface.
◆ getRect()
◆ getTitle()
| std::string TransparentOverlayPresentation::getTitle |
( |
| ) |
|
|
overridevirtual |
Return the title of the presentation
Implements PresentationInterface.
162 bool hasPrevious =
false;
169 s << child->getTitle();
◆ getViews()
Implements PresentationBase.
123 std::set<ViewInterface::WeakPtr> result;
126 result.insert(p.first);
◆ isPropertyDefined()
| bool TransparentOverlayPresentation::isPropertyDefined |
( |
const std::string & |
name | ) |
|
|
overridevirtual |
◆ redraw()
Draw the requested ara at the requested zoom level
- Parameters
-
| vi | The ViewInterface on whose behalf the request is made |
| cr | The context to draw the area on |
| presentationArea | the area that is to be drawn. The given x and y coordinates should map on 0,0 of the given context cr. |
| zoom | The requested zoom level. One pixel of your presentation should have size 2**zoom when drawn. zoom may be negative. |
Implements PresentationInterface.
140 e->second->redraw(cr, presentationArea, zoom);
◆ setOptimalColor()
76 std::map<Color, int, ColorComparer> currentColors;
82 currentColors[cChild->getMonochromeColor()]++;
86 Color minimumColor = c->getMonochromeColor();
87 int minimumColorValue = currentColors[minimumColor];
91 if(currentColors[color] < minimumColorValue)
94 minimumColorValue = currentColors[color];
98 c->setMonochromeColor(minimumColor);
Referenced by addPresentation().
◆ viewAdded()
◆ viewRemoved()
◆ children
◆ sizeDeterminer
◆ viewData
The documentation for this class was generated from the following files: