◆ DummyPresentation()
| DummyPresentation::DummyPresentation |
( |
| ) |
|
|
inline |
38 {
39 }
Scroom::Utils::Context::Ptr context
Definition pipette-tests.cc:32
static Ptr create()
Definition context.cc:15
Referenced by create().
◆ close()
Gets called just before the View is destroyed
- Precondition
- Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)
Implements Viewable.
◆ create()
DummyPresentation()
Definition pipette-tests.cc:36
std::shared_ptr< PresentationInterface > Ptr
Definition presentationinterface.hh:73
Referenced by DummyView::createWithPresentation().
◆ getContext()
◆ getPixelAverages()
Returns the average pixel values for each component, contained in the area.
- Parameters
-
| area | selected area to get the pixel values from. |
Implements PipetteViewInterface.
56 {
57 return {{"C", 1.0}};
58 }
◆ getProperty()
| bool DummyPresentation::getProperty |
( |
const std::string & |
name, |
|
|
std::string & |
value |
|
) |
| |
|
inlineoverridevirtual |
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()
Return the dimensions of your presentation
Implements PresentationInterface.
41{ return {0, 0, 100, 100}; }
◆ getTitle()
| std::string DummyPresentation::getTitle |
( |
| ) |
|
|
inlineoverridevirtual |
◆ isPropertyDefined()
| bool DummyPresentation::isPropertyDefined |
( |
const std::string & |
name | ) |
|
|
inlineoverridevirtual |
Return true if the named property exists
Implements PresentationInterface.
const std::string PIPETTE_PROPERTY_NAME
Definition pipetteviewinterface.hh:14
◆ open()
Gets called just after the View is created
- Precondition
- Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)
Implements Viewable.
◆ 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.
◆ context
The documentation for this class was generated from the following file: