Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
transformpresentation.hh File Reference
Include dependency graph for transformpresentation.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TransformationData
 
class  Detail::ViewData
 
class  TransformPresentation
 

Namespaces

namespace  Detail
 

Functions

Scroom::Utils::Point< double > getAspectRatio (const PresentationInterface::Ptr &presentation)
 

Function Documentation

◆ getAspectRatio()

Scroom::Utils::Point< double > getAspectRatio ( const PresentationInterface::Ptr presentation)
163{
164 return try_get<TransformationData::Ptr>(presentation->getContext())
165 .transform([](const auto& td) { return td->getAspectRatio(); })
166 .value_or(Scroom::Utils::make_point(1.0, 1.0));
167}
Point< T > make_point(T x, T y)
Definition point.hh:116

Referenced by PipetteHandler::computeValues(), and MeasureHandler::displayMeasurement().

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