Sketcher/BackEdit: makes view orientation factor accessible to coin managers

This commit is contained in:
0penBrain
2022-08-30 16:43:37 +02:00
committed by wwmayer
parent ea0f62c38e
commit bd40fa403f
3 changed files with 12 additions and 0 deletions

View File

@@ -3581,6 +3581,10 @@ int ViewProviderSketch::getApplicationLogicalDPIX() const {
return QApplication::desktop()->logicalDpiX();
}
int ViewProviderSketch::getViewOrientationFactor() const {
return viewOrientationFactor;
}
double ViewProviderSketch::getRotation(SbVec3f pos0, SbVec3f pos1) const
{
double x0,y0,x1,y1;

View File

@@ -685,6 +685,8 @@ private:
int getApplicationLogicalDPIX() const;
int getViewOrientationFactor() const;
double getRotation(SbVec3f pos0, SbVec3f pos1) const;
bool isSketchInvalid() const;

View File

@@ -88,6 +88,7 @@ private:
static inline double getRotation(const ViewProviderSketch & vp, SbVec3f pos0, SbVec3f pos1);
static inline int defaultApplicationFontSizePixels(const ViewProviderSketch & vp);
static inline int getApplicationLogicalDPIX(const ViewProviderSketch & vp);
static inline int getViewOrientationFactor(const ViewProviderSketch & vp);
static inline bool isSketchInvalid(const ViewProviderSketch & vp);
static inline bool isSketchFullyConstrained(const ViewProviderSketch & vp);
@@ -183,6 +184,11 @@ inline int ViewProviderSketchCoinAttorney::getApplicationLogicalDPIX(const ViewP
return vp.getApplicationLogicalDPIX();
}
inline int ViewProviderSketchCoinAttorney::getViewOrientationFactor(const ViewProviderSketch & vp)
{
return vp.getViewOrientationFactor();
}
inline bool ViewProviderSketchCoinAttorney::isSketchInvalid(const ViewProviderSketch & vp)
{
return vp.isSketchInvalid();