Sketcher/BackEdit: makes view orientation factor accessible to coin managers
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -685,6 +685,8 @@ private:
|
||||
|
||||
int getApplicationLogicalDPIX() const;
|
||||
|
||||
int getViewOrientationFactor() const;
|
||||
|
||||
double getRotation(SbVec3f pos0, SbVec3f pos1) const;
|
||||
|
||||
bool isSketchInvalid() const;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user