Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
Measure Class Reference

#include <measure.hh>

Inheritance diagram for Measure:
Inheritance graph
Collaboration diagram for Measure:
Collaboration graph

Public Types

using Ptr = std::shared_ptr< Measure >
 
- Public Types inherited from PluginInformationInterface
using Ptr = std::shared_ptr< PluginInformationInterface >
 
- Public Types inherited from ViewObserver
using Ptr = std::shared_ptr< ViewObserver >
 

Public Member Functions

std::string getPluginName () override
 
std::string getPluginVersion () override
 
void registerCapabilities (ScroomPluginInterface::Ptr host) override
 
Scroom::Bookkeeping::Token viewAdded (ViewInterface::Ptr v) override
 
- Public Member Functions inherited from PluginInformationInterface
 PluginInformationInterface ()=default
 
- Public Member Functions inherited from Scroom::Utils::Base
 Base ()=default
 
 Base (const Base &)=delete
 
 Base (Base &&)=delete
 
Baseoperator= (const Base &)=delete
 
Baseoperator= (Base &&)=delete
 
virtual ~Base ()=default
 
template<typename R >
std::shared_ptr< R > shared_from_this ()
 
template<typename R >
std::shared_ptr< R const > shared_from_this () const
 

Static Public Member Functions

static Ptr create ()
 

Private Member Functions

 Measure ()=default
 

Additional Inherited Members

- Public Attributes inherited from PluginInformationInterface
const int pluginApiVersion {PLUGIN_API_VERSION}
 

Member Typedef Documentation

◆ Ptr

using Measure::Ptr = std::shared_ptr<Measure>

Constructor & Destructor Documentation

◆ Measure()

Measure::Measure ( )
privatedefault

Referenced by create().

Here is the caller graph for this function:

Member Function Documentation

◆ create()

Measure::Ptr Measure::create ( )
static
30{ return Ptr(new Measure()); }
std::shared_ptr< Measure > Ptr
Definition measure.hh:64
Measure()=default

Referenced by getPluginInformation().

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

◆ getPluginName()

std::string Measure::getPluginName ( )
overridevirtual

Implements PluginInformationInterface.

36{ return "Measure"; }

◆ getPluginVersion()

std::string Measure::getPluginVersion ( )
overridevirtual

Implements PluginInformationInterface.

38{ return PACKAGE_VERSION; }

◆ registerCapabilities()

void Measure::registerCapabilities ( ScroomPluginInterface::Ptr  host)
overridevirtual

Implements PluginInformationInterface.

41{
42 host->registerViewObserver("Measure tool", shared_from_this<Measure>());
43}

◆ viewAdded()

Scroom::Bookkeeping::Token Measure::viewAdded ( ViewInterface::Ptr  v)
overridevirtual

Implements ViewObserver.

50{
52 view->registerSelectionListener(handler);
53 view->registerPostRenderer(handler);
54
55 view->addToolButton(GTK_TOGGLE_BUTTON(gtk_toggle_button_new_with_label("Measure")), handler);
56
57 return {};
58}
static Ptr create()
Definition measure.cc:64
std::shared_ptr< MeasureHandler > Ptr
Definition measure.hh:24
const auto view
Definition pipette-tests.cc:227
Here is the call graph for this function:

The documentation for this class was generated from the following files: