26 using Ptr = std::shared_ptr<ITweakPresentationPosition>;
35 using Ptr = std::shared_ptr<ITweakRulers>;
44 using Ptr = std::shared_ptr<ITweakSelection>;
45 using Map = std::map<std::string, ITweakSelection::Ptr>;
53 using Ptr = std::shared_ptr<ITweakPositionTextBox>;
56 parse(std::string_view x, std::string_view y,
const Point<int>& drawingAreaSize,
int zoom)
const = 0;
58 [[nodiscard]]
virtual std::pair<std::string, std::string>
73 using Ptr = std::shared_ptr<TweakPresentationPosition>;
90 using Ptr = std::shared_ptr<TweakRulers>;
107 using Ptr = std::shared_ptr<TweakSelection>;
145 using Ptr = std::shared_ptr<TweakPositionTextBox>;
150 parse(std::string_view x, std::string_view y,
const Point<int>& drawingAreaSize,
int zoom)
const override;
152 [[nodiscard]] std::pair<std::string, std::string>
Definition interface.hh:11
Definition tweak-view.hh:51
virtual std::pair< std::string, std::string > display(const Point< double > &position, const Point< int > &drawingAreaSize, int zoom) const =0
std::shared_ptr< ITweakPositionTextBox > Ptr
Definition tweak-view.hh:53
virtual Point< double > parse(std::string_view x, std::string_view y, const Point< int > &drawingAreaSize, int zoom) const =0
Definition tweak-view.hh:24
std::shared_ptr< ITweakPresentationPosition > Ptr
Definition tweak-view.hh:26
virtual Point< double > tweakPosition(const Point< double > ¤tPosition, const Point< int > &drawingAreaSize, int zoom) const =0
Definition tweak-view.hh:33
std::shared_ptr< ITweakRulers > Ptr
Definition tweak-view.hh:35
virtual Rectangle< double > tweakRulers(const Point< double > ¤tPosition, const Point< int > &drawingAreaSize, int zoom) const =0
Definition tweak-view.hh:42
virtual Selection tweakSelection(const Selection &selection) const =0
std::shared_ptr< ITweakSelection > Ptr
Definition tweak-view.hh:44
std::map< std::string, ITweakSelection::Ptr > Map
Definition tweak-view.hh:45
Definition rectangle.hh:29
Definition tweak-view.hh:121
static ITweakSelection::Ptr create(const Point< double > &aspectRatio_)
Definition tweak-view.cc:153
Rectangle< double > tweakSelection(const Rectangle< double > &selection) const override
Definition tweak-view.cc:158
Definition tweak-view.hh:132
Rectangle< double > tweakSelection(const Rectangle< double > &selection) const override
Definition tweak-view.cc:170
static ITweakSelection::Ptr create(const Point< double > &aspectRatio_)
Definition tweak-view.cc:165
Definition tweak-view.hh:143
Point< double > parse(std::string_view x, std::string_view y, const Point< int > &drawingAreaSize, int zoom) const override
Definition tweak-view.cc:188
Point< double > aspectRatio
Definition tweak-view.hh:159
std::pair< std::string, std::string > display(const Point< double > &position, const Point< int > &drawingAreaSize, int zoom) const override
Definition tweak-view.cc:196
std::shared_ptr< TweakPositionTextBox > Ptr
Definition tweak-view.hh:145
static ITweakPositionTextBox::Ptr create(const Point< double > &aspectRatio_={1.0, 1.0})
Definition tweak-view.cc:182
Definition tweak-view.hh:71
Point< double > tweakPosition(const Point< double > ¤tPosition, const Point< int > &drawingAreaSize, int zoom) const override
Definition tweak-view.cc:106
std::shared_ptr< TweakPresentationPosition > Ptr
Definition tweak-view.hh:73
static ITweakPresentationPosition::Ptr create(const Point< double > &aspectRatio_)
Definition tweak-view.cc:101
Point< double > aspectRatio
Definition tweak-view.hh:84
Definition tweak-view.hh:88
Rectangle< double > tweakRulers(const Point< double > ¤tPosition, const Point< int > &drawingAreaSize, int zoom) const override
Definition tweak-view.cc:125
std::shared_ptr< TweakRulers > Ptr
Definition tweak-view.hh:90
Point< double > aspectRatio
Definition tweak-view.hh:101
static ITweakRulers::Ptr create(const Point< double > &aspectRatio_={1.0, 1.0})
Definition tweak-view.cc:122
Definition tweak-view.hh:105
std::shared_ptr< TweakSelection > Ptr
Definition tweak-view.hh:107
virtual Rectangle< double > tweakSelection(const Rectangle< double > &selection) const =0
TweakSelection(const Point< double > &aspectRatio_)
Definition tweak-view.cc:132
Point< double > aspectRatio
Definition tweak-view.hh:117
Definition tweak-view.hh:22
ITweakRulers::Ptr getDefaultTweakRulers()
Definition tweak-view.cc:209
ITweakSelection::Map getDefaultTweakSelectionMap()
Definition tweak-view.cc:211
ITweakPositionTextBox::Ptr getDefaultTweakPositionTextBox()
Definition tweak-view.cc:215
ITweakPresentationPosition::Ptr getDefaultTweakPresentationPosition()
Definition tweak-view.cc:205
ITweakSelection::Ptr getDefaultTweakSelection()
Definition tweak-view.cc:210
auto selection
Definition pipette-tests.cc:157
Definition viewinterface.hh:37